Example #1
0
 /**
  * Action constructor.
  *
  * @param Config $config
  * @param array $classMap
  * @param $method
  * @param $arguments
  * @param $tid
  * @param bool|false $formHandler
  * @param array $files
  */
 public function __construct(Config $config, array $classMap, $method, $arguments, $tid, $formHandler = false, array $files = [])
 {
     $this->name = $classMap['action'];
     $this->class = $classMap['class'];
     $this->classFile = $classMap['file'];
     $this->method = $method;
     $this->arguments = (array) $arguments;
     $this->tid = $tid;
     $this->files = $files;
     $this->formHandler = $formHandler;
     if (isset($classMap['methods'][$method]['resultTransformer'])) {
         $this->resultTransformer = $classMap['methods'][$method]['resultTransformer'];
     } elseif ($config->getResultTransformer()) {
         $this->resultTransformer = $config->getResultTransformer();
     }
 }