src/Samurai/Component/Core/ActionChain.php
public function getCurrentAction()
    {
        if (! isset($this->actions[$this->position])) return null;

        $define = $this->actions[$this->position];
        if ($define['controller']) return $define;

        $controller = $this->getController($define['controller_name']);
        $define['controller'] = $controller;

        $this->actions[$this->position] = $define;

        return $define;
    }
public function getCurrentAction()
    {
        if (! isset($this->actions[$this->position])) return null;

        $define = $this->actions[$this->position];
        if ($define['controller']) return $define;

        $controller = $this->getController($define['controller_name']);
        $define['controller'] = $controller;

        $this->actions[$this->position] = $define;

        return $define;
    }
public function getCurrentAction ( ) { if ( ! isset ( $ this -> actions [ $ this -> position ] ) ) return null ; $ define = $ this -> actions [ $ this -> position ] ; if ( $ define [ 'controller' ] ) return $ define ; $ controller = $ this -> getController ( $ define [ 'controller_name' ] ) ; $ define [ 'controller' ] = $ controller ; $ this -> actions [ $ this -> position ] = $ define ; return $ define ; }
Get current action instance.

@return  array   controller:Controller, action:string
Get current action instance .