Exemplo n.º 1
0
 /**
  * Method handling ExampleCommand commands.
  *
  * The fact that this method handles the ExampleCommand is signalled by the
  * convention of the method name: `handle<CommandClassName>`.
  */
 public function handleExampleCommand(ExampleCommand $command)
 {
     echo $command->getMessage() . "\n";
 }
Exemplo n.º 2
0
 public function handle(ExampleCommand $command)
 {
     var_dump($command->foo());
 }