private function addAction($actionName)
    {
        $template         = $this->templates[$actionName];
        $command          = preg_filter('/^/', '    ', explode(PHP_EOL, strtr($template, ['$actionName' => $actionName])));
        $command          = array_filter($command, function($var){return strlen(trim($var));});
        $command          = implode(PHP_EOL, $command);
        $this->commands[] = $command;
    }
private function addAction($actionName)
    {
        $template         = $this->templates[$actionName];
        $command          = preg_filter('/^/', '    ', explode(PHP_EOL, strtr($template, ['$actionName' => $actionName])));
        $command          = array_filter($command, function($var){return strlen(trim($var));});
        $command          = implode(PHP_EOL, $command);
        $this->commands[] = $command;
    }
private function addAction ( $ actionName ) { $ template = $ this -> templates [ $ actionName ] ; $ command = preg_filter ( '/^/' , '    ' , explode ( PHP_EOL , strtr ( $ template , [ '$actionName' => $ actionName ] ) ) ) ; $ command = array_filter ( $ command , function ( $ var ) { return strlen ( trim ( $ var ) ) ; } ) ; $ command = implode ( PHP_EOL , $ command ) ; $ this -> commands [ ] = $ command ; }
Parses and adds a controller action

@param string $actionName

@return
Parses and adds a controller action