I am learning magento 2.1 request flow.
I am stuck here:
$frontController = $this->_objectManager->get('Magento\Framework\App\FrontControllerInterface');
$result = $frontController->dispatch($this->_request);
I can't find dispatch
function.
if I go to vendor/magento/framework/App/FrontController.php
dispatch
function and add die('ok')
it doesn't get executed:
public function dispatch(RequestInterface $request)
{
die("ok"); /* doesn't get executed */
\Magento\Framework\Profiler::start('routers_match');
if I add:
die(get_class($frontController));
to vendor/magento/framework/App/Http.php
launch
:
$frontController = $this->_objectManager->get('Magento\Framework\App\FrontControllerInterface');
die(get_class($frontController));
$result = $frontController->dispatch($this->_request);
I get Magento\Framework\App\FrontController\Interceptor
but where is Magento\Framework\App\FrontController\Interceptor
?
there is no vendor/magento/framework/App/FrontController/Interceptor.php
obviously I am missing something - would appreciate an insight from an expert.