When upgrading Symfony from 2.7 to 2.8, beware of the following changes in the Standard Edition:
- Assetic is not included by default anymore.
- It comes with a new major version of
sensio/distribution-bundle
. If you are updating the bundle in your project as well, the following changes are required:- The web configurator got removed. So you need to remove the
_configurator
routing entry fromapp/config/routing_dev.yml
. - The generated
app/bootstrap.php.cache
does not include autoloading anymore. So you need to add the autoloading code in your front controllersweb/app.php
,web/app_dev.php
,app/console
andapp/phpunit.xml.dist
(bootstrap config). - If you have been using the Symfony 3 directory structure already, you need to
overwrite the cache and log directories in your
AppKernel
as it is also done in Symfony 3 now (seeapp/AppKernel.php
).
- The web configurator got removed. So you need to remove the
- The
app/AppKernel.php
andapp/AppCache.php
files are now autoloaded via Composer.
You can have a look at the diff between the 2.7 version of the Standard Edition and the 2.8 version that should help you to apply the changes in your project.
Additionally, we recommend to add phpunit-bridge to handle deprecations in your test suite and to ensure tests are run with full error reporting.