Dumplie\SharedKernel\Infrastructure\Tactician\CommandBus::handle PHP Метод

handle() публичный Метод

public handle ( Dumplie\SharedKernel\Application\Command\Command $command )
$command Dumplie\SharedKernel\Application\Command\Command
    public function handle(Command $command)
    {
        $this->commandBus->handle($command);
    }

Usage Example

Пример #1
0
 public function test_command_extension_points()
 {
     $command = new CreateCart((string) CartId::generate(), 'PLN');
     $extension = $this->prophesize(Extension::class);
     $extension->expands($command)->willReturn(true);
     $extension->pre($command, $this->serviceLocator)->shouldBeCalled();
     $extension->post($command, $this->serviceLocator)->shouldBeCalled();
     $this->extensionRegistry->register($extension->reveal());
     $this->commandBus->handle($command);
 }
All Usage Examples Of Dumplie\SharedKernel\Infrastructure\Tactician\CommandBus::handle