8000 Leverage deprecated() from symfony/deprecation-contracts · symfony/symfony@df06247 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit df06247

Browse files
Leverage deprecated() from symfony/deprecation-contracts
1 parent ec8163d commit df06247

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+59
-52
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"psr/event-dispatcher": "^1.0",
2727
"psr/link": "^1.0",
2828
"psr/log": "~1.0",
29-
"symfony/contracts": "^2",
29+
"symfony/contracts": "^2.1",
3030
"symfony/polyfill-ctype": "~1.8",
3131
"symfony/polyfill-intl-grapheme": "~1.0",
3232
"symfony/polyfill-intl-icu": "~1.0",

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public function load(array $configs, ContainerBuilder $container)
213213
}
214214

215215
if (!\extension_loaded('intl') && !\defined('PHPUNIT_COMPOSER_INSTALL')) {
216-
@trigger_error('Please install the "intl" PHP extension for best performance.', E_USER_DEPRECATED);
216+
deprecated('', '', 'Please install the "intl" PHP extension for best performance.');
217217
}
218218
}
219219

@@ -858,7 +858,7 @@ private function registerRouterConfiguration(array $config, ContainerBuilder $co
858858
$loader->load('routing.xml');
859859

860860
if (null === $config['utf8']) {
861-
@trigger_error('Not setting the "framework.router.utf8" configuration option is deprecated since Symfony 5.1, it will default to "true" in Symfony 6.0.', E_USER_DEPRECATED);
861+
deprecated('symfony/framework-bundle', 5.1, 'Not setting the "framework.router.utf8" configuration option is deprecated, it will default to "true" in version 6.0.');
862862
}
863863

864864
if ($config['utf8']) {

src/Symfony/Bundle/FrameworkBundle/Kernel/MicroKernelTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public function loadRoutes(LoaderInterface $loader)
175175
}
176176
}
177177

178-
@trigger_error(sprintf('Using type "%s" for argument 1 of method "%s:configureRoutes()" is deprecated since Symfony 5.1, use "%s" instead.', RouteCollectionBuilder::class, self::class, RoutingConfigurator::class), E_USER_DEPRECATED);
178+
deprecated('symfony/framework-bundle', 5.1, 'Using type "%s" for argument 1 of method "%s:configureRoutes()" is deprecated, use "%s" instead.', RouteCollectionBuilder::class, self::class, RoutingConfigurator::class);
179179

180180
$routes = new RouteCollectionBuilder($loader);
181181
$this->configureRoutes($routes);

src/Symfony/Component/Config/Definition/ArrayNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ protected function finalizeValue($value)
227227
}
228228

229229
if ($child->isDeprecated()) {
230-
@trigger_error($child->getDeprecationMessage($name, $this->getPath()), E_USER_DEPRECATED);
230+
deprecated('', '', $child->getDeprecationMessage($name, $this->getPath()));
231231
}
232232

233233
try {

src/Symfony/Component/Config/composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
],
1818
"require": {
1919
"php": "^7.2.5",
20+
"symfony/deprecation-contracts": "^2.1",
2021
"symfony/filesystem": "^4.4|^5.0",
2122
"symfony/polyfill-ctype": "~1.8"
2223
},

src/Symfony/Component/DependencyInjection/Compiler/ResolveReferencesToAliasesPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ private function getDefinitionId(string $id, ContainerBuilder $container): strin
6262
$alias = $container->getAlias($id);
6363

6464
if ($alias->isDeprecated()) {
65-
@trigger_error(sprintf('%s. It is being referenced by the "%s" %s.', rtrim($alias->getDeprecationMessage($id), '. '), $this->currentId, $container->hasDefinition($this->currentId) ? 'service' : 'alias'), E_USER_DEPRECATED);
65+
deprecated('', '', '%s. It is being referenced by the "%s" %s.', rtrim($alias->getDeprecationMessage($id), '. '), $this->currentId, $container->hasDefinition($this->currentId) ? 'service' : 'alias');
6666
}
6767

