private function loadController($class)
    {
        $controller = new $class($this->currentControllerAliasConfig);
        if (!is_a($controller, '\\mpf\\web\\Controller')) {
            $this->critical('Controller `' . $class . '` must extend \\mpf\\web\\Controller!', array(
                'requestedController' => $this->request()->getController(),
                'requestedModule' => $this->request()->getModule()
            ));
            return null;
        }
        return $controller;
    }
private function loadController($class)
    {
        $controller = new $class($this->currentControllerAliasConfig);
        if (!is_a($controller, '\\mpf\\web\\Controller')) {
            $this->critical('Controller `' . $class . '` must extend \\mpf\\web\\Controller!', array(
                'requestedController' => $this->request()->getController(),
                'requestedModule' => $this->request()->getModule()
            ));
            return null;
        }
        return $controller;
    }
private function loadController ( $ class ) { $ controller = new $ class ( $ this -> currentControllerAliasConfig ) ; if ( ! is_a ( $ controller , '\\mpf\\web\\Controller' ) ) { $ this -> critical ( 'Controller `' . $ class . '` must extend \\mpf\\web\\Controller!' , array ( 'requestedController' => $ this -> request ( ) -> getController ( ) , 'requestedModule' => $ this -> request ( ) -> getModule ( ) ) ) ; return null ; } return $ controller ; }
Instantiate controller and check if class is correct;It will also check for current alias config and it will sent it to constructor
@param string $class
@return \mpf\web\Controller
Instantiate controller and check if class is correct ; It will also check for current alias config and it will sent it to constructor