When I updated my project to version 3.4 the first thing I did was via composer to change the dependencies I had. This is my composer:
"require": {
"php": ">=5.5.9",
"doctrine/doctrine-bundle": "^1.9",
"doctrine/orm": "^2.5",
"eightpoints/guzzle-bundle": "^5.3",
"friendsofsymfony/elastica-bundle": "^4.0",
"friendsofsymfony/jsrouting-bundle": "^1.6",
"friendsofsymfony/oauth-server-bundle": "^1.5",
"friendsofsymfony/rest-bundle": "^2.1",
"h4cc/wkhtmltopdf-amd64": "^0.12.3",
"incenteev/composer-parameter-handler": "~2.0",
"jms/security-extra-bundle": "dev-master",
"jms/serializer-bundle": "^1.4",
"knplabs/knp-paginator-bundle": "^2.5",
"knplabs/knp-snappy-bundle": "^1.4",
"liip/imagine-bundle": "^1.9",
"nelmio/api-doc-bundle": "^2.13",
"nicolafranchini/venobox": "^1.8",
"oro/doctrine-extensions": "^1.1",
"sensio/distribution-bundle": "^5.0.19",
"sensio/framework-extra-bundle": "^5.0.0",
"symfony/assetic-bundle": "~2.3",
"symfony/event-dispatcher": "^3.4",
"symfony/finder": "^3.3",
"symfony/monolog-bundle": "^3.1.0",
"symfony/swiftmailer-bundle": "~2.3,>=2.3.10",
"symfony/symfony": "3.4.*",
"twig/twig": "^1.0||^2.0"
}
Then i used command composer update symfony/symfony --with-dependencies, after that I moved the folders cache, logs and sessions to var and moved app/console to bin/console. i added some lines to my appkernel.php:
public function getRootDir()
{
return __DIR__;
}
public function getCacheDir()
{
return dirname(__DIR__).'/var/cache/'.$this->getEnvironment();
}
public function getLogDir()
{
return dirname(__DIR__).'/var/logs';
}
In my services.yml
_defaults:
autowire: true
autoconfigure: true
public: false
Finally, when i tried to clean cache with php bin/console cache:clear --no-warmup --env=dev i got the following error:
If any of you know how to solve it, I would appreciate it very much!
Comments
Post a Comment