Dumplie\SharedKernel\Application\Command\Extension::post PHP Method

post() public method

public post ( Command $command, Dumplie\SharedKernel\Application\ServiceLocator $serviceLocator )
$command Command
$serviceLocator Dumplie\SharedKernel\Application\ServiceLocator
    public function post(Command $command, ServiceLocator $serviceLocator);

Usage Example

 function it_executes_post_endpoint_for_matching_commands(Extension $extension, Command $command, ServiceLocator $serviceLocator)
 {
     $extension->expands($command)->willReturn(true);
     $extension->post($command, $serviceLocator)->shouldBeCalled();
     $this->register($extension);
     $this->post($command, $serviceLocator);
 }
All Usage Examples Of Dumplie\SharedKernel\Application\Command\Extension::post