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
Translate
Inline
ParserFactory.php
Go to the documentation of this file.
1
<?php
8
namespace
Magento\Framework\Translate\Inline
;
9
10
class
ParserFactory
11
{
15
const
DEFAULT_INSTANCE_TYPE
= \Magento\Framework\Translate\Inline\ParserInterface::class;
16
22
protected
$_objectManager
;
23
28
public
function
__construct
(\
Magento
\Framework\
ObjectManagerInterface
$objectManager
)
29
{
30
$this->_objectManager =
$objectManager
;
31
}
32
38
public
function
get
()
39
{
40
return
$this->_objectManager->get(self::DEFAULT_INSTANCE_TYPE);
41
}
42
47
public
function
create
(array
$arguments
= [])
48
{
49
return
$this->_objectManager->create(self::DEFAULT_INSTANCE_TYPE,
$arguments
);
50
}
51
}
Magento\Framework\Translate\Inline\ParserFactory\__construct
__construct(\Magento\Framework\ObjectManagerInterface $objectManager)
Definition:
ParserFactory.php:28
Magento\Framework\Translate\Inline
Definition:
ConfigInterface.php:6
$objectManager
$objectManager
Definition:
bootstrap.php:17
Magento\Framework\ObjectManagerInterface
Definition:
ObjectManagerInterface.php:12
Magento\Framework\Translate\Inline\ParserFactory\DEFAULT_INSTANCE_TYPE
const DEFAULT_INSTANCE_TYPE
Definition:
ParserFactory.php:15
Magento
Magento\Framework\Translate\Inline\ParserFactory\create
create(array $arguments=[])
Definition:
ParserFactory.php:47
$arguments
$arguments
Definition:
final_price.phtml:24
Magento\Framework\Translate\Inline\ParserFactory\$_objectManager
$_objectManager
Definition:
ParserFactory.php:22
Magento\Framework\Translate\Inline\ParserFactory
Definition:
ParserFactory.php:10