Пример #1
0
 /**
  * @param string $class
  * @param callable|object|string $handler
  * @param null|callable $predicate
  * @param null|callable $arguments
  * @return GenericActionRepresenter
  */
 public function addAction($class, $handler, $predicate = null, $arguments = null)
 {
     $representer = new GenericActionRepresenter($class, $this->factory);
     $representer->setHandler($handler);
     return $this->add($representer, $predicate, $arguments);
 }