예제 #1
0
 public function testMarshallArguments()
 {
     $instance = new Dispatcher(new Container());
     $result = $instance->dispatchFromArray('BusDispatcherTestArgumentMapping', ['flag' => false, 'emptyString' => '']);
     $this->assertTrue($result);
 }
 /**
  * Marshal a command and dispatch it to its appropriate handler.
  *
  * @param mixed $command
  * @param array $array
  * @return mixed 
  * @static 
  */
 public static function dispatchFromArray($command, $array)
 {
     return \Collective\Bus\Dispatcher::dispatchFromArray($command, $array);
 }