1 | <?php |
||
7 | class AutoQueuingCommandBusAdapter implements CommandBusAdapterInterface, DeciderInterface |
||
8 | { |
||
9 | |||
10 | private $baseCommandBus; |
||
11 | private $fromQueueCommands = []; |
||
12 | |||
13 | public function __construct(CommandBusAdapterInterface $baseCommandBus) |
||
17 | |||
18 | public function handle($command, bool $fromQueue = false) |
||
29 | |||
30 | public function shouldBeQueued($command): bool |
||
35 | |||
36 | private function getHash($command): string |
||
40 | } |
||
41 |