Skip to content

Commit

Permalink
Close #19: Add check that QueueFactory is used in right context
Browse files Browse the repository at this point in the history
  • Loading branch information
codeliner committed Jun 28, 2014
1 parent 22b94c1 commit de51aa0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Prooph/ServiceBus/Message/DefaultQueueFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public function canCreateServiceWithName(ServiceLocatorInterface $serviceLocator
{
try {
\Assert\that($requestedName)->notEmpty()->string();
\Assert\that($serviceLocator)->isInstanceOf("Prooph\ServiceBus\Service\QueueManager");
return true;
} catch (\InvalidArgumentException $ex) {
return false;
Expand Down

0 comments on commit de51aa0

Please sign in to comment.