protected function findController($controller, $action, $inPath)
    {
        /*
         * Workaround: Composer does not support case insensitivity.
         */
        if (!class_exists($controller)) {
            $controller = Str::normalizeClassName($controller);
            $controllerFile = $inPath.strtolower(str_replace('\\', '/', $controller)) . '.php';
            if ($controllerFile = File::existsInsensitive($controllerFile)) {
                include_once $controllerFile;
            }
        }

        if (!class_exists($controller)) {
            return false;
        }

        $controllerObj = App::make($controller);

        if ($controllerObj->actionExists($action)) {
            return $controllerObj;
        }

        return false;
    }
protected function findController($controller, $action, $inPath)
    {
        /*
         * Workaround: Composer does not support case insensitivity.
         */
        if (!class_exists($controller)) {
            $controller = Str::normalizeClassName($controller);
            $controllerFile = $inPath.strtolower(str_replace('\\', '/', $controller)) . '.php';
            if ($controllerFile = File::existsInsensitive($controllerFile)) {
                include_once $controllerFile;
            }
        }

        if (!class_exists($controller)) {
            return false;
        }

        $controllerObj = App::make($controller);

        if ($controllerObj->actionExists($action)) {
            return $controllerObj;
        }

        return false;
    }
protected function findController ( $ controller , $ action , $ inPath ) { /*
         * Workaround: Composer does not support case insensitivity.
         */ if ( ! class_exists ( $ controller ) ) { $ controller = Str :: normalizeClassName ( $ controller ) ; $ controllerFile = $ inPath . strtolower ( str_replace ( '\\' , '/' , $ controller ) ) . '.php' ; if ( $ controllerFile = File :: existsInsensitive ( $ controllerFile ) ) { include_once $ controllerFile ; } } if ( ! class_exists ( $ controller ) ) { return false ; } $ controllerObj = App :: make ( $ controller ) ; if ( $ controllerObj -> actionExists ( $ action ) ) { return $ controllerObj ; } return false ; }
This method is used internally.
Finds a backend controller with a callable action method.
@param string $controller Specifies a method name to execute.
@param string $action Specifies a method name to execute.
@param string $inPath Base path for class file location.
@return ControllerBase Returns the backend controller object
This method is used internally . Finds a backend controller with a callable action method .