src/Samurai/Component/Core/ActionChain.php
public function getPositionByName($controller, $action = null)
    {
        if ($action === null) {
            list($controller, $action) = explode('.', $controller);
        }
        return array_search("{$controller}.{$action}", $this->action_names);
    }
public function getPositionByName($controller, $action = null)
    {
        if ($action === null) {
            list($controller, $action) = explode('.', $controller);
        }
        return array_search("{$controller}.{$action}", $this->action_names);
    }
public function getPositionByName ( $ controller , $ action = null ) { if ( $ action === null ) { list ( $ controller , $ action ) = explode ( '.' , $ controller ) ; } return array_search ( "{$controller}.{$action}" , $ this -> action_names ) ; }
get position by name

@param   string  $controller
@param   string  $action
@return  int
get position by name