1.9 KiB
UPGRADE FROM 2.2 to 2.3
When upgrading Symfony from 2.2 to 2.3, you need to do the following changes to the code that came from the Standard Edition:
-
The debugging tools are not enabled by default anymore and should be added to the
web/app_dev.phpfront controller manually, just after including the bootstrap cache:use Symfony\Component\Debug\Debug; Debug::enable();You also need to enable debugging in the
app/consolescript, after the$debugvariable is defined:use Symfony\Component\Debug\Debug; if ($debug) { Debug::enable(); } -
The
parameters.ymlfile can now be managed by theincenteev/composer-parameter-handlerbundle that comes with the 2.3 Standard Edition:-
add
"incenteev/composer-parameter-handler": "~2.0"to yourcomposer.jsonfile; -
add
/app/config/parameters.ymlto your.gitignorefile; -
create a
app/config/parameters.yml.distfile with sensible values for all your parameters.
-
-
It is highly recommended that you switch the minimum stability to
stablein yourcomposer.jsonfile. -
If you are using Apache, have a look at the new
.htaccessconfiguration and change yours accordingly. -
In the
app/autoload.phpfile, the section aboutintlshould be removed as it is not needed anymore.
You can also have a look at the diff between the 2.2 version of the Standard Edition and the 2.3 version.