src/Samurai/Component/Core/ActionChain.php
public function existsController($name, $action = null)
    {
        $names = explode('_', $name);
        array_unshift($names, 'Controller');
        $base = join(DS, array_map('ucfirst', $names)) . 'Controller.php';

        $file = $this->loader->findFirst($base);
        if ($file) {
            $class = $file->getClassName();
            if (! $action && class_exists($class)) return true;
            
            $action = $this->actionNameStrategy($action);
            if (method_exists($class, $action)) return true;
        }

        return false;
    }
public function existsController($name, $action = null)
    {
        $names = explode('_', $name);
        array_unshift($names, 'Controller');
        $base = join(DS, array_map('ucfirst', $names)) . 'Controller.php';

        $file = $this->loader->findFirst($base);
        if ($file) {
            $class = $file->getClassName();
            if (! $action && class_exists($class)) return true;
            
            $action = $this->actionNameStrategy($action);
            if (method_exists($class, $action)) return true;
        }

        return false;
    }
public function existsController ( $ name , $ action = null ) { $ names = explode ( '_' , $ name ) ; array_unshift ( $ names , 'Controller' ) ; $ base = join ( DS , array_map ( 'ucfirst' , $ names ) ) . 'Controller.php' ; $ file = $ this -> loader -> findFirst ( $ base ) ; if ( $ file ) { $ class = $ file -> getClassName ( ) ; if ( ! $ action && class_exists ( $ class ) ) return true ; $ action = $ this -> actionNameStrategy ( $ action ) ; if ( method_exists ( $ class , $ action ) ) return true ; } return false ; }
has controller ?

@param   string  $name
@param   string  $action
@return  boolean
has controller ?