src/Core/Engine.php
protected static function getControllerClass($live = true) {
        $class = static::getModule() . '\Controllers\\' . static::getController() .
                'Controller';

        if (!class_exists($class))
            ControllerException::notFound($class);

        if (!in_array('DScribe\Core\AController', class_parents($class)))
            throw new \Exception('Controller Exception: Controller "' . $class . '" does not extend "DScribe\Core\AController"');

        return ($live) ? new $class() : $class;
    }
protected static function getControllerClass($live = true) {
        $class = static::getModule() . '\Controllers\\' . static::getController() .
                'Controller';

        if (!class_exists($class))
            ControllerException::notFound($class);

        if (!in_array('DScribe\Core\AController', class_parents($class)))
            throw new \Exception('Controller Exception: Controller "' . $class . '" does not extend "DScribe\Core\AController"');

        return ($live) ? new $class() : $class;
    }
protected static function getControllerClass ( $ live = true ) { $ class = static :: getModule ( ) . '\Controllers\\' . static :: getController ( ) . 'Controller' ; if ( ! class_exists ( $ class ) ) ControllerException :: notFound ( $ class ) ; if ( ! in_array ( 'DScribe\Core\AController' , class_parents ( $ class ) ) ) throw new \ Exception ( 'Controller Exception: Controller "' . $ class . '" does not extend "DScribe\Core\AController"' ) ; return ( $ live ) ? new $ class ( ) : $ class ; }
Creates an instance of the current controller class
@return AController
@throws Exception
Creates an instance of the current controller class