original_string: protected function fetchController($name)
  	{
  		// Derive the controller class name.
  		$class = $this->controllerPrefix . ucfirst($name);
  
  		// If the controller class does not exist panic.
  		if (!class_exists($class))
  		{
  			throw new \RuntimeException(sprintf('Unable to locate controller `%s`.', $class), 404);
  		}
  
  		// If the controller does not follows the implementation.
  		if (!is_subclass_of($class, 'Joomla\\Controller\\ControllerInterface'))
  		{
  			throw new \RuntimeException(
  				sprintf(
  					'Invalid Controller. Controllers must implement Joomla\Controller\ControllerInterface. `%s`.',
  					$class
  				),
  				500
  			);
  		}
  
  		// Instantiate the controller.
  		$controller = new $class($this->input);
  
  		return $controller;
  	}
code: protected function fetchController($name)
  	{
  		// Derive the controller class name.
  		$class = $this->controllerPrefix . ucfirst($name);
  
  		// If the controller class does not exist panic.
  		if (!class_exists($class))
  		{
  			throw new \RuntimeException(sprintf('Unable to locate controller `%s`.', $class), 404);
  		}
  
  		// If the controller does not follows the implementation.
  		if (!is_subclass_of($class, 'Joomla\\Controller\\ControllerInterface'))
  		{
  			throw new \RuntimeException(
  				sprintf(
  					'Invalid Controller. Controllers must implement Joomla\Controller\ControllerInterface. `%s`.',
  					$class
  				),
  				500
  			);
  		}
  
  		// Instantiate the controller.
  		$controller = new $class($this->input);
  
  		return $controller;
  	}
code_tokens: protected function fetchController ( $ name ) { // Derive the controller class name. $ class = $ this -> controllerPrefix . ucfirst ( $ name ) ; // If the controller class does not exist panic. if ( ! class_exists ( $ class ) ) { throw new \ RuntimeException ( sprintf ( 'Unable to locate controller `%s`.' , $ class ) , 404 ) ; } // If the controller does not follows the implementation. if ( ! is_subclass_of ( $ class , 'Joomla\\Controller\\ControllerInterface' ) ) { throw new \ RuntimeException ( sprintf ( 'Invalid Controller. Controllers must implement Joomla\Controller\ControllerInterface. `%s`.' , $ class ) , 500 ) ; } // Instantiate the controller. $ controller = new $ class ( $ this -> input ) ; return $ controller ; }
docstring: Get a Controller object for a given name.
  
  @param   string  $name  The controller name (excluding prefix) for which to fetch and instance.
  
  @return  ControllerInterface
  
  @since   1.0
  @throws  \RuntimeException
  @deprecated  2.0  Deprecated without replacement
docstring_tokens: Get a Controller object for a given name .