|
| 1 | +UPGRADE FROM 2.7 to 2.8 |
| 2 | +======================= |
| 3 | + |
| 4 | +When upgrading Symfony from 2.7 to 2.8, beware of the following changes in the |
| 5 | +Standard Edition: |
| 6 | + |
| 7 | + * Assetic is not included by default anymore. |
| 8 | + * It comes with a new major version of `sensio/distribution-bundle`. If you are |
| 9 | + updating the bundle in your project as well, the following changes are required: |
| 10 | + - The web configurator got removed. So you need to remove the `_configurator` |
| 11 | + routing entry from `app/config/routing_dev.yml`. |
| 12 | + - The generated `app/bootstrap.php.cache` does not include autoloading anymore. |
| 13 | + So you need to add the autoloading code in your front controllers `web/app.php`, |
| 14 | + `web/app_dev.php`, `app/console` and `app/phpunit.xml.dist` (bootstrap config). |
| 15 | + - If have been using the Symfony 3 directory structure already, you need to |
| 16 | + overwrite the cache and log directory in your `AppKernel` as it is also done |
| 17 | + in Symfony 3 now (see |
| 18 | + [`app/AppKernel.php`](https://github.com/symfony/symfony-standard/blob/master/app/AppKernel.php#L31-L44)). |
| 19 | + * The `app/AppKernel.php` is now autoloaded via composer. |
| 20 | + |
| 21 | +You can have a look at the |
| 22 | +[diff](https://github.com/symfony/symfony-standard/compare/2.7...2.8) |
| 23 | +between the 2.7 version of the Standard Edition and the 2.8 version that |
| 24 | +should help you to apply the changes in your project. |
| 25 | + |
| 26 | +Additionally, we recommend to |
| 27 | +[add phpunit-bridge to handle deprecations](https://github.com/symfony/symfony-standard/pull/884) |
| 28 | +in your test suite and to ensure tests are |
| 29 | +[run with full error reporting](https://github.com/symfony/symfony-standard/pull/875). |
0 commit comments