private function loadCommand($class) {
        $controller = new $class();
        if (!is_a($controller, '\\mpf\\cli\\Command')) {
            $this->critical('Command `' . $class . '` must extend \\mpf\\cli\\Command!', array(
                'requestedController' => $this->request()->getController(),
                'requestedModule' => $this->request()->getModule()
            ));
            return null;
        }
        return $controller;
    }
private function loadCommand($class) {
        $controller = new $class();
        if (!is_a($controller, '\\mpf\\cli\\Command')) {
            $this->critical('Command `' . $class . '` must extend \\mpf\\cli\\Command!', array(
                'requestedController' => $this->request()->getController(),
                'requestedModule' => $this->request()->getModule()
            ));
            return null;
        }
        return $controller;
    }
private function loadCommand ( $ class ) { $ controller = new $ class ( ) ; if ( ! is_a ( $ controller , '\\mpf\\cli\\Command' ) ) { $ this -> critical ( 'Command `' . $ class . '` must extend \\mpf\\cli\\Command!' , array ( 'requestedController' => $ this -> request ( ) -> getController ( ) , 'requestedModule' => $ this -> request ( ) -> getModule ( ) ) ) ; return null ; } return $ controller ; }
Instantiate command and check if class is correct;

A critical error will be generated if it's an invalid class(doesn't extend `\mpf\cli\Command`)!

@param string $class
@return \mpf\cli\Command
Instantiate command and check if class is correct ;