src/WordPress/Http/Router.php
protected function getControllerClass($name)
	{
		$controllerClass = $name;
		if (!class_exists($name)) {
			$controllerClass = $this->controllerClasspath . '\\' . $name;
			if (!class_exists($controllerClass)) {
				$controllerClass = '\\FatPanda\\Illuminate\\WordPress\\Http\\Controllers\\' . $name;
				if (!class_exists($controllerClass)) {
					$controllerClass = new \WP_Error('class_not_found', "Class Not Found: {$name}");
				}
			}
		}

		return $controllerClass;
	}
protected function getControllerClass($name)
	{
		$controllerClass = $name;
		if (!class_exists($name)) {
			$controllerClass = $this->controllerClasspath . '\\' . $name;
			if (!class_exists($controllerClass)) {
				$controllerClass = '\\FatPanda\\Illuminate\\WordPress\\Http\\Controllers\\' . $name;
				if (!class_exists($controllerClass)) {
					$controllerClass = new \WP_Error('class_not_found', "Class Not Found: {$name}");
				}
			}
		}

		return $controllerClass;
	}
protected function getControllerClass ( $ name ) { $ controllerClass = $ name ; if ( ! class_exists ( $ name ) ) { $ controllerClass = $ this -> controllerClasspath . '\\' . $ name ; if ( ! class_exists ( $ controllerClass ) ) { $ controllerClass = '\\FatPanda\\Illuminate\\WordPress\\Http\\Controllers\\' . $ name ; if ( ! class_exists ( $ controllerClass ) ) { $ controllerClass = new \ WP_Error ( 'class_not_found' , "Class Not Found: {$name}" ) ; } } } return $ controllerClass ; }
Given the classname of a controller, seek out a proper
namespace; start with the set controller classpath, then
move on to the core default, then try looking for the
class without any classpath at all.
@return The fully-qualified classpath, or, if not found, a
WP_Error object
Given the classname of a controller seek out a proper namespace ; start with the set controller classpath then move on to the core default then try looking for the class without any classpath at all .