Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit e6135ad

Browse files
committed
feature #890 add upgrade instructions for 2.8 (Tobion)
This PR was merged into the 2.8 branch. Discussion ---------- add upgrade instructions for 2.8 Fixes https://github.com/symfony/symfony-standard/issues/882, symfony/symfony#16738, symfony/symfony#16713 Commits ------- 5d05253 add upgrade instructions for 2.8
2 parents f6a3312 + 5d05253 commit e6135ad

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

UPGRADE-2.8.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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

Comments
 (0)