Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
DefaultRouter.php
Go to the documentation of this file.
1 <?php
9 
14 
16 {
21 
25  protected $actionFactory;
26 
32  {
33  $this->actionFactory = $actionFactory;
34  $this->noRouteHandlerList = $noRouteHandlerList;
35  }
36 
43  public function match(RequestInterface $request)
44  {
45  foreach ($this->noRouteHandlerList->getHandlers() as $noRouteHandler) {
46  if ($noRouteHandler->process($request)) {
47  break;
48  }
49  }
50 
51  return $this->actionFactory->create(\Magento\Framework\App\Action\Forward::class);
52  }
53 }
__construct(ActionFactory $actionFactory, NoRouteHandlerList $noRouteHandlerList)