@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace IrishDan\NotificationBundle\Dispatcher; |
4 | 4 | |
5 | 5 | use Doctrine\ORM\EntityManager; |
6 | -use IrishDan\NotificationBundle\Message\BaseMessage; |
|
7 | 6 | use IrishDan\NotificationBundle\Message\MessageInterface; |
8 | 7 | use Symfony\Component\PropertyAccess\PropertyAccess; |
9 | 8 |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | |
6 | 6 | use IrishDan\NotificationBundle\Channel\ChannelInterface; |
7 | -use IrishDan\NotificationBundle\Notification\NotifiableInterface; |
|
8 | 7 | use IrishDan\NotificationBundle\Notification\NotificationInterface; |
9 | 8 | |
10 | 9 | class Broadcaster |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace IrishDan\NotificationBundle\DependencyInjection; |
4 | 4 | |
5 | -use IrishDan\NotificationBundle\DependencyInjection\Factory\Broadcaster\SlackBroadcasterFactory; |
|
6 | 5 | use Symfony\Component\DependencyInjection\Definition; |
7 | 6 | use Symfony\Component\DependencyInjection\Reference; |
8 | 7 | use Symfony\Component\HttpKernel\DependencyInjection\Extension; |
@@ -72,8 +72,7 @@ |
||
72 | 72 | try { |
73 | 73 | if (!empty($this->dispatchers[$dispatcherKey])) { |
74 | 74 | $this->dispatchers[$dispatcherKey]->dispatch($message); |
75 | - } |
|
76 | - else { |
|
75 | + } else { |
|
77 | 76 | throw new MessageDispatchException( |
78 | 77 | sprintf('No dispatcher available with key "%s"', $dispatcherKey) |
79 | 78 | ); |