src/Routing/ControllerDispatcher.php
/**
	 * Creates an instance and returns the callable array to execute it.
	 *
	 * @param string|array $name
	 * @return callable
	 */
Creates an instance and returns the callable array to execute it.
@param string|array $name
@return callable
Creates an instance and returns the callable array to execute it . @param string|array $name @return callable
protected function createInstance($name) {
		if (!is_string($name)) {
			return $name;
		}
		list($className, $method) = explode('::', $name, 2);
		return array(new $className, $method);
	}
protected function createInstance ( $ name ) { if ( ! is_string ( $ name ) ) { return $ name ; } list ( $ className , $ method ) = explode ( '::' , $ name , 2 ) ; return array ( new $ className , $ method ) ; }
Creates an instance and returns the callable array to execute it.
Creates an instance and returns the callable array to execute it .