Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e96e55e

Browse filesBrowse files
committed
Adding class aliases
1 parent cd335b1 commit e96e55e
Copy full SHA for e96e55e

27 files changed

+597
-14
lines changed

‎src/Symfony/Component/Messenger/Bridge/AmqpExt/Tests/Transport/AmqpExtIntegrationTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Messenger/Bridge/AmqpExt/Tests/Transport/AmqpExtIntegrationTest.php
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
namespace Symfony\Component\Messenger\Bridge\AmqpExt\Tests\Transport;
1313

1414
use PHPUnit\Framework\TestCase;
15-
use Symfony\Component\Messenger\Envelope;
16-
use Symfony\Component\Messenger\Stamp\DelayStamp;
17-
use Symfony\Component\Messenger\Stamp\RedeliveryStamp;
18-
use Symfony\Component\Messenger\Tests\Fixtures\DummyMessage;
1915
use Symfony\Component\Messenger\Bridge\AmqpExt\Transport\AmqpReceivedStamp;
2016
use Symfony\Component\Messenger\Bridge\AmqpExt\Transport\AmqpReceiver;
2117
use Symfony\Component\Messenger\Bridge\AmqpExt\Transport\AmqpSender;
2218
use Symfony\Component\Messenger\Bridge\AmqpExt\Transport\AmqpStamp;
2319
use Symfony\Component\Messenger\Bridge\AmqpExt\Transport\Connection;
20+
use Symfony\Component\Messenger\Envelope;
21+
use Symfony\Component\Messenger\Stamp\DelayStamp;
22+
use Symfony\Component\Messenger\Stamp\RedeliveryStamp;
23+
use Symfony\Component\Messenger\Tests\Fixtures\DummyMessage;
2424
use Symfony\Component\Messenger\Transport\Receiver\ReceiverInterface;
2525
use Symfony\Component\Messenger\Transport\Serialization\Serializer;
2626
use Symfony\Component\Messenger\Transport\Serialization\SerializerInterface;

‎src/Symfony/Component/Messenger/Bridge/AmqpExt/Tests/Transport/AmqpReceiverTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Messenger/Bridge/AmqpExt/Tests/Transport/AmqpReceiverTest.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
namespace Symfony\Component\Messenger\Bridge\AmqpExt\Tests\Transport;
1313

1414
use PHPUnit\Framework\TestCase;
15-
use Symfony\Component\Messenger\Envelope;
16-
use Symfony\Component\Messenger\Tests\Fixtures\DummyMessage;
1715
use Symfony\Component\Messenger\Bridge\AmqpExt\Transport\AmqpReceivedStamp;
1816
use Symfony\Component\Messenger\Bridge\AmqpExt\Transport\AmqpReceiver;
1917
use Symfony\Component\Messenger\Bridge\AmqpExt\Transport\Connection;
18+
use Symfony\Component\Messenger\Envelope;
19+
use Symfony\Component\Messenger\Tests\Fixtures\DummyMessage;
2020
use Symfony\Component\Messenger\Transport\Serialization\Serializer;
2121
use Symfony\Component\Messenger\Transport\Serialization\SerializerInterface;
2222
use Symfony\Component\Serializer as SerializerComponent;

‎src/Symfony/Component/Messenger/Bridge/AmqpExt/Tests/Transport/AmqpSenderTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Messenger/Bridge/AmqpExt/Tests/Transport/AmqpSenderTest.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
namespace Symfony\Component\Messenger\Bridge\AmqpExt\Tests\Transport;
1313

1414
use PHPUnit\Framework\TestCase;
15-
use Symfony\Component\Messenger\Envelope;
16-
use Symfony\Component\Messenger\Tests\Fixtures\DummyMessage;
1715
use Symfony\Component\Messenger\Bridge\AmqpExt\Transport\AmqpSender;
1816
use Symfony\Component\Messenger\Bridge\AmqpExt\Transport\AmqpStamp;
1917
use Symfony\Component\Messenger\Bridge\AmqpExt\Transport\Connection;
18+
use Symfony\Component\Messenger\Envelope;
19+
use Symfony\Component\Messenger\Tests\Fixtures\DummyMessage;
2020
use Symfony\Component\Messenger\Transport\Serialization\SerializerInterface;
2121

