예제 #1
0
파일: Kernel.php 프로젝트: xxoxx/php-waf
 /**
  * {@inheritDoc}
  */
 public function handleRequest(Request $request)
 {
     $match = $this->router->match($request);
     if ($match === null) {
         throw new HttpNotFoundException('No route matches the request.');
     }
     $controller = $this->instantiator->instantiate($match->controller);
     return $this->actionDispatcher->dispatch($request, $match, $controller);
 }
예제 #2
0
 /**
  * {@inheritDoc}
  */
 public function getPattern()
 {
     return $this->router->getPattern();
 }