PHP Fatal error: Class 'Twig\\Extension\\AbstractExtension' not found - php

I've tried updating Symfony to v2.8.* today.
I have this error:
Fatal error: Class 'Twig\Extension\AbstractExtension' not found
Please help
Here my composer json :
"name": "assane/myecomapp",
"license": "proprietary",
"type": "project",
"autoload": {
"psr-4": {
"": "src/"
},
"classmap": [
"app/AppKernel.php",
"app/AppCache.php"
]
},
"require": {
"php": ">=5.3.9",
"symfony/symfony": "2.8.*",
"doctrine/orm": "^2.4.8",
"doctrine/doctrine-bundle": "~1.4",
"symfony/swiftmailer-bundle": "~2.3,>=2.3.10",
"symfony/monolog-bundle": "^3.0.2",
"sensio/distribution-bundle": "~5.0",
"sensio/framework-extra-bundle": "^3.0.2",
"incenteev/composer-parameter-handler": "~2.0",
"friendsofsymfony/user-bundle": "~2.0#dev",
"twig/extensions":"*"
},
"require-dev": {
"sensio/generator-bundle": "~3.0",
"symfony/phpunit-bridge": "~2.7",
"doctrine/doctrine-fixtures-bundle": "^2.3"
},
Thanks

It happened to me when I aborted composer install. Clearing cache didn't help, but here's how I managed to make it work:
remove all packages in vendor
run composer install

