How to update your project?
This document explains how to upgrade from one Symfony2 PR version to the next one. It only discusses changes that need to be done when using the "public" API of the framework. If you "hack" the core, you should probably follow the timeline closely anyway.
PR9 to PR10
Bundle logical names earned back their
ZendBundlehas been replaced by
MonologBundle. Have a look at the changes made to Symfony SE to see how to upgrade your projects: https://github.com/symfony/symfony-standard/pull/30/files
Almost all core bundles parameters have been removed. You should use the settings exposed by the bundle extension configuration instead.
Some core bundles service names changed for better consistency.
Namespace for validators has changed from
assert(it was announced for PR9 but it was not the case then):
Assertprefix used for some constraints has been removed (
CommandTester::getDisplay()method now return the command exit code
PR8 to PR9
Symfony\Bundle\FrameworkBundle\Util\Filesystemhas been moved to
Executeconstraint has been renamed to
The HTTP exceptions classes signatures have changed:
throw new NotFoundHttpException('Not Found', $message, 0, $e);
throw new NotFoundHttpException($message, $e);
The RequestMatcher class does not add
$anymore to regexp.
You need to update your security configuration accordingly for instance:
profiler: pattern: /_profiler/.*
profiler: pattern: ^/_profiler
Global templates under
app/moved to a new location (old directory did not work anyway):
Bundle logical names lose their
Assetic filters must be now explicitly loaded:
assetic: filters: cssrewrite: ~ yui_css: jar: "/path/to/yuicompressor.jar" my_filter: resource: "%kernel.root_dir%/config/my_filter.xml" foo: bar