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
View
TemplateEnginePool.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\View
;
7
12
class
TemplateEnginePool
13
{
19
protected
$factory
;
20
26
protected
$engines
= [];
27
33
public
function
__construct
(
TemplateEngineFactory
$factory
)
34
{
35
$this->factory =
$factory
;
36
}
37
44
public
function
get
(
$name
)
45
{
46
if
(!isset($this->engines[
$name
])) {
47
$this->engines[
$name
] = $this->factory->create(
$name
);
48
}
49
return
$this->engines[
$name
];
50
}
51
}
Magento\Framework\View\TemplateEnginePool\$engines
$engines
Definition:
TemplateEnginePool.php:26
Magento\Framework\View\TemplateEnginePool
Definition:
TemplateEnginePool.php:12
Magento\Framework\View\TemplateEnginePool\$factory
$factory
Definition:
TemplateEnginePool.php:19
Magento\Framework\View\TemplateEngineFactory
Definition:
TemplateEngineFactory.php:13
Magento\Framework\View
Magento\Framework\View\TemplateEnginePool\__construct
__construct(TemplateEngineFactory $factory)
Definition:
TemplateEnginePool.php:33
$name
if(!isset($_GET['name'])) $name
Definition:
log.php:14