Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework
App
Router
NoRouteHandler.php
Go to the documentation of this file.
1
<?php
8
namespace
Magento\Framework\App\Router
;
9
10
class
NoRouteHandler
implements
\Magento\Framework\App\Router\NoRouteHandlerInterface
11
{
15
protected
$_config
;
16
20
public
function
__construct
(\
Magento
\Framework\
App
\
Config
\
ScopeConfigInterface
$config
)
21
{
22
$this->_config =
$config
;
23
}
24
32
public
function
process
(\
Magento
\Framework\
App
\
RequestInterface
$request
)
33
{
34
$noRoutePath = $this->_config->getValue(
'web/default/no_route'
,
'default'
);
35
36
if
($noRoutePath) {
37
$noRoute = explode(
'/'
, $noRoutePath);
38
}
else
{
39
$noRoute = [];
40
}
41
42
$moduleName = isset($noRoute[0]) ? $noRoute[0] :
'core'
;
43
$actionPath = isset($noRoute[1]) ? $noRoute[1] :
'index'
;
44
$actionName = isset($noRoute[2]) ? $noRoute[2] :
'index'
;
45
46
$request
->setModuleName($moduleName)->setControllerName($actionPath)->setActionName($actionName);
47
48
return
true
;
49
}
50
}
Magento\Framework\App\Router\NoRouteHandler
Definition:
NoRouteHandler.php:10
Magento\Framework\App
$config
$config
Definition:
fraud_order.php:17
Magento\Framework\App\Router\NoRouteHandler\process
process(\Magento\Framework\App\RequestInterface $request)
Definition:
NoRouteHandler.php:32
Magento\Framework\App\Router\NoRouteHandler\$_config
$_config
Definition:
NoRouteHandler.php:15
Magento\Framework\App\Router\NoRouteHandlerInterface
Definition:
NoRouteHandlerInterface.php:14
Magento\Framework\App\Router\NoRouteHandler\__construct
__construct(\Magento\Framework\App\Config\ScopeConfigInterface $config)
Definition:
NoRouteHandler.php:20
Magento\Framework\App\RequestInterface
Definition:
RequestInterface.php:14
Magento
$request
$request
Definition:
quote_with_configurable_product_last_variation.php:22
Magento\Framework\App\Config
Definition:
Config.php:17
Magento\Framework\App\Router
Definition:
ActionList.php:7
Magento\Framework\App\Config\ScopeConfigInterface
Definition:
ScopeConfigInterface.php:15