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
Asset
SourceFileGeneratorPool.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Framework\View\Asset
;
8
14
class
SourceFileGeneratorPool
15
{
21
private
$fileGeneratorTypes;
22
28
public
function
__construct
(array $fileGeneratorTypes = [])
29
{
30
$this->fileGeneratorTypes = $fileGeneratorTypes;
31
}
32
40
public
function
create
($generatorType)
41
{
42
if
(!$this->fileGeneratorTypes[$generatorType]) {
43
throw
new \LogicException(
'Wrong file generator type!'
);
44
}
45
46
return
$this->fileGeneratorTypes[$generatorType];
47
}
48
}
Magento\Framework\View\Asset\SourceFileGeneratorPool
Definition:
SourceFileGeneratorPool.php:14
Magento\Framework\View\Asset\SourceFileGeneratorPool\create
create($generatorType)
Definition:
SourceFileGeneratorPool.php:40
Magento\Framework\View\Asset
Definition:
AssetInterface.php:6
Magento\Framework\View\Asset\SourceFileGeneratorPool\__construct
__construct(array $fileGeneratorTypes=[])
Definition:
SourceFileGeneratorPool.php:28