2016-12-06 10:28:32 +00:00
UPGRADE FROM 3.2 to 3.3
=======================
ClassLoader
-----------
2017-01-20 09:53:58 +00:00
* The component is deprecated and will be removed in 4.0. Use Composer instead.
2016-11-28 07:59:03 +00:00
2017-01-24 09:54:11 +00:00
Debug
-----
* The `ContextErrorException` class is deprecated. `\ErrorException` will be used instead in 4.0.
2016-11-28 07:50:06 +00:00
DependencyInjection
-------------------
2016-12-19 10:40:30 +00:00
2017-02-01 11:51:46 +00:00
* Autowiring-types have been deprecated, use aliases instead.
Before:
```xml
< service id = "annotations.reader" class = "Doctrine \Common \Annotations \AnnotationReader" public = "false" >
< autowiring-type > Doctrine\Common\Annotations\Reader</ autowiring-type >
< / service >
```
After:
```xml
< service id = "annotations.reader" class = "Doctrine \Common \Annotations \AnnotationReader" public = "false" />
< service id = "Doctrine \Common \Annotations \Reader" alias = "annotations.reader" public = "false" />
```
2017-01-10 07:04:52 +00:00
* The `Reference` and `Alias` classes do not make service identifiers lowercase anymore.
* Case insensitivity of service identifiers is deprecated and will be removed in 4.0.
2016-12-19 09:27:55 +00:00
* Using the `PhpDumper` with an uncompiled `ContainerBuilder` is deprecated and
will not be supported anymore in 4.0.
2016-11-28 07:50:06 +00:00
2017-02-17 18:49:55 +00:00
* Extending the containers generated by `PhpDumper` is deprecated and won't be
supported in 4.0.
2016-11-28 07:50:06 +00:00
* The `DefinitionDecorator` class is deprecated and will be removed in 4.0, use
the `ChildDefinition` class instead.
2017-02-18 17:21:29 +00:00
* The ``strict`` attribute in service arguments has been deprecated and will be removed in 4.0.
The attribute is ignored since 3.0, so you can simply remove it.
2016-12-15 15:32:21 +00:00
EventDispatcher
---------------
* The `ContainerAwareEventDispatcher` class has been deprecated.
Use `EventDispatcher` with closure-proxy injection instead.
2016-12-12 20:19:41 +00:00
Finder
------
* The `ExceptionInterface` has been deprecated and will be removed in 4.0.
2017-01-13 10:13:02 +00:00
2016-07-27 09:24:18 +01:00
FrameworkBundle
---------------
2016-12-12 20:19:41 +00:00
2016-07-27 09:24:18 +01:00
* The `Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddConsoleCommandPass` has been deprecated. Use `Symfony\Component\Console\DependencyInjection\AddConsoleCommandPass` instead.
2017-01-13 10:13:02 +00:00
2017-01-14 18:54:56 +00:00
* The `Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\SerializerPass` class has been
2017-02-17 18:49:55 +00:00
deprecated and will be removed in 4.0.
2017-01-14 18:54:56 +00:00
Use the `Symfony\Component\Serializer\DependencyInjection\SerializerPass` class instead.
2017-01-13 19:57:15 +00:00
* The `Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\FormPass` class has been
deprecated and will be removed in 4.0. Use the `Symfony\Component\Form\DependencyInjection\FormPass`
class instead.
2016-12-13 19:34:41 +00:00
HttpKernel
-----------
* The `Psr6CacheClearer::addPool()` method has been deprecated. Pass an array of pools indexed
by name to the constructor instead.
2017-01-31 09:03:29 +00:00
Process
-------
2017-01-12 17:50:31 +00:00
* The `ProcessUtils::escapeArgument()` method has been deprecated, use a command line array or give env vars to the `Process::start/run()` method instead.
2017-01-31 09:03:29 +00:00
* Not inheriting environment variables is deprecated.
* Configuring `proc_open()` options is deprecated.
* Configuring Windows and sigchild compatibility is deprecated - they will be always enabled in 4.0.
2017-02-17 18:49:55 +00:00
* Extending `Process::run()` , `Process::mustRun()` and `Process::restart()` is
deprecated and won't be supported in 4.0.
2016-11-28 07:59:03 +00:00
Security
--------
* The `RoleInterface` has been deprecated. Extend the `Symfony\Component\Security\Core\Role\Role`
class in your custom role implementations instead.
2016-11-05 13:25:13 +00:00
SecurityBundle
--------------
* The `FirewallContext::getContext()` method has been deprecated and will be removed in 4.0.
Use the `getListeners()` method instead.
2016-12-22 10:31:59 +00:00
2017-01-29 11:38:33 +00:00
* The `FirewallMap::$map` and `$container` properties have been deprecated and will be removed in 4.0.
2016-11-28 21:24:53 +00:00
* The `UserPasswordEncoderCommand` command expects to be registered as a service and its
constructor arguments fully provided.
Registering by convention the command or commands extending it is deprecated and will
not be allowed anymore in 4.0.
2017-02-17 18:49:55 +00:00
* `UserPasswordEncoderCommand::getContainer()` is deprecated, and this class won't
2016-11-28 21:24:53 +00:00
extend `ContainerAwareCommand` nor implement `ContainerAwareInterface` anymore in 4.0.
2017-02-22 15:22:03 +00:00
* [BC BREAK] Keys of the `users` node for `in_memory` user provider are no longer normalized.
2017-02-17 18:49:55 +00:00
Serializer
----------
* Extending `ChainDecoder` , `ChainEncoder` , `ArrayDenormalizer` is deprecated
and won't be supported in 4.0.
2016-12-22 10:31:59 +00:00
TwigBridge
----------
* The `TwigRendererEngine::setEnvironment()` method has been deprecated and will be removed
in 4.0. Pass the Twig Environment as second argument of the constructor instead.
2017-01-18 14:08:35 +00:00
Workflow
--------
* Deprecated class name support in `WorkflowRegistry::add()` as second parameter.
Wrap the class name in an instance of ClassInstanceSupportStrategy instead.
2017-01-10 17:32:05 +00:00
Yaml
----
2017-02-17 06:51:07 +00:00
* Omitting the key of a mapping is deprecated and will throw a `ParseException` in Symfony 4.0.
2017-01-10 17:32:05 +00:00
* The constructor arguments `$offset` , `$totalNumberOfLines` and
`$skippedLineNumbers` of the `Parser` class are deprecated and will be
removed in 4.0