2222
/**

‎src/Symfony/Component/Messenger/Bridge/AmqpExt/Tests/Transport/AmqpTransportTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Messenger/Bridge/AmqpExt/Tests/Transport/AmqpTransportTest.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
namespace Symfony\Component\Messenger\Bridge\AmqpExt\Tests\Transport;
1313

1414
use PHPUnit\Framework\TestCase;
15-
use Symfony\Component\Messenger\Envelope;
16-
use Symfony\Component\Messenger\Tests\Fixtures\DummyMessage;
1715
use Symfony\Component\Messenger\Bridge\AmqpExt\Transport\AmqpTransport;
1816
use Symfony\Component\Messenger\Bridge\AmqpExt\Transport\Connection;
17+
use Symfony\Component\Messenger\Envelope;
18+
use Symfony\Component\Messenger\Tests\Fixtures\DummyMessage;
1919
use Symfony\Component\Messenger\Transport\Serialization\SerializerInterface;
2020
use Symfony\Component\Messenger\Transport\TransportInterface;
2121

‎src/Symfony/Component/Messenger/Bridge/AmqpExt/Tests/Transport/ConnectionTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Messenger/Bridge/AmqpExt/Tests/Transport/ConnectionTest.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
namespace Symfony\Component\Messenger\Bridge\AmqpExt\Tests\Transport;
1313

1414
use PHPUnit\Framework\TestCase;
15-
use Symfony\Component\Messenger\Exception\InvalidArgumentException;
16-
use Symfony\Component\Messenger\Tests\Fixtures\DummyMessage;
1715
use Symfony\Component\Messenger\Bridge\AmqpExt\Transport\AmqpFactory;
1816
use Symfony\Component\Messenger\Bridge\AmqpExt\Transport\AmqpStamp;
1917
use Symfony\Component\Messenger\Bridge\AmqpExt\Transport\Connection;
18+
use Symfony\Component\Messenger\Exception\InvalidArgumentException;
19+
use Symfony\Component\Messenger\Tests\Fixtures\DummyMessage;
2020

2121
/**
2222
* @requires extension amqp

‎src/Symfony/Component/Messenger/Bridge/Doctrine/Tests/Transport/ConnectionTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Messenger/Bridge/Doctrine/Tests/Transport/ConnectionTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
use Doctrine\DBAL\Schema\SchemaConfig;
2020
use Doctrine\DBAL\Schema\Synchronizer\SchemaSynchronizer;
2121
use PHPUnit\Framework\TestCase;
22-
use Symfony\Component\Messenger\Tests\Fixtures\DummyMessage;
2322
use Symfony\Component\Messenger\Bridge\Doctrine\Transport\Connection;
23+
use Symfony\Component\Messenger\Tests\Fixtures\DummyMessage;
2424

2525
class ConnectionTest extends TestCase
2626
{

‎src/Symfony/Component/Messenger/CHANGELOG.md

Copy file name to clipboardExpand all lines: src/Symfony/Component/Messenger/CHANGELOG.md
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ CHANGELOG
44
5.1.0
55
-----
66

7-
* RedisExt, AmqpExt and Doctrine transports were moved to separate packages.
7+
* Moved AmqpExt transport to package `symfony/messenger-amqp`. All classes in `Symfony\Component\Messenger\Transport\AmqpExt` have been moved to `Symfony\Component\Messenger\Bridge\AmqpExt\Transport`
8+
* Moved Doctrine transport to package `symfony/messenger-doctrine`. All classes in `Symfony\Component\Messenger\Transport\Doctrine` have been moved to `Symfony\Component\Messenger\Bridge\Doctrine\Transport`
9+
* Moved RedisExt transport to package `symfony/messenger-redis`. All classes in `Symfony\Component\Messenger\Transport\RedisExt` have been moved to `Symfony\Component\Messenger\Bridge\RedisExt\Transport`
810

911
5.0.0
1012
-----
+29Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Component\Messenger\Transport\AmqpExt;
13+
14+
use Symfony\Component\Messenger\Bridge\AmqpExt\Transport\AmqpFactory as BridgeAmqpFactory;
15+
16+
if (! class_exists(BridgeAmqpFactory::class, false)) {
17+
@trigger_error(sprintf('The "%s" class is @deprecated since Symfony 5.1, use "%s" instead. The AmqpExt transport has been moved to package "symfony/messenger-amqp" and will not be required by default in 6.0. Run "composer require symfony/messenger-amqp".', AmqpFactory::class, BridgeAmqpFactory::class), E_USER_DEPRECATED);
18+
}
19+
20+
class_alias(BridgeAmqpFactory::class, AmqpFactory::class);
21+
22+
if (false) {
23+
/**
24+
* @deprecated since Symfony 5.1, to be removed in 6.0. Use symfony/messenger-amqp instead.
25+
*/
26+
class AmqpFactory
27+
{
28+
}
29+
}
+29Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Component\Messenger\Transport\AmqpExt;
13+
14+
use Symfony\Component\Messenger\Bridge\AmqpExt\Transport\AmqpReceivedStamp as BridgeAmqpReceivedStamp;
15+
16+
if (! class_exists(BridgeAmqpReceivedStamp::class, false)) {
17+
@trigger_error(sprintf('The "%s" class is @deprecated since Symfony 5.1, use "%s" instead. The AmqpExt transport has been moved to package "symfony/messenger-amqp" and will not be required by default in 6.0. Run "composer require symfony/messenger-amqp".', AmqpReceivedStamp::class, BridgeAmqpReceivedStamp::class), E_USER_DEPRECATED);
18+
}
19+
20+
class_alias(BridgeAmqpReceivedStamp::class, AmqpReceivedStamp::class);
21+
22+
if (false) {
23+
/**
24+
* @deprecated since Symfony 5.1, to be removed in 6.0. Use symfony/messenger-amqp instead.
25+
*/
26+
class AmqpReceivedStamp
27+
{
28+
}
29+
}
+29Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Component\Messenger\Transport\AmqpExt;
13+
14+
use Symfony\Component\Messenger\Bridge\AmqpExt\Transport\AmqpReceiver as BridgeAmqpReceiver;
15+
16+
if (! class_exists(BridgeAmqpReceiver::class, false)) {
17+
@trigger_error(sprintf('The "%s" class is @deprecated since Symfony 5.1, use "%s" instead. The AmqpExt transport has been moved to package "symfony/messenger-amqp" and will not be required by default in 6.0. Run "composer require symfony/messenger-amqp".', AmqpReceiver::class, BridgeAmqpReceiver::class), E_USER_DEPRECATED);
18+
}
19+
20+
class_alias(BridgeAmqpReceiver::class, AmqpReceiver::class);
21+
22+
if (false) {
23+
/**
24+
* @deprecated since Symfony 5.1, to be removed in 6.0. Use symfony/messenger-amqp instead.
25+
*/
26+
class AmqpReceiver
27+
{
28+
}
29+
}
+30Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Component\Messenger\Transport\AmqpExt;
13+
14+
use Symfony\Component\Messenger\Bridge\AmqpExt\Transport\AmqpSender as BridgeAmqpSender;
15+
16+
if (! class_exists(BridgeAmqpSender::class, false)) {
17+
@trigger_error(sprintf('The "%s" class is @deprecated since Symfony 5.1, use "%s" instead. The AmqpExt transport has been moved to package "symfony/messenger-amqp" and will not be required by default in 6.0. Run "composer require symfony/messenger-amqp".', AmqpSender::class, BridgeAmqpSender::class), E_USER_DEPRECATED);
18+
}
19+
20+
class_alias(BridgeAmqpSender::class, AmqpSender::class);
21+
22+
if (false) {
23+
/**
24+
* @deprecated since Symfony 5.1, to be removed in 6.0. Use symfony/messenger-amqp instead.
25+
*/
26+
class AmqpSender
27+
{
28+
}
29+
}
30+
+29Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Component\Messenger\Transport\AmqpExt;
13+
14+
use Symfony\Component\Messenger\Bridge\AmqpExt\Transport\AmqpStamp as BridgeAmqpStamp;
15+
16+
if (! class_exists(BridgeAmqpStamp::class, false)) {
17+
@trigger_error(sprintf('The "%s" class is @deprecated since Symfony 5.1, use "%s" instead. The AmqpExt transport has been moved to package "symfony/messenger-amqp" and will not be required by default in 6.0. Run "composer require symfony/messenger-amqp".', AmqpStamp::class, BridgeAmqpStamp::class), E_USER_DEPRECATED);
18+
}
19+
20+
class_alias(BridgeAmqpStamp::class, AmqpStamp::class);
21+
22+
if (false) {
23+
/**
24+
* @deprecated since Symfony 5.1, to be removed in 6.0. Use symfony/messenger-amqp instead.
25+
*/
26+
class AmqpStamp
27+
{
28+
}
29+
}
+29Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Component\Messenger\Transport\AmqpExt;
13+
14+
use Symfony\Component\Messenger\Bridge\AmqpExt\Transport\AmqpTransport as BridgeAmqpTransport;
15+
16+
if (! class_exists(BridgeAmqpTransport::class, false)) {
17+
@trigger_error(sprintf('The "%s" class is @deprecated since Symfony 5.1, use "%s" instead. The AmqpExt transport has been moved to package "symfony/messenger-amqp" and will not be required by default in 6.0. Run "composer require symfony/messenger-amqp".', AmqpTransport::class, BridgeAmqpTransport::class), E_USER_DEPRECATED);
18+
}
19+
20+
class_alias(BridgeAmqpTransport::class, AmqpTransport::class);
21+
22+
if (false) {
23+
/**
24+
* @deprecated since Symfony 5.1, to be removed in 6.0. Use symfony/messenger-amqp instead.
25+
*/
26+
class AmqpTransport
27+
{
28+
}
29+
}
+29Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Component\Messenger\Transport\AmqpExt;
13+
14+
use Symfony\Component\Messenger\Bridge\AmqpExt\Transport\AmqpTransportFactory as BridgeAmqpTransportFactory;
15+
16+
if (! class_exists(BridgeAmqpTransportFactory::class, false)) {
17+
@trigger_error(sprintf('The "%s" class is @deprecated since Symfony 5.1, use "%s" instead. The AmqpExt transport has been moved to package "symfony/messenger-amqp" and will not be required by default in 6.0. Run "composer require symfony/messenger-amqp".', AmqpTransportFactory::class, BridgeAmqpTransportFactory::class), E_USER_DEPRECATED);
18+
}
19+
20+
class_alias(BridgeAmqpTransportFactory::class, AmqpTransportFactory::class);
21+
22+
if (false) {
23+
/**
24+
* @deprecated since Symfony 5.1, to be removed in 6.0. Use symfony/messenger-amqp instead.
25+
*/
26+
class AmqpTransportFactory
27+
{
28+
}
29+
}
+29Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Component\Messenger\Transport\AmqpExt;
13+
14+
use Symfony\Component\Messenger\Bridge\AmqpExt\Transport\Connection as BridgeConnection;
15+
16+
if (! class_exists(BridgeConnection::class, false)) {
17+
@trigger_error(sprintf('The "%s" class is @deprecated since Symfony 5.1, use "%s" instead. The AmqpExt transport has been moved to package "symfony/messenger-amqp" and will not be required by default in 6.0. Run "composer require symfony/messenger-amqp".', Connection::class, BridgeConnection::class), E_USER_DEPRECATED);
18+
}
19+
20+
class_alias(BridgeConnection::class, Connection::class);
21+
22+
if (false) {
23+
/**
24+
* @deprecated since Symfony 5.1, to be removed in 6.0. Use symfony/messenger-amqp instead.
25+
*/
26+
class Connection
27+
{
28+
}
29+
}
+29Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Component\Messenger\Transport\Doctrine;
13+
14+
use Symfony\Component\Messenger\Bridge\Doctrine\Transport\Connection as BridgeConnection;
15+
16+
if (! class_exists(BridgeConnection::class, false)) {
17+
@trigger_error(sprintf('The "%s" class is @deprecated since Symfony 5.1, use "%s" instead. The Doctrine transport has been moved to package "symfony/messenger-doctrine" and will not be required by default in 6.0. Run "composer require symfony/messenger-doctrine".', Connection::class, BridgeConnection::class), E_USER_DEPRECATED);
18+
}
19+
20+
class_alias(BridgeConnection::class, Connection::class);
21+
22+
if (false) {
23+
/**
24+
* @deprecated since Symfony 5.1, to be removed in 6.0. Use symfony/messenger-doctrine instead.
25+
*/
26+
class Connection
27+
{
28+
}
29+
}
+29Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Component\Messenger\Transport\Doctrine;
13+
14+
use Symfony\Component\Messenger\Bridge\Doctrine\Transport\DoctrineReceivedStamp as BridgeDoctrineReceivedStamp;
15+
16+
if (! class_exists(BridgeDoctrineReceivedStamp::class, false)) {
17+
@trigger_error(sprintf('The "%s" class is @deprecated since Symfony 5.1, use "%s" instead. The Doctrine transport has been moved to package "symfony/messenger-doctrine" and will not be required by default in 6.0. Run "composer require symfony/messenger-doctrine".', DoctrineReceivedStamp::class, BridgeDoctrineReceivedStamp::class), E_USER_DEPRECATED);
18+
}
19+
20+
class_alias(BridgeDoctrineReceivedStamp::class, DoctrineReceivedStamp::class);
21+
22+
if (false) {
23+
/**
24+
* @deprecated since Symfony 5.1, to be removed in 6.0. Use symfony/messenger-doctrine instead.
25+
*/
26+
class DoctrineReceivedStamp
27+
{
28+
}
29+
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.