src/Http/Kernel.php
/**
	 * Looks for a matching route and stores it in the kernel. This must be called before you can execute the kernel
	 * and run the route. Returns a route on success, null if not found, and false if a redirection took place.
	 *
	 * @return Route|null|false
	 */
Looks for a matching route and stores it in the kernel. This must be called before you can execute the kernel
and run the route. Returns a route on success, null if not found, and false if a redirection took place.

@return Route|null|false
Looks for a matching route and stores it in the kernel . This must be called before you can execute the kernel and run the route . Returns a route on success null if not found and false if a redirection took place . @return Route|null|false
private function match() {
		Profiler::start('router:match');
		$route = RouteLoader::getRouter()->match($this->request);
		if (is_null($route)) {
			if (!$this->tryDirectoryRedirect()) {
				$this->handleException(new HttpResponseException(404));
				return null;
			}
			return false;
		}
		$this->request->bind($route);
		Profiler::stop('router:match');
		return $route;
	}
private function match ( ) { Profiler :: start ( 'router:match' ) ; $ route = RouteLoader :: getRouter ( ) -> match ( $ this -> request ) ; if ( is_null ( $ route ) ) { if ( ! $ this -> tryDirectoryRedirect ( ) ) { $ this -> handleException ( new HttpResponseException ( 404 ) ) ; return null ; } return false ; } $ this -> request -> bind ( $ route ) ; Profiler :: stop ( 'router:match' ) ; return $ route ; }
Looks for a matching route and stores it in the kernel.
Looks for a matching route and stores it in the kernel .
// Show a 404 if not found // Bind the route to the request