23 private $actionFactory;
45 $this->actionFactory = $actionFactory;
46 $this->actionList = $actionList;
47 $this->routeConfig = $routeConfig;
58 $identifier = trim(
$request->getPathInfo(),
'/');
59 if ($identifier !==
'robots.txt') {
63 $modules = $this->routeConfig->getModulesByFrontName(
'robots');
64 if (empty($modules)) {
68 $actionClassName = $this->actionList->get($modules[0],
null,
'index',
'index');
69 $actionInstance = $this->actionFactory->create($actionClassName);
70 return $actionInstance;
__construct(ActionFactory $actionFactory, ActionList $actionList, ConfigInterface $routeConfig)
match(RequestInterface $request)