src/InputController/ControllerRoute.php
public function instanciateController() {
		$class = $this->controllerClass;
		/* @var Controller $controller */
		$controller = new $class();
		if( !($controller instanceof Controller) ) {
			throw new NotFoundException('The controller "'.$this->controllerClass.'" is not a valid controller, the class must inherit from "'.get_class().'"');
		}
		$controller->setRoute($this);
		return $controller;
	}
public function instanciateController() {
		$class = $this->controllerClass;
		/* @var Controller $controller */
		$controller = new $class();
		if( !($controller instanceof Controller) ) {
			throw new NotFoundException('The controller "'.$this->controllerClass.'" is not a valid controller, the class must inherit from "'.get_class().'"');
		}
		$controller->setRoute($this);
		return $controller;
	}
public function instanciateController ( ) { $ class = $ this -> controllerClass ; /* @var Controller $controller */ $ controller = new $ class ( ) ; if ( ! ( $ controller instanceof Controller ) ) { throw new NotFoundException ( 'The controller "' . $ this -> controllerClass . '" is not a valid controller, the class must inherit from "' . get_class ( ) . '"' ) ; } $ controller -> setRoute ( $ this ) ; return $ controller ; }
Instanciate the controller and return it

@return \Orpheus\InputController\Controller
Instanciate the controller and return it