You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR was merged into the 7.0 branch.
Discussion
----------
[7.0] Remove remaining deprecated code paths
| Q | A
| ------------- | ---
| Branch? | 7.0
| Bug fix? | no
| New feature? | yes
| Deprecations? | no
| Tickets | -
| License | MIT
| Doc PR | -
Form
----
* Throw when using `DateTime` or `DateTimeImmutable` model data with a different timezone than configured with the
`model_timezone` option in `DateType`, `DateTimeType`, and `TimeType`
* Make the "widget" option of date/time form types default to "single_text"
FrameworkBundle
---------------
* Make the `http_method_override` config option default to `false`
* Remove `AbstractController::renderForm()`, use `render()` instead
* Remove the `Symfony\Component\Serializer\Normalizer\ObjectNormalizer` and
`Symfony\Component\Serializer\Normalizer\PropertyNormalizer` autowiring aliases, type-hint against
`Symfony\Component\Serializer\Normalizer\NormalizerInterface` or implement `NormalizerAwareInterface` instead
* Remove the `Http\Client\HttpClient` service, use `Psr\Http\Client\ClientInterface` instead
Messenger
---------
* Remove `MessageHandlerInterface` and `MessageSubscriberInterface`, use `#[AsMessageHandler]` instead
* Remove `StopWorkerOnSigtermSignalListener` in favor of
`StopWorkerOnSignalsListener` and make it configurable with SIGINT and
* Remove `Symfony\Component\Messenger\Transport\InMemoryTransport` and
`Symfony\Component\Messenger\Transport\InMemoryTransportFactory` in favor of
`Symfony\Component\Messenger\Transport\InMemory\InMemoryTransport` and
`Symfony\Component\Messenger\Transport\InMemory\InMemoryTransportFactory`
Translation
-----------
* Remove `PhpStringTokenParser`
* Remove `PhpExtractor` in favor of `PhpAstExtractor`
TwigBundle
----------
* Remove option `twig.autoescape`, use `twig.autoescape_service[_method]` instead
* Remove the `Twig_Environment` autowiring alias, use `Twig\Environment` instead
Yaml
----
* Remove the `!php/const:` tag, use `!php/const` instead (without the colon)
Commits
-------
6baa3d2 [7.0] Remove remaining deprecated code paths
Copy file name to clipboardExpand all lines: UPGRADE-7.0.md
+76-4Lines changed: 76 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,11 @@ Cache
11
11
12
12
* Add parameter `$isSameDatabase` to `DoctrineDbalAdapter::configureSchema()`
13
13
14
+
Config
15
+
------
16
+
17
+
* Require explicit argument when calling `NodeBuilder::setParent()`
18
+
14
19
Console
15
20
-------
16
21
@@ -41,7 +46,7 @@ Console
41
46
}
42
47
```
43
48
44
-
*Passing null to `*Command::setApplication()`, `*FormatterStyle::setForeground/setBackground()`, `Helper::setHelpSet()`, `Input*::setDefault()` and `Question::setAutocompleterCallback/setValidator()` must be done explicitly
49
+
*Require explicit argument when calling `*Command::setApplication()`, `*FormatterStyle::setForeground/setBackground()`, `Helper::setHelpSet()`, `Input*::setDefault()` and `Question::setAutocompleterCallback/setValidator()`
45
50
* Remove `StringInput::REGEX_STRING`
46
51
* Add method `__toString()` to `InputInterface`
47
52
@@ -52,7 +57,7 @@ DependencyInjection
52
57
* Remove `ProxyHelper`, use `Symfony\Component\VarExporter\ProxyHelper` instead
53
58
* Remove `ReferenceSetArgumentTrait`
54
59
* Remove support of `@required` annotation, use the `Symfony\Contracts\Service\Attribute\Required` attribute instead
55
-
*Passing `null` to `ContainerAwareTrait::setContainer()` must be done explicitly
60
+
*Require explicit argument when calling `ContainerAwareTrait::setContainer()`
56
61
* Remove `PhpDumper` options `inline_factories_parameter` and `inline_class_loader_parameter`, use options `inline_factories` and `inline_class_loader` instead
57
62
* Parameter names of `ParameterBag` cannot be numerics
58
63
* Remove `ContainerAwareInterface` and `ContainerAwareTrait`, use dependency injection instead
@@ -82,10 +87,34 @@ Filesystem
82
87
83
88
* Add argument `$lock` to `Filesystem::appendToFile()`
84
89
90
+
Form
91
+
----
92
+
93
+
* Throw when using `DateTime` or `DateTimeImmutable` model data with a different timezone than configured with the
94
+
`model_timezone` option in `DateType`, `DateTimeType`, and `TimeType`
95
+
* Make the "widget" option of date/time form types default to "single_text"
96
+
* Require explicit argument when calling `Button/Form::setParent()`, `ButtonBuilder/FormConfigBuilder::setDataMapper()`, `TransformationFailedException::setInvalidMessage()`
97
+
85
98
FrameworkBundle
86
99
---------------
87
100
88
101
* Remove command `translation:update`, use `translation:extract` instead
102
+
* Make the `http_method_override` config option default to `false`
103
+
* Remove the `Symfony\Component\Serializer\Normalizer\ObjectNormalizer` and
104
+
`Symfony\Component\Serializer\Normalizer\PropertyNormalizer` autowiring aliases, type-hint against
105
+
`Symfony\Component\Serializer\Normalizer\NormalizerInterface` or implement `NormalizerAwareInterface` instead
106
+
* Remove the `Http\Client\HttpClient` service, use `Psr\Http\Client\ClientInterface` instead
107
+
* Remove `AbstractController::renderForm()`, use `render()` instead
108
+
109
+
*Before*
110
+
```php
111
+
$this->renderForm(..., ['form' => $form]);
112
+
```
113
+
114
+
*After*
115
+
```php
116
+
$this->render(..., ['form' => $form]);
117
+
```
89
118
90
119
HttpFoundation
91
120
--------------
@@ -99,6 +128,7 @@ HttpFoundation
99
128
* Replace `ExpressionRequestMatcher` with `RequestMatcher\ExpressionRequestMatcher`
100
129
* Remove `Request::getContentType()`, use `Request::getContentTypeFormat()` instead
101
130
* Throw an `InvalidArgumentException` when calling `Request::create()` with a malformed URI
131
+
* Require explicit argument when calling `JsonResponse::setCallback()`, `Response::setExpires/setLastModified/setEtag()`, `MockArraySessionStorage/NativeSessionStorage::setMetadataBag()`, `NativeSessionStorage::setSaveHandler()`
102
132
103
133
HttpClient
104
134
----------
@@ -114,28 +144,42 @@ HttpKernel
114
144
* Remove `AbstractSurrogate::$phpEscapeMap`
115
145
* Remove `HttpKernelInterface::MASTER_REQUEST`
116
146
* Remove `terminate_on_cache_hit` option from `HttpCache`
147
+
* Require explicit argument when calling `ConfigDataCollector::setKernel()`, `RouterListener::setCurrentRequest()`
117
148
118
149
Lock
119
150
----
120
151
121
152
* Add parameter `$isSameDatabase` to `DoctrineDbalStore::configureSchema()`
122
153
* Remove the `gcProbablity` (notice the typo) option, use `gcProbability` instead
123
154
155
+
Mailer
156
+
------
157
+
158
+
* Remove the OhMySmtp bridge in favor of the MailPace bridge
159
+
124
160
Messenger
125
161
---------
126
162
127
163
* Add parameter `$isSameDatabase` to `DoctrineTransport::configureSchema()`
164
+
* Remove `MessageHandlerInterface` and `MessageSubscriberInterface`, use `#[AsMessageHandler]` instead
165
+
* Remove `StopWorkerOnSigtermSignalListener` in favor of
166
+
`StopWorkerOnSignalsListener` and make it configurable with SIGINT and
167
+
* Remove `Symfony\Component\Messenger\Transport\InMemoryTransport` and
168
+
`Symfony\Component\Messenger\Transport\InMemoryTransportFactory` in favor of
169
+
`Symfony\Component\Messenger\Transport\InMemory\InMemoryTransport` and
if ($listenerTag === $tagName && !isset($tag['event'])) {
81
+
if (!isset($tag['event'])) {
87
82
thrownewInvalidArgumentException(sprintf('Doctrine event listener "%s" must specify the "event" attribute.', $id));
88
83
}
89
84
foreach ($connectionsas$con) {
@@ -105,19 +100,10 @@ private function addTaggedServices(ContainerBuilder $container): array
105
100
if (ContainerAwareEventManager::class === $managerClass) {
106
101
$refs = $managerDef->getArguments()[1] ?? [];
107
102
$listenerRefs[$con][$id] = newReference($id);
108
-
if ($subscriberTag === $tagName) {
109
-
trigger_deprecation('symfony/doctrine-bridge', '6.3', 'Registering "%s" as a Doctrine subscriber is deprecated. Register it as a listener instead, using e.g. the #[AsDoctrineListener] attribute.', $id);
0 commit comments