Skip to content

Commit d1e9207

Browse files
authored
Fix #93: Rename AMQP namespace to Amqp (#128)
1 parent a02e3e4 commit d1e9207

35 files changed

Lines changed: 113 additions & 113 deletions

.github/workflows/bechmark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
working-directory: ./tests
8888
run: |
8989
if [ "${{ env.WITH_BENCH_BASELINE }}" == '1' ]; then
90-
docker compose run --rm -e XDEBUG_MODE=off php${{ matrix.php }} php vendor/bin/phpbench run --report='aggregate' --ref=default --assert="mode(variant.time.avg) <= mode(baseline.time.avg) +/- 5%" > phpbench.log
90+
docker compose run --rm -e XDEBUG_MODE=off php${{ matrix.php }} php vendor/bin/phpbench run --report='aggregate' --ref=default --assert="mode(variant.time.avg) <= mode(baseline.time.avg) +/- 10%" > phpbench.log
9191
else
9292
docker compose run --rm -e XDEBUG_MODE=off php${{ matrix.php }} php vendor/bin/phpbench run --report='aggregate' > phpbench.log
9393
fi

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@
4545
},
4646
"autoload": {
4747
"psr-4": {
48-
"Yiisoft\\Queue\\AMQP\\": "src"
48+
"Yiisoft\\Queue\\Amqp\\": "src"
4949
}
5050
},
5151
"autoload-dev": {
5252
"psr-4": {
53-
"Yiisoft\\Queue\\AMQP\\Tests\\": "tests"
53+
"Yiisoft\\Queue\\Amqp\\Tests\\": "tests"
5454
}
5555
},
5656
"extra": {

config/di.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
declare(strict_types=1);
44

5-
use Yiisoft\Queue\AMQP\QueueProvider;
6-
use Yiisoft\Queue\AMQP\QueueProviderInterface;
7-
use Yiisoft\Queue\AMQP\Settings\Queue;
8-
use Yiisoft\Queue\AMQP\Settings\QueueSettingsInterface;
5+
use Yiisoft\Queue\Amqp\QueueProvider;
6+
use Yiisoft\Queue\Amqp\QueueProviderInterface;
7+
use Yiisoft\Queue\Amqp\Settings\Queue;
8+
use Yiisoft\Queue\Amqp\Settings\QueueSettingsInterface;
99

1010
return [
1111
QueueProviderInterface::class => QueueProvider::class,

src/Adapter.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22

33
declare(strict_types=1);
44

5-
namespace Yiisoft\Queue\AMQP;
5+
namespace Yiisoft\Queue\Amqp;
66

77
use BackedEnum;
88
use InvalidArgumentException;
99
use PhpAmqpLib\Exchange\AMQPExchangeType;
1010
use PhpAmqpLib\Message\AMQPMessage;
1111
use Throwable;
1212
use Yiisoft\Queue\Adapter\AdapterInterface;
13-
use Yiisoft\Queue\AMQP\Exception\NotImplementedException;
14-
use Yiisoft\Queue\AMQP\Settings\ExchangeSettingsInterface;
15-
use Yiisoft\Queue\AMQP\Settings\QueueSettingsInterface;
13+
use Yiisoft\Queue\Amqp\Exception\NotImplementedException;
14+
use Yiisoft\Queue\Amqp\Settings\ExchangeSettingsInterface;
15+
use Yiisoft\Queue\Amqp\Settings\QueueSettingsInterface;
1616
use Yiisoft\Queue\Cli\LoopInterface;
1717
use Yiisoft\Queue\Message\DelayEnvelope;
1818
use Yiisoft\Queue\Message\MessageInterface;

src/Exception/ExchangeDeclaredException.php

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

33
declare(strict_types=1);
44

5-
namespace Yiisoft\Queue\AMQP\Exception;
5+
namespace Yiisoft\Queue\Amqp\Exception;
66

77
use InvalidArgumentException;
88
use Yiisoft\FriendlyException\FriendlyExceptionInterface;

src/Exception/NotImplementedException.php

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

33
declare(strict_types=1);
44

5-
namespace Yiisoft\Queue\AMQP\Exception;
5+
namespace Yiisoft\Queue\Amqp\Exception;
66

77
use RuntimeException;
88

src/ExistingMessagesConsumer.php

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

33
declare(strict_types=1);
44

5-
namespace Yiisoft\Queue\AMQP;
5+
namespace Yiisoft\Queue\Amqp;
66

77
use PhpAmqpLib\Message\AMQPMessage;
88
use Throwable;

src/Middleware/DelayMiddleware.php

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

33
declare(strict_types=1);
44

5-
namespace Yiisoft\Queue\AMQP\Middleware;
5+
namespace Yiisoft\Queue\Amqp\Middleware;
66

77
use Yiisoft\Queue\Message\DelayEnvelope;
88
use Yiisoft\Queue\Message\MessageInterface;

src/QueueProvider.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
declare(strict_types=1);
44

5-
namespace Yiisoft\Queue\AMQP;
5+
namespace Yiisoft\Queue\Amqp;
66

77
use PhpAmqpLib\Channel\AMQPChannel;
88
use PhpAmqpLib\Connection\AbstractConnection;
9-
use Yiisoft\Queue\AMQP\Exception\ExchangeDeclaredException;
10-
use Yiisoft\Queue\AMQP\Settings\ExchangeSettingsInterface;
11-
use Yiisoft\Queue\AMQP\Settings\QueueSettingsInterface;
9+
use Yiisoft\Queue\Amqp\Exception\ExchangeDeclaredException;
10+
use Yiisoft\Queue\Amqp\Settings\ExchangeSettingsInterface;
11+
use Yiisoft\Queue\Amqp\Settings\QueueSettingsInterface;
1212

1313
/**
1414
* @internal

src/QueueProviderInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
declare(strict_types=1);
44

5-
namespace Yiisoft\Queue\AMQP;
5+
namespace Yiisoft\Queue\Amqp;
66

77
use PhpAmqpLib\Channel\AMQPChannel;
8-
use Yiisoft\Queue\AMQP\Settings\ExchangeSettingsInterface;
9-
use Yiisoft\Queue\AMQP\Settings\QueueSettingsInterface;
8+
use Yiisoft\Queue\Amqp\Settings\ExchangeSettingsInterface;
9+
use Yiisoft\Queue\Amqp\Settings\QueueSettingsInterface;
1010

1111
/**
1212
* @internal

0 commit comments

Comments
 (0)