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
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions 4 CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Queue Client Bundle Changelog

## v1.0.3

- Change from error to warning when try to add alias on unknown queue

## v1.0.2

- Add AWS backwards compatibility
Expand Down
6 changes: 6 additions & 0 deletions 6 QueueClientFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

namespace ReputationVIP\Bundle\QueueClientBundle;

use Psr\Log\LoggerInterface;
use ReputationVIP\Bundle\QueueClientBundle\Configuration\QueuesConfiguration;
use ReputationVIP\QueueClient\Adapter\AdapterInterface;
use ReputationVIP\QueueClient\Adapter\Exception\QueueAccessException;
use ReputationVIP\QueueClient\QueueClient;
use ReputationVIP\QueueClient\QueueClientInterface;
use Symfony\Component\Config\Definition\Processor;
Expand Down Expand Up @@ -42,6 +44,8 @@ public static function resolveParameters(&$item, $key, $container)
*/
public function get($container, $adapter, $queuesFile)
{
/** @var LoggerInterface $logger */
$logger = $container->get('logger');
$queueClient = new QueueClient($adapter);
$processor = new Processor();
$configuration = new QueuesConfiguration();
Expand All @@ -53,6 +57,8 @@ public function get($container, $adapter, $queuesFile)
foreach ($queue[QueuesConfiguration::QUEUE_ALIASES_NODE] as $alias) {
try {
$queueClient->addAlias($queueName, $alias);
} catch (QueueAccessException $e) {
$logger->warning($e->getMessage());
} catch (\ErrorException $e) {
if ($e->getSeverity() === E_ERROR) {
throw $e;
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.