2012-04-26 21:54:51 +01:00
CHANGELOG
=========
2017-05-09 08:19:29 +01:00
3.4.0
-----
2017-11-07 14:35:08 +00:00
* Added `translator.default_path` option and parameter
2017-10-10 10:13:08 +01:00
* Session `use_strict_mode` is now enabled by default and the corresponding option has been deprecated
2017-09-26 10:37:36 +01:00
* Made the `cache:clear` command to *not* clear "app" PSR-6 cache pools anymore,
but to still clear "system" ones; use the `cache:pool:clear` command to clear "app" pools instead
2017-09-23 14:20:05 +01:00
* Always register a minimalist logger that writes in `stderr`
2017-09-11 18:47:15 +01:00
* Deprecated `profiler.matcher` option
2017-08-09 11:12:24 +01:00
* Added support for `EventSubscriberInterface` on `MicroKernelTrait`
2017-06-12 19:05:06 +01:00
* Removed `doctrine/cache` from the list of required dependencies in `composer.json`
* Deprecated `validator.mapping.cache.doctrine.apc` service
2017-06-12 15:27:27 +01:00
* The `symfony/stopwatch` dependency has been removed, require it via `composer
require symfony/stopwatch` in your `dev` environment.
* Deprecated using the `KERNEL_DIR` environment variable with `KernelTestCase::getKernelClass()` .
* Deprecated the `KernelTestCase::getPhpUnitXmlDir()` and `KernelTestCase::getPhpUnitCliConfigArgument()` methods.
2017-09-28 15:57:16 +01:00
* Deprecated `AddCacheClearerPass` , use tagged iterator arguments instead.
* Deprecated `AddCacheWarmerPass` , use tagged iterator arguments instead.
2019-08-13 16:09:47 +01:00
* Deprecated `TranslationDumperPass` , use
2017-05-05 11:35:04 +01:00
`Symfony\Component\Translation\DependencyInjection\TranslationDumperPass` instead
2019-08-13 16:09:47 +01:00
* Deprecated `TranslationExtractorPass` , use
2017-05-05 11:35:04 +01:00
`Symfony\Component\Translation\DependencyInjection\TranslationExtractorPass` instead
2019-08-13 16:09:47 +01:00
* Deprecated `TranslatorPass` , use
2017-05-05 11:35:04 +01:00
`Symfony\Component\Translation\DependencyInjection\TranslatorPass` instead
2017-07-12 10:59:19 +01:00
* Added `command` attribute to the `console.command` tag which takes the command
name as value, using it makes the command lazy
2017-07-08 01:26:52 +01:00
* Added `cache:pool:prune` command to allow manual stale cache item pruning of supported PSR-6 and PSR-16 cache pool
implementations
2019-08-13 16:09:47 +01:00
* Deprecated `Symfony\Bundle\FrameworkBundle\Translation\TranslationLoader` , use
2017-07-25 19:07:39 +01:00
`Symfony\Component\Translation\Reader\TranslationReader` instead
* Deprecated `translation.loader` service, use `translation.reader` instead
2017-08-12 11:12:58 +01:00
* `AssetsInstallCommand::__construct()` now takes an instance of
`Symfony\Component\Filesystem\Filesystem` as first argument
* `CacheClearCommand::__construct()` now takes an instance of
`Symfony\Component\HttpKernel\CacheClearer\CacheClearerInterface` as
first argument
* `CachePoolClearCommand::__construct()` now takes an instance of
`Symfony\Component\HttpKernel\CacheClearer\Psr6CacheClearer` as
first argument
* `EventDispatcherDebugCommand::__construct()` now takes an instance of
`Symfony\Component\EventDispatcher\EventDispatcherInterface` as
first argument
* `RouterDebugCommand::__construct()` now takes an instance of
2017-12-20 15:01:44 +00:00
`Symfony\Component\Routing\RouterInterface` as
2017-08-12 11:12:58 +01:00
first argument
* `RouterMatchCommand::__construct()` now takes an instance of
2017-12-20 15:01:44 +00:00
`Symfony\Component\Routing\RouterInterface` as
2017-08-12 11:12:58 +01:00
first argument
* `TranslationDebugCommand::__construct()` now takes an instance of
`Symfony\Component\Translation\TranslatorInterface` as
first argument
* `TranslationUpdateCommand::__construct()` now takes an instance of
`Symfony\Component\Translation\TranslatorInterface` as
first argument
* `AssetsInstallCommand` , `CacheClearCommand` , `CachePoolClearCommand` ,
`EventDispatcherDebugCommand` , `RouterDebugCommand` , `RouterMatchCommand` ,
`TranslationDebugCommand` , `TranslationUpdateCommand` , `XliffLintCommand`
and `YamlLintCommand` classes have been marked as final
2016-12-24 11:15:47 +00:00
* Added `asset.request_context.base_path` and `asset.request_context.secure` parameters
to provide a default request context in case the stack is empty (similar to `router.request_context.*` parameters)
2017-09-10 14:11:38 +01:00
* Display environment variables managed by `Dotenv` in `AboutCommand`
2017-05-09 08:19:29 +01:00
2016-12-05 22:50:48 +00:00
3.3.0
-----
2017-04-13 10:10:44 +01:00
* Not defining the `type` option of the `framework.workflows.*` configuration entries is deprecated.
The default value will be `state_machine` in Symfony 4.0.
2017-04-06 16:51:47 +01:00
* Deprecated the `CompilerDebugDumpPass` class
2017-06-05 13:57:44 +01:00
* Deprecated the "framework.trusted_proxies" configuration option and the corresponding "kernel.trusted_proxies" parameter
2019-04-17 07:02:18 +01:00
* Added a new version strategy option called "json_manifest_path"
2017-03-17 19:10:06 +00:00
that allows you to use the `JsonManifestVersionStrategy` .
2017-03-29 17:13:28 +01:00
* Added `Symfony\Bundle\FrameworkBundle\Controller\AbstractController` . It provides
the same helpers as the `Controller` class, but does not allow accessing the dependency
injection container, in order to encourage explicit dependency declarations.
2017-02-26 16:28:32 +00:00
* Added support for the `controller.service_arguments` tag, for injecting services into controllers' actions
2017-01-07 16:09:07 +00:00
* Changed default configuration for
assets/forms/validation/translation/serialization/csrf from `canBeEnabled()` to
`canBeDisabled()` when Flex is used
2016-12-23 21:11:40 +00:00
* The server:* commands and their associated router files were moved to WebServerBundle
2016-12-14 21:05:29 +00:00
* Translation related services are not loaded anymore when the `framework.translator` option
is disabled.
2016-12-05 22:50:48 +00:00
* Added `GlobalVariables::getToken()`
2016-07-27 09:24:18 +01:00
* Deprecated `Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddConsoleCommandPass` . Use `Symfony\Component\Console\DependencyInjection\AddConsoleCommandPass` instead.
2017-02-16 13:35:07 +00:00
* Added configurable paths for validation files
* Deprecated `SerializerPass` , use `Symfony\Component\Serializer\DependencyInjection\SerializerPass` instead
* Deprecated `FormPass` , use `Symfony\Component\Form\DependencyInjection\FormPass` instead
2017-02-14 19:09:41 +00:00
* Deprecated `SessionListener`
* Deprecated `TestSessionListener`
2017-02-23 11:19:48 +00:00
* Deprecated `Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\ConfigCachePass` .
2017-09-28 15:57:16 +01:00
Use tagged iterator arguments instead.
2017-02-20 18:49:52 +00:00
* Deprecated `PropertyInfoPass` , use `Symfony\Component\PropertyInfo\DependencyInjection\PropertyInfoPass` instead
2017-02-20 19:19:16 +00:00
* Deprecated `ControllerArgumentValueResolverPass` . Use
2017-02-21 21:38:27 +00:00
`Symfony\Component\HttpKernel\DependencyInjection\ControllerArgumentValueResolverPass` instead
2017-02-20 19:19:16 +00:00
* Deprecated `RoutingResolverPass` , use `Symfony\Component\Routing\DependencyInjection\RoutingResolverPass` instead
2017-04-13 10:10:44 +01:00
* [BC BREAK] The `server:run` , `server:start` , `server:stop` and
`server:status` console commands have been moved to a dedicated bundle.
Require `symfony/web-server-bundle` in your composer.json and register
2017-03-21 14:47:31 +00:00
`Symfony\Bundle\WebServerBundle\WebServerBundle` in your AppKernel to use them.
2017-03-15 15:59:02 +00:00
* Added `$defaultLocale` as 3rd argument of `Translator::__construct()`
making `Translator` works with any PSR-11 container
2017-04-13 10:10:44 +01:00
* Added `framework.serializer.mapping` config option allowing to define custom
2017-03-08 00:16:09 +00:00
serialization mapping files and directories
2017-02-22 23:37:05 +00:00
* Deprecated `AddValidatorInitializersPass` , use
`Symfony\Component\Validator\DependencyInjection\AddValidatorInitializersPass` instead
* Deprecated `AddConstraintValidatorsPass` , use
`Symfony\Component\Validator\DependencyInjection\AddConstraintValidatorsPass` instead
2017-05-25 09:01:20 +01:00
* Deprecated `ValidateWorkflowsPass` , use
2017-04-06 09:44:15 +01:00
`Symfony\Component\Workflow\DependencyInjection\ValidateWorkflowsPass` instead
2017-06-02 19:02:43 +01:00
* Deprecated `ConstraintValidatorFactory` , use
2017-05-25 09:01:20 +01:00
`Symfony\Component\Validator\ContainerConstraintValidatorFactory` instead.
2017-09-14 08:57:19 +01:00
* Deprecated `PhpStringTokenParser` , use
`Symfony\Component\Translation\Extractor\PhpStringTokenParser` instead.
* Deprecated `PhpExtractor` , use
`Symfony\Component\Translation\Extractor\PhpExtractor` instead.
2016-12-05 22:50:48 +00:00
2016-04-11 14:31:32 +01:00
3.2.0
-----
2016-09-30 00:48:22 +01:00
* Removed `doctrine/annotations` from the list of required dependencies in `composer.json`
2016-09-28 18:11:47 +01:00
* Removed `symfony/security-core` and `symfony/security-csrf` from the list of required dependencies in `composer.json`
2016-09-28 16:50:27 +01:00
* Removed `symfony/templating` from the list of required dependencies in `composer.json`
2016-09-28 05:49:39 +01:00
* Removed `symfony/translation` from the list of required dependencies in `composer.json`
2016-09-28 05:29:33 +01:00
* Removed `symfony/asset` from the list of required dependencies in `composer.json`
2016-09-21 17:58:17 +01:00
* The `Resources/public/images/*` files have been removed.
* The `Resources/public/css/*.css` files have been removed (they are now inlined in TwigBundle).
2017-02-23 11:19:48 +00:00
* Added possibility to prioritize form type extensions with `'priority'` attribute on tags `form.type_extension`
2016-04-11 14:31:32 +01:00
2016-02-02 09:35:46 +00:00
3.1.0
-----
* Added `Controller::json` to simplify creating JSON responses when using the Serializer component
2016-03-06 18:36:57 +00:00
* Deprecated absolute template paths support in the template name parser
2016-03-29 09:52:53 +01:00
* Deprecated using core form types without dependencies as services
2016-04-22 18:42:42 +01:00
* Added `Symfony\Component\HttpHernel\DataCollector\RequestDataCollector::onKernelResponse()`
2016-04-16 14:52:14 +01:00
* Added `Symfony\Bundle\FrameworkBundle\DataCollector\RequestDataCollector`
2017-07-09 11:27:07 +01:00
* The `framework.serializer.cache` option and the service `serializer.mapping.cache.apc` have been
deprecated. APCu should now be automatically used when available.
2016-02-02 09:35:46 +00:00
2015-09-26 10:14:12 +01:00
3.0.0
-----
* removed `validator.api` parameter
* removed `alias` option of the `form.type` tag
2015-09-25 12:51:44 +01:00
2.8.0
-----
2015-09-26 18:00:28 +01:00
* Deprecated the `alias` option of the `form.type_extension` tag in favor of the
`extended_type` /`extended-type` option
* Deprecated the `alias` option of the `form.type` tag
2015-09-25 12:51:44 +01:00
* Deprecated the Shell
2015-03-20 19:00:27 +00:00
2.7.0
-----
* Added possibility to extract translation messages from a file or files besides extracting from a directory
2015-03-24 13:45:14 +00:00
* Added `TranslationsCacheWarmer` to create catalogues at warmup
2015-03-20 19:00:27 +00:00
2014-08-07 13:08:32 +01:00
2.6.0
-----
2014-10-09 08:19:40 +01:00
* Added helper commands (`server:start`, `server:stop` and `server:status` ) to control the built-in web
server in the background
2014-08-07 13:08:32 +01:00
* Added `Controller::isCsrfTokenValid` helper
2014-08-21 18:05:54 +01:00
* Added configuration for the PropertyAccess component
2014-08-06 10:27:17 +01:00
* Added `Controller::redirectToRoute` helper
* Added `Controller::addFlash` helper
* Added `Controller::isGranted` helper
* Added `Controller::denyAccessUnlessGranted` helper
2014-09-24 08:31:12 +01:00
* Deprecated `app.security` in twig as `app.user` and `is_granted()` are already available
2014-08-07 13:08:32 +01:00
2013-11-30 23:16:48 +00:00
2.5.0
-----
2014-01-19 23:09:51 +00:00
* Added `translation:debug` command
2014-04-30 18:04:41 +01:00
* Added `--no-backup` option to `translation:update` command
2014-01-30 19:09:44 +00:00
* Added `config:debug` command
2014-01-08 22:03:56 +00:00
* Added `yaml:lint` command
* Deprecated the `RouterApacheDumperCommand` which will be removed in Symfony 3.0.
2013-11-30 23:16:48 +00:00
2013-06-24 21:26:23 +01:00
2.4.0
-----
* allowed multiple IP addresses in profiler matcher settings
2013-09-09 16:26:18 +01:00
* added stopwatch helper to time templates with the WebProfilerBundle
2013-09-27 08:38:53 +01:00
* added service definition for "security.secure_random" service
* added service definitions for the new Security CSRF sub-component
2013-06-24 21:26:23 +01:00
2013-03-23 07:35:36 +00:00
2.3.0
-----
2013-04-26 14:53:58 +01:00
* [BC BREAK] added a way to disable the profiler (when disabling the profiler, it is now completely removed)
To get the same "disabled" behavior as before, set `enabled` to `true` and `collect` to `false`
2013-04-25 14:44:15 +01:00
* [BC BREAK] the `Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\RegisterKernelListenersPass` was moved
to `Component\HttpKernel\DependencyInjection\RegisterListenersPass`
2013-04-25 16:43:02 +01:00
* added ControllerNameParser::build() which converts a controller short notation (a:b:c) to a class::method notation
2013-03-28 11:40:30 +00:00
* added possibility to run PHP built-in server in production environment
2013-01-20 18:39:49 +00:00
* added possibility to load the serializer component in the service container
2013-03-23 13:51:10 +00:00
* added route debug information when using the `router:match` command
2013-03-23 13:42:22 +00:00
* added `TimedPhpEngine`
2013-04-21 14:23:54 +01:00
* added `--clean` option to the `translation:update` command
2013-03-23 07:35:36 +00:00
* added `http_method_override` option
2012-12-30 15:38:36 +00:00
* added support for default templates per render tag
* added FormHelper::form(), FormHelper::start() and FormHelper::end()
* deprecated FormHelper::enctype() in favor of FormHelper::start()
2013-04-21 18:22:48 +01:00
* RedirectController actions now receive the Request instance via the method signature.
2013-03-23 07:35:36 +00:00
2012-09-18 15:34:09 +01:00
2.2.0
-----
2013-01-10 15:47:11 +00:00
* added a new `uri_signer` service to help sign URIs
* deprecated `Symfony\Bundle\FrameworkBundle\HttpKernel::render()` and `Symfony\Bundle\FrameworkBundle\HttpKernel::forward()`
* deprecated the `Symfony\Bundle\FrameworkBundle\HttpKernel` class in favor of `Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel`
* added support for adding new HTTP content rendering strategies (like ESI and Hinclude)
2013-01-31 09:37:27 +00:00
in the DIC via the `kernel.fragment_renderer` tag
2013-01-10 15:47:11 +00:00
* [BC BREAK] restricted the `Symfony\Bundle\FrameworkBundle\HttpKernel::render()` method to only accept URIs or ControllerReference instances
2012-12-17 14:17:23 +00:00
* `Symfony\Bundle\FrameworkBundle\HttpKernel::render()` method signature changed and the first argument
2013-01-10 15:47:11 +00:00
must now be a URI or a ControllerReference instance (the `generateInternalUri()` method was removed)
2013-01-31 09:37:27 +00:00
* The internal routes (`Resources/config/routing/internal.xml`) have been removed and replaced with a listener (`Symfony\Component\HttpKernel\EventListener\FragmentListener`)
2013-01-10 15:47:11 +00:00
* The `render` method of the `actions` templating helper signature and arguments changed
2012-10-13 19:48:33 +01:00
* replaced Symfony\Bundle\FrameworkBundle\Controller\TraceableControllerResolver by Symfony\Component\HttpKernel\Controller\TraceableControllerResolver
2012-07-18 17:23:30 +01:00
* replaced Symfony\Component\HttpKernel\Debug\ContainerAwareTraceableEventDispatcher by Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher
2012-09-18 15:34:09 +01:00
* added Client::enableProfiler()
2012-12-30 15:38:36 +00:00
* a new parameter has been added to the DIC: `router.request_context.base_url`
2013-12-28 08:32:39 +00:00
You can customize it for your functional tests or for generating URLs with
the right base URL when your are in the CLI context.
2012-12-30 15:38:36 +00:00
* added support for default templates per render tag
2012-09-18 15:34:09 +01:00
2012-04-26 21:54:51 +01:00
2.1.0
-----
2012-06-16 12:08:37 +01:00
* moved the translation files to the Form and Validator components
2012-04-26 21:54:51 +01:00
* 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 under `session` key to represent `session.handler`
2012-07-13 14:54:32 +01:00
service, defaults to `session.handler.native_file` .
2012-04-26 21:54:51 +01:00
* Added `gc_maxlifetime` , `gc_probability` , and `gc_divisor` to session
configuration. This means session garbage collection has a
`gc_probability` /`gc_divisor` chance of being run. The `gc_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.
2012-06-29 17:34:28 +01:00
* Removed 'auto_start' configuration parameter from session config. The session will
start on demand.
2012-07-03 13:05:19 +01:00
* [BC BREAK] TemplateNameParser::parseFromFilename() has been moved to a dedicated
parser: TemplateFilenameParser::parse().
2012-07-14 22:43:03 +01:00
* [BC BREAK] Kernel parameters are replaced by their value wherever they appear
2012-07-04 13:24:46 +01:00
in Route patterns, requirements and defaults. Use '%%' as the escaped value for '%'.
2012-07-14 22:43:03 +01:00
* [BC BREAK] Switched behavior of flash messages to expire flash messages on retrieval
using Symfony\Component\HttpFoundation\Session\Flash\FlashBag as opposed to on
2012-09-18 15:35:58 +01:00
next pageload regardless of whether they are displayed or not.