protected function validateControllerClass($controllerClass)
    {
        if (class_exists($controllerClass)) {
            $class = new \ReflectionClass($controllerClass);
            return !$class->isAbstract() && $class->isSubclassOf(Controller::class);
        }

        return false;
    }
protected function validateControllerClass($controllerClass)
    {
        if (class_exists($controllerClass)) {
            $class = new \ReflectionClass($controllerClass);
            return !$class->isAbstract() && $class->isSubclassOf(Controller::class);
        }

        return false;
    }
protected function validateControllerClass ( $ controllerClass ) { if ( class_exists ( $ controllerClass ) ) { $ class = new \ ReflectionClass ( $ controllerClass ) ; return ! $ class -> isAbstract ( ) && $ class -> isSubclassOf ( Controller :: class ) ; } return false ; }
Validates if the given class is a valid console controller class.
@param string $controllerClass
@return bool
Validates if the given class is a valid console controller class .