|
1 | 1 | UPGRADE FROM 2.2 to 2.3
|
2 | 2 | =======================
|
3 | 3 |
|
4 |
| - * You now have to manually enable the [debug component](http://symfony.com/blog/new-in-symfony-2-3-new-debug-component) in [`web/app_dev.php`](https://github.com/symfony/symfony-standard/blob/2.3/web/app_dev.php) |
5 |
| - by adding `Debug::enable();` just after including the boostrap cache. |
| 4 | +When upgrading Symfony from 2.2 to 2.3, you need to do the following changes |
| 5 | +to the code that came from the Standard Edition: |
| 6 | + |
| 7 | + * The debugging tools are not enabled by default anymore and should be added |
| 8 | + to the |
| 9 | + [`web/app_dev.php`](https://github.com/symfony/symfony-standard/blob/2.3/web/app_dev.php) |
| 10 | + front controller manually, just after including the bootstrap cache: |
| 11 | + |
| 12 | + use Symfony\Component\Debug\Debug; |
| 13 | + |
| 14 | + Debug::enable(); |
| 15 | + |
| 16 | + You also need to enable debugging in the |
| 17 | + [`app/console`](https://github.com/symfony/symfony-standard/blob/2.3/app/console) |
| 18 | + script, after the `$debug` variable is defined: |
| 19 | + |
| 20 | + use Symfony\Component\Debug\Debug; |
| 21 | + |
| 22 | + if ($debug) { |
| 23 | + Debug::enable(); |
| 24 | + } |
| 25 | + |
| 26 | + * The `parameters.yml` file can now be managed by the |
| 27 | + `incenteev/composer-parameter-handler` bundle that comes with the 2.3 |
| 28 | + Standard Edition: |
| 29 | + |
| 30 | + * add `"incenteev/composer-parameter-handler": "~2.0"` to your |
| 31 | + `composer.json` file; |
| 32 | + |
| 33 | + * add `/app/config/parameters.yml` to your `.gitignore` file; |
| 34 | + |
| 35 | + * create a |
| 36 | + [`app/config/parameters.yml.dist`](https://github.com/symfony/symfony-standard/blob/2.3/app/config/parameters.yml.dist) |
| 37 | + file with sensible values for all your parameters. |
| 38 | + |
| 39 | + * It is highly recommended that you switch the minimum stability to `stable` |
| 40 | + in your `composer.json` file. |
| 41 | + |
| 42 | + * If you are using Apache, have a look at the new |
| 43 | + [`.htaccess`](https://github.com/symfony/symfony-standard/blob/2.3/web/.htaccess) |
| 44 | + configuration and change yours accordingly. |
| 45 | + |
| 46 | + * In the |
| 47 | + [`app/autoload.php`](https://github.com/symfony/symfony-standard/blob/2.3/app/autoload.php) |
| 48 | + file, the section about `intl` should be removed as it is not needed anymore. |
| 49 | + |
| 50 | +You can also have a look at the |
| 51 | +[diff](https://github.com/symfony/symfony-standard/compare/v2.2.0%E2%80%A62.3) |
| 52 | +between the 2.2 version of the Standard Edition and the 2.3 version. |
0 commit comments