- added possibility to run PHP built-in server in production environment
- added possibility to load the serializer component in the service container
- added route debug information when using the
router:match
command - added
TimedPhpEngine
- added
--clean
option the thetranslation:update
command - added
http_method_override
option
- added a new
uri_signer
service to help sign URIs - deprecated
Symfony\Bundle\FrameworkBundle\HttpKernel::render()
andSymfony\Bundle\FrameworkBundle\HttpKernel::forward()
- deprecated the
Symfony\Bundle\FrameworkBundle\HttpKernel
class in favor ofSymfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel
- added support for adding new HTTP content rendering strategies (like ESI and Hinclude)
in the DIC via the
kernel.fragment_renderer
tag - [BC BREAK] restricted the
Symfony\Bundle\FrameworkBundle\HttpKernel::render()
method to only accept URIs or ControllerReference instancesSymfony\Bundle\FrameworkBundle\HttpKernel::render()
method signature changed and the first argument must now be a URI or a ControllerReference instance (thegenerateInternalUri()
method was removed)- The internal routes (
Resources/config/routing/internal.xml
) have been removed and replaced with a listener (Symfony\Component\HttpKernel\EventListener\FragmentListener
) - The
render
method of theactions
templating helper signature and arguments changed
- replaced Symfony\Bundle\FrameworkBundle\Controller\TraceableControllerResolver by Symfony\Component\HttpKernel\Controller\TraceableControllerResolver
- replaced Symfony\Component\HttpKernel\Debug\ContainerAwareTraceableEventDispatcher by Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher
- added Client::enableProfiler()
- A new parameter has been added to the DIC:
router.request_context.base_url
You can customize it for your functional tests or for generating urls with the right base url when your are in the cli context. - Added support for default templates per render tag
- moved the translation files to the Form and Validator components
- changed the default extension for XLIFF files from .xliff to .xlf
- moved Symfony\Bundle\FrameworkBundle\ContainerAwareEventDispatcher to Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher
- moved Symfony\Bundle\FrameworkBundle\Debug\TraceableEventDispatcher to Symfony\Component\EventDispatcher\ContainerAwareTraceableEventDispatcher
- added a router:match command
- added a config:dump-reference command
- added a server:run command
- added kernel.event_subscriber tag
- added a way to create relative symlinks when running assets:install command (--relative option)
- added Controller::getUser()
- [BC BREAK] assets_base_urls and base_urls merging strategy has changed
- changed the default profiler storage to use the filesystem instead of SQLite
- added support for placeholders in route defaults and requirements (replaced by the value set in the service container)
- added Filesystem component as a dependency
- added support for hinclude (use
standalone: 'js'
in render tag) - session options: lifetime, path, domain, secure, httponly were deprecated. Prefixed versions should now be used instead: cookie_lifetime, cookie_path, cookie_domain, cookie_secure, cookie_httponly
- [BC BREAK] following session options: 'lifetime', 'path', 'domain', 'secure', 'httponly' are now prefixed with cookie_ when dumped to the container
- Added
handler_id
configuration undersession
key to representsession.handler
service, defaults tosession.handler.native_file
. - Added
gc_maxlifetime
,gc_probability
, andgc_divisor
to session configuration. This means session garbage collection has agc_probability
/gc_divisor
chance of being run. Thegc_maxlifetime
defines how long a session can idle for. It is different from cookie lifetime which declares how long a cookie can be stored on the remote client. - Removed 'auto_start' configuration parameter from session config. The session will start on demand.
- [BC BREAK] TemplateNameParser::parseFromFilename() has been moved to a dedicated parser: TemplateFilenameParser::parse().
- [BC BREAK] Kernel parameters are replaced by their value wherever they appear in Route patterns, requirements and defaults. Use '%%' as the escaped value for '%'.
- [BC BREAK] Switched behavior of flash messages to expire flash messages on retrieval using Symfony\Component\HttpFoundation\Session\Flash\FlashBag as opposed to on next pageload regardless of whether they are displayed or not.