Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Attributes
FrontController Class Reference
Inheritance diagram for FrontController:
FrontControllerInterface

Public Member Functions

 __construct (RouterListInterface $routerList, ResponseInterface $response, ?RequestValidator $requestValidator=null, ?MessageManager $messageManager=null, ?LoggerInterface $logger=null)
 
- Public Member Functions inherited from FrontControllerInterface
 dispatch (RequestInterface $request)
 

Protected Attributes

 $_routerList
 
 $response
 

Detailed Description

@SuppressWarnings(PHPMD.CouplingBetweenObjects)

Definition at line 22 of file FrontController.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( RouterListInterface  $routerList,
ResponseInterface  $response,
?RequestValidator  $requestValidator = null,
?MessageManager  $messageManager = null,
?LoggerInterface  $logger = null 
)
Parameters
RouterListInterface$routerList
ResponseInterface$response
RequestValidator | null$requestValidator
MessageManager | null$messageManager
LoggerInterface | null$logger

Definition at line 61 of file FrontController.php.

67  {
68  $this->_routerList = $routerList;
69  $this->response = $response;
70  $this->requestValidator = $requestValidator
71  ?? ObjectManager::getInstance()->get(RequestValidator::class);
72  $this->messages = $messageManager
73  ?? ObjectManager::getInstance()->get(MessageManager::class);
74  $this->logger = $logger
75  ?? ObjectManager::getInstance()->get(LoggerInterface::class);
76  }

Field Documentation

◆ $_routerList

$_routerList
protected

Definition at line 27 of file FrontController.php.

◆ $response

$response
protected

Definition at line 32 of file FrontController.php.


The documentation for this class was generated from the following file: