| 1 | <?php |
||
| 16 | class SyncFactory implements QueueFactory |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var array |
||
| 20 | */ |
||
| 21 | protected $queues; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var EventDispatcherInterface |
||
| 25 | */ |
||
| 26 | protected $dispatcher; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var Router |
||
| 30 | */ |
||
| 31 | protected $router; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * SyncFactory constructor. |
||
| 35 | * @param EventDispatcherInterface $dispatcher |
||
| 36 | * @param Router $router |
||
| 37 | */ |
||
| 38 | public function __construct(EventDispatcherInterface $dispatcher, Router $router) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * {@inheritdoc} |
||
| 47 | */ |
||
| 48 | public function create($queueName) |
||
| 56 | |||
| 57 | /** |
||
| 58 | * {@inheritdoc} |
||
| 59 | */ |
||
| 60 | public function all() |
||
| 64 | |||
| 65 | /** |
||
| 66 | * {@inheritdoc} |
||
| 67 | */ |
||
| 68 | public function count() |
||
| 72 | |||
| 73 | /** |
||
| 74 | * {@inheritdoc} |
||
| 75 | */ |
||
| 76 | public function exists($queueName) |
||
| 80 | |||
| 81 | /** |
||
| 82 | * {@inheritdoc} |
||
| 83 | */ |
||
| 84 | public function remove($queueName) |
||
| 92 | } |
||
| 93 |