6868
$seen = [];

src/Symfony/Component/DependencyInjection/ContainerBuilder.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ private function doGet(string $id, int $invalidBehavior = ContainerInterface::EX
567567
$alias = $this->aliasDefinitions[$id];
568568

569569
if ($alias->isDeprecated()) {
570-
@trigger_error($alias->getDeprecationMessage($id), E_USER_DEPRECATED);
570+
deprecated('', '', $alias->getDeprecationMessage($id));
571571
}
572572

573573
return $this->doGet((string) $alias, $invalidBehavior, $inlineServices, $isConstructorArgument);
@@ -1036,7 +1036,7 @@ private function createService(Definition $definition, array &$inlineServices, b
10361036
}
10371037

10381038
if ($definition->isDeprecated()) {
1039-
@trigger_error($definition->getDeprecationMessage($id), E_USER_DEPRECATED);
1039+
deprecated('', '', $definition->getDeprecationMessage($id));
10401040
}
10411041

10421042
if ($tryProxy && $definition->isLazy() && !$tryProxy = !($proxy = $this->proxyInstantiator) || $proxy instanceof RealServiceInstantiator) {
@@ -1079,7 +1079,7 @@ private function createService(Definition $definition, array &$inlineServices, b
10791079
$r = new \ReflectionClass($factory[0]);
10801080

10811081
if (0 < strpos($r->getDocComment(), "\n * @deprecated ")) {
1082-
@trigger_error(sprintf('The "%s" service relies on the deprecated "%s" factory class. It should either be deprecated or its factory upgraded.', $id, $r->name), E_USER_DEPRECATED);
1082+
deprecated('', '', 'The "%s" service relies on the deprecated "%s" factory class. It should either be deprecated or its factory upgraded.', $id, $r->name);
10831083
}
10841084
}
10851085
} else {
@@ -1088,7 +1088,7 @@ private function createService(Definition $definition, array &$inlineServices, b
10881088
$service = null === $r->getConstructor() ? $r->newInstance() : $r->newInstanceArgs($arguments);
10891089

10901090
if (!$definition->isDeprecated() && 0 < strpos($r->getDocComment(), "\n * @deprecated ")) {
1091-
@trigger_error(sprintf('The "%s" service relies on the deprecated "%s" class. It should either be deprecated or its implementation upgraded.', $id, $r->name), E_USER_DEPRECATED);
1091+
deprecated('', '', 'The "%s" service relies on the deprecated "%s" class. It should either be deprecated or its implementation upgraded.', $id, $r->name);
10921092
}
10931093
}
10941094

src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ protected function {$methodName}($lazyInitialization)
802802
$this->inlinedDefinitions = $this->getDefinitionsFromArguments([$definition], null, $this->serviceCalls);
803803

804804
if ($definition->isDeprecated()) {
805-
$code .= sprintf(" @trigger_error(%s, E_USER_DEPRECATED);\n\n", $this->export($definition->getDeprecationMessage($id)));
805+
$code .= sprintf(" deprecated('', '', %s);\n\n", $this->export($definition->getDeprecationMessage($id)));
806806
}
807807

808808
if ($this->getProxyDumper()->isProxyCandidate($definition)) {
@@ -1311,7 +1311,7 @@ private function addDeprecatedAliases(): string
13111311
*/
13121312
protected function {$methodNameAlias}()
13131313
{
1314-
@trigger_error($messageExported, E_USER_DEPRECATED);
1314+
deprecated('', '', $messageExported);
13151315
13161316
return \$this->get($idExported);
13171317
}

src/Symfony/Component/DependencyInjection/Tests/Fixtures/DeprecatedClass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace Symfony\Component\DependencyInjection\Tests\Fixtures;
1313

14-
@trigger_error('deprecated', E_USER_DEPRECATED);
14+
deprecated('', '', 'deprecated');
1515

1616
class DeprecatedClass
1717
{

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/container_alias_deprecation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ protected function getFooService()
6666
*/
6767
protected function getAliasForFooDeprecatedService()
6868
{
69-
@trigger_error('The "alias_for_foo_deprecated" service alias is deprecated. You should stop using it, as it will be removed in the future.', E_USER_DEPRECATED);
69+
deprecated('', '', 'The "alias_for_foo_deprecated" service alias is deprecated. You should stop using it, as it will be removed in the future.');
7070

7171
return $this->get('foo');
7272
}

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9_as_files.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ use Symfony\Component\DependencyInjection\Exception\RuntimeException;
124124
// This file has been auto-generated by the Symfony Dependency Injection Component for internal use.
125125
// Returns the public 'deprecated_service' shared service.
126126

127-
@trigger_error('The "deprecated_service" service is deprecated. You should stop using it, as it will be removed in the future.', E_USER_DEPRECATED);
127+
deprecated('', '', 'The "deprecated_service" service is deprecated. You should stop using it, as it will be removed in the future.');
128128

129129
return $this->services['deprecated_service'] = new \stdClass();
130130

@@ -156,7 +156,7 @@ use Symfony\Component\DependencyInjection\Exception\RuntimeException;
156156
// This file has been auto-generated by the Symfony Dependency Injection Component for internal use.
157157
// Returns the private 'factory_simple' shared service.
158158

159-
@trigger_error('The "factory_simple" service is deprecated. You should stop using it, as it will be removed in the future.', E_USER_DEPRECATED);
159+
deprecated('', '', 'The "factory_simple" service is deprecated. You should stop using it, as it will be removed in the future.');
160160

161161
return new \SimpleFactoryClass('foo');
162162

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9_compiled.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ protected function getDecoratorServiceWithNameService()
210210
*/
211211
protected function getDeprecatedServiceService()
212212
{
213-
@trigger_error('The "deprecated_service" service is deprecated. You should stop using it, as it will be removed in the future.', E_USER_DEPRECATED);
213+
deprecated('', '', 'The "deprecated_service" service is deprecated. You should stop using it, as it will be removed in the future.');
214214

215215
return $this->services['deprecated_service'] = new \stdClass();
216216
}
@@ -404,7 +404,7 @@ protected function getTaggedIteratorService()
404404
*/
405405
protected function getFactorySimpleService()
406406
{
407-
@trigger_error('The "factory_simple" service is deprecated. You should stop using it, as it will be removed in the future.', E_USER_DEPRECATED);
407+
deprecated('', '', 'The "factory_simple" service is deprecated. You should stop using it, as it will be removed in the future.');
408408

409409
return new \SimpleFactoryClass('foo');
410410
}

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9_inlined_factories.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ class ProjectServiceContainer extends Container
231231
*/
232232
protected function getDeprecatedServiceService()
233233
{
234-
@trigger_error('The "deprecated_service" service is deprecated. You should stop using it, as it will be removed in the future.', E_USER_DEPRECATED);
234+
deprecated('', '', 'The "deprecated_service" service is deprecated. You should stop using it, as it will be removed in the future.');
235235

236236
return $this->services['deprecated_service'] = new \stdClass();
237237
}
@@ -453,7 +453,7 @@ class ProjectServiceContainer extends Container
453453
*/
454454
protected function getFactorySimpleService()
455455
{
456-
@trigger_error('The "factory_simple" service is deprecated. You should stop using it, as it will be removed in the future.', E_USER_DEPRECATED);
456+
deprecated('', '', 'The "factory_simple" service is deprecated. You should stop using it, as it will be removed in the future.');
457457

458458
return new \SimpleFactoryClass('foo');
459459
}

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_errored_definition.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ protected function getDecoratorServiceWithNameService()
210210
*/
211211
protected function getDeprecatedServiceService()
212212
{
213-
@trigger_error('The "deprecated_service" service is deprecated. You should stop using it, as it will be removed in the future.', E_USER_DEPRECATED);
213+
deprecated('', '', 'The "deprecated_service" service is deprecated. You should stop using it, as it will be removed in the future.');
214214

215215
return $this->services['deprecated_service'] = new \stdClass();
216216
}
@@ -404,7 +404,7 @@ protected function getTaggedIteratorService()
404404
*/
405405
protected function getFactorySimpleService()
406406
{
407-
@trigger_error('The "factory_simple" service is deprecated. You should stop using it, as it will be removed in the future.', E_USER_DEPRECATED);
407+
deprecated('', '', 'The "factory_simple" service is deprecated. You should stop using it, as it will be removed in the future.');
408408

409409
return new \SimpleFactoryClass('foo');
410410
}

src/Symfony/Component/DependencyInjection/composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"require": {
1919
"php": "^7.2.5",
2020
"psr/container": "^1.0",
21+
"symfony/deprecation-contracts": "^2.1",
2122
"symfony/service-contracts": "^1.1.6|^2"
2223
},
2324
"require-dev": {

src/Symfony/Component/EventDispatcher/LegacyEventDispatcherProxy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1515

16-
@trigger_error(sprintf('%s is deprecated since Symfony 5.1, use the event dispatcher without the proxy.', LegacyEventDispatcherProxy::class), E_USER_DEPRECATED);
16+
deprecated('symfony/event-dispatcher', 5.1, '%s is deprecated, use the event dispatcher without the proxy.', LegacyEventDispatcherProxy::class);
1717

1818
/**
1919
* A helper class to provide BC/FC with the legacy signature of EventDispatcherInterface::dispatch().

src/Symfony/Component/EventDispatcher/composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
],
1818
"require": {
1919
"php": "^7.2.5",
20+
"symfony/deprecation-contracts": "^2.1",
2021
"symfony/event-dispatcher-contracts": "^2"
2122
},
2223
"require-dev": {

src/Symfony/Component/HttpFoundation/JsonResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function __construct($data = null, int $status = 200, array $headers = []
6868
*/
6969
public static function create($data = null, int $status = 200, array $headers = [])
7070
{
71-
@trigger_error(sprintf('The "%s()" method is deprecated since Symfony 5.1; use __construct() instead.', __METHOD__), E_USER_DEPRECATED);
71+
deprecated('symfony/http-foundation', 5.1, 'The "%s()" method is deprecated, use "new %s()" instead.', __METHOD__, \get_called_class());
7272

7373
return new static($data, $status, $headers);
7474
}

src/Symfony/Component/HttpFoundation/RedirectResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function __construct(string $url, int $status = 302, array $headers = [])
5858
*/
5959
public static function create($url = '', int $status = 302, array $headers = [])
6060
{
61-
@trigger_error(sprintf('The "%s()" method is deprecated since Symfony 5.1; use __construct() instead.', __METHOD__), E_USER_DEPRECATED);
61+
deprecated('symfony/http-foundation', 5.1, 'The "%s()" method is deprecated, use "new %s()" instead.', __METHOD__, \get_called_class());
6262

6363
return new static($url, $status, $headers);
6464
}

src/Symfony/Component/HttpFoundation/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public function __construct(?string $content = '', int $status = 200, array $hea
213213
*/
214214
public static function create(?string $content = '', int $status = 200, array $headers = [])
215215
{
216-
@trigger_error(sprintf('The "%s()" method is deprecated since Symfony 5.1; use __construct() instead.', __METHOD__), E_USER_DEPRECATED);
216+
deprecated('symfony/http-foundation', 5.1, 'The "%s()" method is deprecated, use "new %s()" instead.', __METHOD__, \get_called_class());
217217

218218
return new static($content, $status, $headers);
219219
}

src/Symfony/Component/HttpFoundation/StreamedResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function __construct(callable $callback = null, int $status = 200, array
5252
*/
5353
public static function create($callback = null, int $status = 200, array $headers = [])
5454
{
55-
@trigger_error(sprintf('The "%s()" method is deprecated since Symfony 5.1; use __construct() instead.', __METHOD__), E_USER_DEPRECATED);
55+
deprecated('symfony/http-foundation', 5.1, 'The "%s()" method is deprecated, use "new %s()" instead.', __METHOD__, \get_called_class());
5656

5757
return new static($callback, $status, $headers);
5858
}

src/Symfony/Component/HttpFoundation/composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
],
1818
"require": {
1919
"php": "^7.2.5",
20+
"symfony/deprecation-contracts": "^2.1",
2021
"symfony/mime": "^4.4|^5.0",
2122
"symfony/polyfill-mbstring": "~1.1"
2223
},

src/Symfony/Component/Messenger/Transport/AmqpExt/AmqpFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use Symfony\Component\Messenger\Bridge\Amqp\Transport\AmqpFactory as BridgeAmqpFactory;
1515

16-
@trigger_error(sprintf('The "%s" class is deprecated since Symfony 5.1, use "%s" instead. The AmqpExt transport has been moved to package "symfony/amqp-messenger" and will not be included by default in 6.0. Run "composer require symfony/amqp-messenger".', AmqpFactory::class, BridgeAmqpFactory::class), E_USER_DEPRECATED);
16+
deprecated('symfony/messenger', 5.1, 'The "%s" class is deprecated, use "%s" instead. The AmqpExt transport has been moved to package "symfony/amqp-messenger" and will not be included by default in 6.0. Run "composer require symfony/amqp-messenger".', AmqpFactory::class, BridgeAmqpFactory::class);
1717

1818
class_exists(BridgeAmqpFactory::class);
1919

src/Symfony/Component/Messenger/Transport/AmqpExt/AmqpReceivedStamp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use Symfony\Component\Messenger\Bridge\Amqp\Transport\AmqpReceivedStamp as BridgeAmqpReceivedStamp;
1515

16-
@trigger_error(sprintf('The "%s" class is deprecated since Symfony 5.1, use "%s" instead. The AmqpExt transport has been moved to package "symfony/amqp-messenger" and will not be included by default in 6.0. Run "composer require symfony/amqp-messenger".', AmqpReceivedStamp::class, BridgeAmqpReceivedStamp::class), E_USER_DEPRECATED);
16+
deprecated('symfony/messenger', 5.1, 'The "%s" class is deprecated,use "%s" instead. The AmqpExt transport has been moved to package "symfony/amqp-messenger" and will not be included by default in 6.0. Run "composer require symfony/amqp-messenger".', AmqpReceivedStamp::class, BridgeAmqpReceivedStamp::class);
1717

1818
class_exists(BridgeAmqpReceivedStamp::class);
1919

src/Symfony/Component/Messenger/Transport/AmqpExt/AmqpReceiver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use Symfony\Component\Messenger\Bridge\Amqp\Transport\AmqpReceiver as BridgeAmqpReceiver;
1515

16-
@trigger_error(sprintf('The "%s" class is deprecated since Symfony 5.1, use "%s" instead. The AmqpExt transport has been moved to package "symfony/amqp-messenger" and will not be included by default in 6.0. Run "composer require symfony/amqp-messenger".', AmqpReceiver::class, BridgeAmqpReceiver::class), E_USER_DEPRECATED);
16+
deprecated('symfony/messenger', 5.1, 'The "%s" class is deprecated, use "%s" instead. The AmqpExt transport has been moved to package "symfony/amqp-messenger" and will not be included by default in 6.0. Run "composer require symfony/amqp-messenger".', AmqpReceiver::class, BridgeAmqpReceiver::class);
1717

1818
class_exists(BridgeAmqpReceiver::class);
1919

src/Symfony/Component/Messenger/Transport/AmqpExt/AmqpSender.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use Symfony\Component\Messenger\Bridge\Amqp\Transport\AmqpSender as BridgeAmqpSender;
1515

16-
@trigger_error(sprintf('The "%s" class is deprecated since Symfony 5.1, use "%s" instead. The AmqpExt transport has been moved to package "symfony/amqp-messenger" and will not be included by default in 6.0. Run "composer require symfony/amqp-messenger".', AmqpSender::class, BridgeAmqpSender::class), E_USER_DEPRECATED);
16+
deprecated('symfony/messenger', 5.1, 'The "%s" class is deprecated, use "%s" instead. The AmqpExt transport has been moved to package "symfony/amqp-messenger" and will not be included by default in 6.0. Run "composer require symfony/amqp-messenger".', AmqpSender::class, BridgeAmqpSender::class);
1717

1818
class_exists(BridgeAmqpSender::class);
1919

src/Symfony/Component/Messenger/Transport/AmqpExt/AmqpStamp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use Symfony\Component\Messenger\Bridge\Amqp\Transport\AmqpStamp as BridgeAmqpStamp;
1515

16-
@trigger_error(sprintf('The "%s" class is deprecated since Symfony 5.1, use "%s" instead. The AmqpExt transport has been moved to package "symfony/amqp-messenger" and will not be included by default in 6.0. Run "composer require symfony/amqp-messenger".', AmqpStamp::class, BridgeAmqpStamp::class), E_USER_DEPRECATED);
16+
deprecated('symfony/messenger', 5.1, 'The "%s" class is deprecated, use "%s" instead. The AmqpExt transport has been moved to package "symfony/amqp-messenger" and will not be included by default in 6.0. Run "composer require symfony/amqp-messenger".', AmqpStamp::class, BridgeAmqpStamp::class);
1717

1818
class_exists(BridgeAmqpStamp::class);
1919

src/Symfony/Component/Messenger/Transport/AmqpExt/AmqpTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use Symfony\Component\Messenger\Bridge\Amqp\Transport\AmqpTransport as BridgeAmqpTransport;
1515

16-
@trigger_error(sprintf('The "%s" class is deprecated since Symfony 5.1, use "%s" instead. The AmqpExt transport has been moved to package "symfony/amqp-messenger" and will not be included by default in 6.0. Run "composer require symfony/amqp-messenger".', AmqpTransport::class, BridgeAmqpTransport::class), E_USER_DEPRECATED);
16+
deprecated('symfony/messenger', 5.1, 'The "%s" class is deprecated, use "%s" instead. The AmqpExt transport has been moved to package "symfony/amqp-messenger" and will not be included by default in 6.0. Run "composer require symfony/amqp-messenger".', AmqpTransport::class, BridgeAmqpTransport::class);
1717

1818
class_exists(BridgeAmqpTransport::class);
1919

src/Symfony/Component/Messenger/Transport/AmqpExt/AmqpTransportFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use Symfony\Component\Messenger\Bridge\Amqp\Transport\AmqpTransportFactory as BridgeAmqpTransportFactory;
1515

16-
@trigger_error(sprintf('The "%s" class is deprecated since Symfony 5.1, use "%s" instead. The AmqpExt transport has been moved to package "symfony/amqp-messenger" and will not be included by default in 6.0. Run "composer require symfony/amqp-messenger".', AmqpTransportFactory::class, BridgeAmqpTransportFactory::class), E_USER_DEPRECATED);
16+
deprecated('symfony/messenger', 5.1, 'The "%s" class is deprecated, use "%s" instead. The AmqpExt transport has been moved to package "symfony/amqp-messenger" and will not be included by default in 6.0. Run "composer require symfony/amqp-messenger".', AmqpTransportFactory::class, BridgeAmqpTransportFactory::class);
1717

1818
class_exists(BridgeAmqpTransportFactory::class);
1919

0 commit comments

Comments
 (0)
0