The generated cache is out of date then remove it and refresh the web page:
sudo rm -R app/cache/*

Related

Symfony2, getting error on running composer update

Composer.json
{
"name": "go-get-me",
"license": "proprietary",
"type": "project",
"autoload": {
"psr-4": {
"": "src/"
},
"classmap": [
"app/AppKernel.php",
"app/AppCache.php"
]
},
"require": {
"php": ">=5.5.9",
"symfony/symfony": "2.8.*",
"doctrine/orm": "^2.4.8",
"doctrine/doctrine-bundle": "~1.4",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~5.0",
"sensio/framework-extra-bundle": "^3.0.2",
"incenteev/composer-parameter-handler": "~2.0",
"friendsofsymfony/user-bundle": "~2.0#dev",
"sylius/flow-bundle": "^0.15.0",
"hwi/oauth-bundle": "^0.4.1",
"stripe/stripe-php": "^3.14",
"misd/phone-number-bundle": "^1.1",
"twig/extensions": "^1.3",
"php-http/guzzle6-adapter": "^1",
"payum/payum-bundle": "^2.1#dev",
"payum/paypal-express-checkout-nvp": "^1.3.3",
"pimax/fb-messenger-php": "dev-master",
"twilio/sdk": "^4.10",
"vresh/twilio-bundle": "^1.0",
"infusionsoft/php-sdk": "^1.2",
"hayageek/oauth2-yahoo": "^2.0",
"glifery/entity-hidden-type-bundle": "^1.2"
},
"require-dev": {
"sensio/generator-bundle": "~3.0",
"symfony/phpunit-bridge": "~2.7",
"doctrine/doctrine-fixtures-bundle": "^2.3",
"faisalman/simple-excel-php" : "0.3.*"
},
"scripts": {
"post-install-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
],
"post-update-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
]
},
"config": {
"bin-dir": "bin",
"platform": {
"php": "5.5.9"
}
},
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"symfony-assets-install": "relative",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
}
}
}
I am a newbie in symfony2. Here I am updating the required dependencies, Its shows an error, I am confused, do I need to take the clone of payum bundle or not? if yes then what must be the path? As My current path is /e/xampp/htdocs/nitu.dhaka/2016/subscription.
1/ Your problem one is that you required development a version of your libraries.
"payum/payum-bundle": "^2.1#dev",
You can lower your minimum-stability to dev, but you can have some unexpected behaviour since you will potentially accept to install some unstable versions of all packages. If you want still process add this line to your composer.json
"minimum-stability": "stable",
Please refer to https://getcomposer.org/doc/04-schema.md#minimum-stability for more information.
However, my advice is to use a non dev version of your packages, for example:
"payum/payum-bundle": "^2.1#dev",
could become
"payum/payum-bundle": "~2.1",
2/ A library of php is missing for some of your packages requires ext-intl *. In order to install it, please refer to https://stackoverflow.com/a/26308767/2377164
Ohh Finally Installation started, Following changed I have done:-
1. Configured ext-intl package by uncomment it from php.ini, that is in xampp/php/
2.And very important replace
payum/payum-bundle": "^2.1#dev", to "payum/payum-bundle": "^2.0",
"payum/paypal-express-checkout-nvp": "^1.3",
I thing there is a combination for
"payum/payum-bundle": "^2.0",
"payum/paypal-express-checkout-nvp": "^1.3",
This worked for me.
Thanks.

Attempted to call an undefined method named "setCurrentUri" of class "Knp\Menu\MenuItem"

i'm trying to configure sonataUserBundle and fosUserBundle. when i try to access to my profile page , i got this error :
Attempted to call an undefined method named "setCurrentUri" of class "Knp\Menu\MenuItem".
Did you mean to call "setCurrent"?
In my composer.json in have this version of "knplabs/knp-menu-bundle": "~2.0",
I downgraded to version "knplabs/knp-menu-bundle": "~1.1". but when i tried to update composer i got a error that says :
Problem 1
- sonata-project/admin-bundle 2.4.x-dev requires knplabs/knp-menu-bundle >=2
.0,<3.0.0 -> no matching package found.
- sonata-project/admin-bundle 2.4.x-dev requires knplabs/knp-menu >=2.0,<3.0
-> no matching package found.
- Installation request for sonata-project/admin-bundle ~2.4#dev -> satisfiab
le by sonata-project/admin-bundle[2.4.x-dev].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your min
imum-stability setting
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> f
or more details.
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further commo
n problems.
Someone have any idea how to solve this error ?
Call to method setCurrentUri fails in Symfony/SonataUserBundle setup
Thank you
{
"name": "symfony/framework-standard-edition",
"license": "MIT",
"type": "project",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
"psr-0": { "": "src/", "SymfonyStandard": "app/" }
},
"require": {
"php": ">=5.3.9",
"symfony/symfony": "2.7.*",
"doctrine/orm": "~2.2,>=2.2.3,<2.5",
"doctrine/dbal": "<2.5",
"doctrine/doctrine-bundle": "~1.4",
"twig/extensions": "~1.0",
"symfony/assetic-bundle": "2.6.0",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~3.0,>=3.0.12",
"sensio/framework-extra-bundle": "~3.0,>=3.0.2",
"incenteev/composer-parameter-handler": "~2.0",
"leafo/lessphp": "*",
"twitter/bootstrap": "*",
"mremi/contact-bundle": "dev-master",
"symfony/twig-bridge": "2.3.*",
"genemu/form-bundle": "2.2.*",
"components/jquery":"dev-master",
"friendsofsymfony/user-bundle": "~1.3",
"hwi/oauth-bundle": "0.4.*#dev",
"sonata-project/user-bundle": "2.2.4",
"sonata-project/core-bundle": "~2.3#dev,>=2.3.1",
"sonata-project/block-bundle": "~2.3#dev",
"sonata-project/page-bundle": "~2.3",
"symfony-cmf/routing-bundle": "~1.1",
"knplabs/knp-menu-bundle": "~2.0",
"sonata-project/admin-bundle": "~2.4#dev",
"sonata-project/doctrine-orm-admin-bundle": "~2.4#dev",
"sonata-project/easy-extends-bundle": "~2.1"
},
"require-dev": {
"sensio/generator-bundle": "~2.3"
},
"scripts": {
"post-root-package-install": [
"SymfonyStandard\\Composer::hookRootPackageInstall"
],
"post-install-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::removeSymfonyStandardFiles"
],
"post-update-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::removeSymfonyStandardFiles"
]
},
"config": {
"bin-dir": "bin"
},
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"symfony-assets-install": "relative",
"symfony-assets-install":"symlink",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
},
"branch-alias": {
"dev-master": "2.7-dev"
}
}
}
I had the same problem but downgrade to Knpmenu version 1 is not possible for our project. Because of some code update the June 16th, we can now use Sonata User Bundle and Knp Menu Version 2.
Please, have a look on my composer.json :
"require": {
"php": ">=5.3.9",
"symfony/symfony": "2.7.*",
"doctrine/orm": "^2.4.8",
"doctrine/doctrine-bundle": "~1.4",
"doctrine/doctrine-fixtures-bundle": "dev-master",
"doctrine/migrations": "dev-master",
"doctrine/doctrine-migrations-bundle": "dev-master",
"symfony/assetic-bundle": "~2.3",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~4.0",
"sensio/framework-extra-bundle": "^3.0.2",
"incenteev/composer-parameter-handler": "~2.0",
"friendsofsymfony/user-bundle": "~1.3",
"friendsofsymfony/message-bundle": "^1.2",
"sonata-project/admin-bundle": "^2.3",
"sonata-project/doctrine-orm-admin-bundle": "^2.3",
"sonata-project/easy-extends-bundle": "^2.1",
"sonata-project/user-bundle": "dev-master",
"sonata-project/datagrid-bundle": "dev-master",
"sonata-project/block-bundle": "~2.2,>=2.2.7,<2.3",
"sonata-project/exporter": "^1.4",
"sonata-project/intl-bundle": "^2.2",
"knplabs/knp-menu-bundle": "~2.0",
"knplabs/knp-menu": "~2.0"
},
As you can see, sonata-project/user-bundle is under dev-master version and I had to add sonata-project/datagrid-bundle in dev-master
Hope to help you !
hat versions of KnpMenu and SonataBlockBundle are you using? Please check your composer.json to be sure.
The setCurrentUri method has been deprecated as of KnpMenu v. 2.0, and the composer.json of SonataBlockBundle does not require KnpMenu anywhere but in dev install. So, this leads to a possibility that you could have required a fresher version of knplabs/knp-menu-bundle that is not yet supported by Sonata bundle.
Try requiring knplabs/knp-menu-bundle in 1.1.x:
{
...
"require": {
"knplabs/knp-menu-bundle": "~1.1"
},
...
}

Symfony2 crash after composer update

I encounter a problem since I have update my vendors on Symfony2 installation.
This is content of my composer.json :
{
"name": "symfony/framework-standard-edition",
"license": "MIT",
"type": "project",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
"psr-0": { "": "src/" }
},
"require": {
"php": ">=5.4",
"symfony/symfony": ">=2.4",
"doctrine/orm": "~2.2,>=2.2.3",
"doctrine/doctrine-bundle": ">=1.2",
"twig/extensions": ">=1.0",
"symfony/assetic-bundle": ">=2.3",
"symfony/swiftmailer-bundle": ">=2.3",
"symfony/monolog-bundle": ">=2.4",
"sensio/distribution-bundle": ">=2.3",
"sensio/framework-extra-bundle": ">=3.0",
"sensio/generator-bundle": ">=2.3",
"incenteev/composer-parameter-handler": "~2.0",
"white-october/pagerfanta-bundle": "dev-master",
"friendsofsymfony/rest-bundle": "1.3.*",
"friendsofsymfony/comment-bundle": "2.0.*#dev",
"friendsofsymfony/message-bundle": "1.2.*#dev",
"friendsofsymfony/user-bundle": "~2.0#dev",
"nelmio/api-doc-bundle": "#stable",
"ornicar/akismet-bundle": "dev-master",
"friendsofsymfony/jsrouting-bundle": "2.0.*#dev",
"appventus/alertify-bundle": "dev-master",
"friendsofsymfony/oauth-server-bundle": "dev-master",
"willdurand/propel-typehintable-behavior": "*",
"hwi/oauth-bundle": "0.4.*#dev",
"nomaya/social-bundle": "dev-master"
}
}
After a php composer.phar update, when I try /app.php, I have following errors :
Deprecated: The Symfony\Component\Security\Core\SecurityContextInterface interface is deprecated since version 2.6 and will be removed in 3.0. in /var/www/html/xxx/app/cache/prod/classes.php on line 3035
Deprecated: The Symfony\Component\Security\Core\SecurityContext class is deprecated since version 2.6 and will be removed in 3.0. Use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage or Symfony\Component\Security\Core\Authorization\AuthorizationChecker instead. in /var/www/html/xxx/app/cache/prod/classes.php on line 3047
Fatal error: Uncaught exception 'Symfony\Component\Debug\Exception\ContextErrorException' with message 'Catchable
Fatal Error: Argument 1 passed to Symfony\Component\Routing\Router::Symfony\Component\Routing\{closure}() must be an instance of Symfony\Component\Config\ConfigCacheInterface, instance of Symfony\Component\Config\ConfigCache given' in /var/www/html/xxx/app/cache/prod/classes.php:1302
Stack trace:
#0 /var/www/html/xxx/app/cache/prod/classes.php(1302): Symfony\Component\Debug\ErrorHandler->handleError(4096, 'Argument 1 pass...', '/var/www/html/p...', 1302, Array)
#1 [internal function]: Symfony\Component\Routing\Router->Symfony\Component\Routing\{closure}(Object(Symfony\Component\Config\ConfigCache))
#2 /var/www/html/xxx/vendor/symfony/symfony/src/Symfony/Component/Config/ConfigCacheFactory.php(46): call_user_func(Object(Closure), Object(Symfony\Component\Config\ConfigCache))
#3 /var/www/html/xxx/app/cache/prod/classes.php(1313): Symfony\Component\Config\ConfigCacheFactory->cache('/var/ww in /var/www/html/xxx/app/cache/prod/classes.php on line 5261
and when I go to /app_dev.php I have this one :
Whoops, looks like something went wrong.
1/1
FatalErrorException in ConfigDataCollector.php line 276:
Error: Undefined class constant 'END_OF_MAINTENANCE'
My PHP Version is 5.6.9 on Apache/2.2.15.
Anyone have a clue ?
Thanks
Knut
I solved this problem by regenerating bootstrap.php.cache (by running composer update / composer install, or directly via script)
You can try this:
php composer.phar self-update
before
php composer.phar update
The problem was an incompatibility between my different vendors, I have updated my composer.json to :
{
"name": "symfony/framework-standard-edition",
"license": "MIT",
"type": "project",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
"psr-0": { "": "src/" }
},
"require": {
"php": ">=5.4",
"symfony/symfony": ">=2.4",
"doctrine/orm": "~2.2,>=2.2.3",
"doctrine/doctrine-bundle": ">=1.2",
"twig/extensions": ">=1.0",
"symfony/assetic-bundle": ">=2.3",
"symfony/swiftmailer-bundle": ">=2.3",
"symfony/monolog-bundle": ">=2.4",
"sensio/distribution-bundle": ">=2.3",
"sensio/framework-extra-bundle": ">=3.0",
"sensio/generator-bundle": ">=2.3",
"incenteev/composer-parameter-handler": "~2.0",
"white-october/pagerfanta-bundle": "dev-master",
"friendsofsymfony/rest-bundle": "1.3.*",
"friendsofsymfony/comment-bundle": "2.0.*#dev",
"friendsofsymfony/message-bundle": "1.2.*#dev",
"friendsofsymfony/user-bundle": "~2.0#dev",
"nelmio/api-doc-bundle": "#stable",
"ornicar/akismet-bundle": "dev-master",
"friendsofsymfony/jsrouting-bundle": "2.0.*#dev",
"appventus/alertify-bundle": "dev-master",
"friendsofsymfony/oauth-server-bundle": "dev-master",
"willdurand/propel-typehintable-behavior": "*",
"hwi/oauth-bundle": "0.4.*#dev",
"nomaya/social-bundle": "dev-master"
}
}
and all works ...
Thanks.
try:
rm /var/www/html/xxx/app/cache/prod/* -rf
For what it's worth, I encountered this issue after upgrading symfony (to 2.8 from 2.6) which was running on a vagrant guest.
The issue was indeed with the app/bootstrap.php.cache file. In our case, it was not excluded from our rsync which meant if the host had not also updated composer the problem would reoccur. It was solved by excluding bootstrap.php.cache from rsync in our Vagrantfile:
config.vm.synced_folder "host/path", "guest/path", type: "rsync",
rsync__exclude: [ 'bootstrap.php.cache'],
This file is generated by composer, so running sudo composer install or sudo composer update on the guest will regenerate it.
Hope this saves someone else some time.

Use Doctrine 2.4 with Symfony and composer.json

Doctrine 2.4 has some interesting new features that I'd like to use in my current Symfony 2.3 project.
Is there a composer.json configuration to use doctrine 2.4 with Symfony? I can’t find a valid dependency list. If I specify the 2.4.3 version of doctrine/orm in my composer.json I get a composer update error because doctrine/doctrine-bundle does not allow a doctrine install > 2.3.
Doctrine 2.4 is mentioned in the Symfony2 docs but I haven't found a valid composer.json list.
Any help is appreciated.
Current composer.json
{
"name": "symfony/framework-standard-edition",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
"psr-0": { "": "src/" }
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/Fraktl/EscapeWSSEAuthenticationBundle.git"
}
],
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.3.*",
"doctrine/orm": ">=2.2.3,<2.4-dev",
"doctrine/doctrine-bundle": "1.2.*",
"twig/extensions": "1.0.*",
"symfony/assetic-bundle": "2.3.*",
"symfony/swiftmailer-bundle": "2.3.*",
"symfony/monolog-bundle": "2.3.*",
"sensio/distribution-bundle": "2.3.*",
"sensio/framework-extra-bundle": "2.3.*",
"sensio/generator-bundle": "2.3.*",
"incenteev/composer-parameter-handler": "~2.0",
"stof/doctrine-extensions-bundle": "dev-master",
"friendsofsymfony/jsrouting-bundle": "~1.1",
"friendsofsymfony/rest-bundle": "dev-master",
"sprain/validator-bundle": "dev-master",
"willdurand/geocoder-bundle": "#stable",
"friendsofsymfony/user-bundle": "~2.0#dev",
"escapestudios/wsse-authentication-bundle": "2.3.x-dev",
"jms/serializer-bundle": "dev-master",
"doctrine/doctrine-fixtures-bundle": "2.2.*",
"luxifer/doctrine-functions": "dev-master"
},
"scripts": {
"post-install-cmd": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
],
"post-update-cmd": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
]
},
"minimum-stability": "dev",
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web"
}
}
composer.json:
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.3.*",
"doctrine/orm": "2.4.*",
"doctrine/doctrine-bundle": "~1.2",
....
Then update your dependencys
$ composer update doctrine\orm
But ! im not sure, if it is supported because the symfony master is using the same version since 2.3 (symfony 2.5 composer.json)
"require": {
"doctrine/orm": "~2.2,>=2.2.3",
"doctrine/doctrine-bundle": "~1.2",

Symfony 2.2 to 2.4 upgrade trouble, setDispatcher() not found

I've been using Symfony 2.2 for quite a while and recently decided to upgrade to 2.4.
After running a composer update I receive this error message. It seems that the framework isn't able to find 'setDispatcher()' method for an unknown reason.
./composer.phar update
Loading composer repositories with package information
Updating dependencies (including require-dev)
....
Writing lock file
Generating autoload files
PHP Fatal error: Call to undefined method Symfony\Bundle\FrameworkBundle\Console\Application::setDispatcher() in vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php on line 86
Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-update-cmd event terminated with an exception
[RuntimeException]
An error occurred when executing the "'cache:clear --no-warmup'" command.
I've been searching a lot but couldn't find any similar issue.
Maybe someone has seen something like this before. Here is my composer.json. I think the problem could be related to this file.
{
"name": "my blogsoftware",
"description": "A Blog software distribution",
"license": "proprietary",
"autoload": {
"psr-0": { "": "src/" }
},
"require": {
"php": ">=5.3.3",
"symfony/symfony": "~2.4",
"doctrine/orm": "~2.2,>=2.2.3",
"doctrine/doctrine-bundle": "~1.2",
"twig/extensions": "~1.0",
"symfony/assetic-bundle": "~2.3",
"kriswallsmith/assetic": "1.1.*#dev",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~2.3",
"sensio/framework-extra-bundle": "~2.3",
"sensio/generator-bundle": "~2.3",
"symfony/console": "2.2.*#dev",
"doctrine/doctrine-fixtures-bundle": "dev-master",
"doctrine/data-fixtures" : "dev-master",
"friendsofsymfony/user-bundle": "2.0.*#dev",
"doctrine/doctrine-migrations-bundle": "2.1.*#dev",
"doctrine/migrations": "1.0.*#dev",
"sonata-project/core-bundle" : "2.2.*#dev",
"sonata-project/admin-bundle": "2.2.*#dev",
"sonata-project/doctrine-orm-admin-bundle": "2.2.*#dev",
"sonata-project/intl-bundle": "2.2.*#dev",
"sonata-project/cache-bundle": "2.1.*#dev",
"sonata-project/block-bundle": "2.2.*#dev",
"sonata-project/notification-bundle": "2.2.*#dev",
"simplethings/entity-audit-bundle": "dev-master",
"knplabs/knp-menu-bundle":"1.1.x-dev",
"vich/uploader-bundle": "dev-master",
"knplabs/knp-gaufrette-bundle": "0.2.*#dev",
"knplabs/gaufrette": "0.2.*#dev",
"genemu/form-bundle": "2.2.*#dev",
"eko/feedbundle": "1.1.*#dev",
"facebook/php-sdk": "3.2.0",
"friendsofsymfony/facebook-bundle": "dev-master",
"shark/simple_html_dom": "dev-master",
"incenteev/composer-parameter-handler": "2.1.*#dev"
},
"scripts": {
"post-install-cmd": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
],
"post-update-cmd": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
]
},
"config": {
"bin-dir": "bin"
},
"minimum-stability": "beta",
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
},
"branch-alias": {
"dev-master": "2.4-dev"
}
}
}
Ok, I found out what produced the error. The console version was to old resulting in loading the wrong class producing the error above.
Replacing
"symfony/console": "2.2.*#dev",
with
"symfony/console": "2.5.*#dev",
solved the problem.

Categories