Skip to content

Commit dee1f5a

Browse files
committed
[dbla]][fs] Do not use deprecated exception classes.
1 parent 7880d66 commit dee1f5a

12 files changed

+22
-22
lines changed

pkg/dbal/DbalConsumer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Doctrine\DBAL\Connection;
88
use Doctrine\DBAL\Types\Type;
99
use Interop\Queue\Consumer;
10-
use Interop\Queue\InvalidMessageException;
10+
use Interop\Queue\Exception\InvalidMessageException;
1111
use Interop\Queue\Message;
1212
use Interop\Queue\Queue;
1313

pkg/dbal/DbalContext.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
use Interop\Queue\Consumer;
1111
use Interop\Queue\Context;
1212
use Interop\Queue\Destination;
13-
use Interop\Queue\InvalidDestinationException;
13+
use Interop\Queue\Exception\InvalidDestinationException;
14+
use Interop\Queue\Exception\SubscriptionConsumerNotSupportedException;
15+
use Interop\Queue\Exception\TemporaryQueueNotSupportedException;
1416
use Interop\Queue\Message;
1517
use Interop\Queue\Producer;
1618
use Interop\Queue\Queue;
1719
use Interop\Queue\SubscriptionConsumer;
18-
use Interop\Queue\SubscriptionConsumerNotSupportedException;
19-
use Interop\Queue\TemporaryQueueNotSupportedException;
2020
use Interop\Queue\Topic;
2121

2222
class DbalContext implements Context

pkg/dbal/DbalProducer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
use Doctrine\DBAL\Types\Type;
88
use Interop\Queue\Destination;
9-
use Interop\Queue\Exception;
10-
use Interop\Queue\InvalidDestinationException;
11-
use Interop\Queue\InvalidMessageException;
9+
use Interop\Queue\Exception\Exception;
10+
use Interop\Queue\Exception\InvalidDestinationException;
11+
use Interop\Queue\Exception\InvalidMessageException;
1212
use Interop\Queue\Message;
1313
use Interop\Queue\Producer;
1414
use Ramsey\Uuid\Codec\OrderedTimeCodec;

pkg/dbal/Tests/DbalConsumerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use Enqueue\Dbal\DbalProducer;
1010
use Enqueue\Test\ClassExtensionTrait;
1111
use Interop\Queue\Consumer;
12-
use Interop\Queue\InvalidMessageException;
12+
use Interop\Queue\Exception\InvalidMessageException;
1313
use Interop\Queue\Message;
1414

1515
class DbalConsumerTest extends \PHPUnit_Framework_TestCase

pkg/dbal/Tests/DbalContextTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
use Enqueue\Test\ClassExtensionTrait;
1212
use Interop\Queue\Context;
1313
use Interop\Queue\Destination;
14-
use Interop\Queue\InvalidDestinationException;
15-
use Interop\Queue\TemporaryQueueNotSupportedException;
14+
use Interop\Queue\Exception\InvalidDestinationException;
15+
use Interop\Queue\Exception\TemporaryQueueNotSupportedException;
1616

1717
class DbalContextTest extends \PHPUnit_Framework_TestCase
1818
{

pkg/dbal/Tests/DbalProducerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Enqueue\Dbal\DbalProducer;
88
use Enqueue\Test\ClassExtensionTrait;
99
use Interop\Queue\Destination;
10-
use Interop\Queue\InvalidDestinationException;
10+
use Interop\Queue\Exception\InvalidDestinationException;
1111
use Interop\Queue\Producer;
1212

1313
class DbalProducerTest extends \PHPUnit_Framework_TestCase

pkg/fs/CannotObtainLockException.php

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

55
namespace Enqueue\Fs;
66

7-
use Interop\Queue\Exception;
7+
use Interop\Queue\Exception\Exception;
88

99
class CannotObtainLockException extends Exception
1010
{

pkg/fs/FsConsumer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace Enqueue\Fs;
66

77
use Interop\Queue\Consumer;
8-
use Interop\Queue\InvalidMessageException;
8+
use Interop\Queue\Exception\InvalidMessageException;
99
use Interop\Queue\Message;
1010
use Interop\Queue\Queue;
1111

pkg/fs/FsContext.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
use Interop\Queue\Consumer;
88
use Interop\Queue\Context;
99
use Interop\Queue\Destination;
10-
use Interop\Queue\InvalidDestinationException;
10+
use Interop\Queue\Exception\InvalidDestinationException;
11+
use Interop\Queue\Exception\SubscriptionConsumerNotSupportedException;
1112
use Interop\Queue\Message;
1213
use Interop\Queue\Producer;
1314
use Interop\Queue\Queue;
1415
use Interop\Queue\SubscriptionConsumer;
15-
use Interop\Queue\SubscriptionConsumerNotSupportedException;
1616
use Interop\Queue\Topic;
1717
use Makasim\File\TempFile;
1818
use Symfony\Component\Filesystem\Filesystem;

pkg/fs/FsProducer.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
namespace Enqueue\Fs;
66

7-
use Interop\Queue\DeliveryDelayNotSupportedException;
87
use Interop\Queue\Destination;
9-
use Interop\Queue\InvalidDestinationException;
10-
use Interop\Queue\InvalidMessageException;
8+
use Interop\Queue\Exception\DeliveryDelayNotSupportedException;
9+
use Interop\Queue\Exception\InvalidDestinationException;
10+
use Interop\Queue\Exception\InvalidMessageException;
11+
use Interop\Queue\Exception\PriorityNotSupportedException;
1112
use Interop\Queue\Message;
12-
use Interop\Queue\PriorityNotSupportedException;
1313
use Interop\Queue\Producer;
1414
use Makasim\File\TempFile;
1515

pkg/fs/Tests/FsContextTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Enqueue\Null\NullQueue;
1111
use Enqueue\Test\ClassExtensionTrait;
1212
use Interop\Queue\Context;
13-
use Interop\Queue\InvalidDestinationException;
13+
use Interop\Queue\Exception\InvalidDestinationException;
1414
use Makasim\File\TempFile;
1515

1616
class FsContextTest extends \PHPUnit\Framework\TestCase

pkg/fs/Tests/FsProducerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
use Enqueue\Null\NullMessage;
1010
use Enqueue\Null\NullQueue;
1111
use Enqueue\Test\ClassExtensionTrait;
12-
use Interop\Queue\InvalidDestinationException;
13-
use Interop\Queue\InvalidMessageException;
12+
use Interop\Queue\Exception\InvalidDestinationException;
13+
use Interop\Queue\Exception\InvalidMessageException;
1414
use Interop\Queue\Producer;
1515
use Makasim\File\TempFile;
1616

0 commit comments

Comments
 (0)