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
module-backend
Model
Menu
Builder
CommandFactory.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Backend\Model\Menu\Builder
;
7
13
class
CommandFactory
14
{
18
protected
$_objectManager
;
19
23
public
function
__construct
(\
Magento
\Framework\
ObjectManagerInterface
$objectManager
)
24
{
25
$this->_objectManager =
$objectManager
;
26
}
27
35
public
function
create
($commandName, array
$data
= [])
36
{
37
return
$this->_objectManager->create(
38
'Magento\Backend\Model\Menu\Builder\Command\\'
. ucfirst($commandName),
39
$data
40
);
41
}
42
}
$objectManager
$objectManager
Definition:
bootstrap.php:17
Magento\Framework\ObjectManagerInterface
Definition:
ObjectManagerInterface.php:12
Magento\Backend\Model\Menu\Builder
Definition:
AbstractCommand.php:6
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Backend\Model\Menu\Builder\CommandFactory\create
create($commandName, array $data=[])
Definition:
CommandFactory.php:35
Magento\Backend\Model\Menu\Builder\CommandFactory\__construct
__construct(\Magento\Framework\ObjectManagerInterface $objectManager)
Definition:
CommandFactory.php:23
Magento
Magento\Backend\Model\Menu\Builder\CommandFactory\$_objectManager
$_objectManager
Definition:
CommandFactory.php:18
Magento\Backend\Model\Menu\Builder\CommandFactory
Definition:
CommandFactory.php:13