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
ActionFactory.php
Go to the documentation of this file.
1
<?php
9
namespace
Magento\Framework\App
;
10
15
class
ActionFactory
16
{
20
protected
$_objectManager
;
21
25
public
function
__construct
(\
Magento
\Framework\
ObjectManagerInterface
$objectManager
)
26
{
27
$this->_objectManager =
$objectManager
;
28
}
29
37
public
function
create
($actionName)
38
{
39
if
(!
is_subclass_of
($actionName, \
Magento
\Framework\
App
\ActionInterface::class)) {
40
throw
new \InvalidArgumentException(
41
'The action name provided is invalid. Verify the action name and try again.'
42
);
43
}
44
return
$this->_objectManager->create($actionName);
45
}
46
}
Magento\Framework\App
Magento\Setup\Model\is_subclass_of
is_subclass_of($obj, $className)
Definition:
UninstallCollectorTest.php:98
$objectManager
$objectManager
Definition:
bootstrap.php:17
Magento\Framework\App\ActionFactory\__construct
__construct(\Magento\Framework\ObjectManagerInterface $objectManager)
Definition:
ActionFactory.php:25
Magento\Framework\ObjectManagerInterface
Definition:
ObjectManagerInterface.php:12
Magento\Framework\App\ActionFactory
Definition:
ActionFactory.php:15
Magento
Magento\Framework\App\ActionFactory\$_objectManager
$_objectManager
Definition:
ActionFactory.php:20
Magento\Framework\App\ActionFactory\create
create($actionName)
Definition:
ActionFactory.php:37