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
ObjectManager
ConfigLoader
Compiled.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Framework\App\ObjectManager\ConfigLoader
;
8
9
use
Magento\Framework\App\Filesystem\DirectoryList
;
10
use
Magento\Framework\ObjectManager\ConfigLoaderInterface
;
11
use
Magento\Framework\Serialize\SerializerInterface
;
12
use
Magento\Framework\Serialize\Serializer\Serialize
;
13
14
class
Compiled
implements
ConfigLoaderInterface
15
{
21
private
$configCache = [];
22
26
public
function
load
($area)
27
{
28
if
(isset($this->configCache[$area])) {
29
return
$this->configCache[$area];
30
}
31
$diConfiguration = include(self::getFilePath($area));
32
$this->configCache[$area] = $diConfiguration;
33
return
$this->configCache[$area];
34
}
35
42
public
static
function
getFilePath
($area)
43
{
44
$diPath =
DirectoryList::getDefaultConfig
()[
DirectoryList::GENERATED_METADATA
][
DirectoryList::PATH
];
45
return
BP
.
'/'
. $diPath .
'/'
. $area .
'.php'
;
46
}
47
}
Magento\Framework\ObjectManager\ConfigLoaderInterface
Definition:
ConfigLoaderInterface.php:12
Magento\Framework\App\Filesystem\DirectoryList\getDefaultConfig
static getDefaultConfig()
Definition:
DirectoryList.php:141
Magento\Framework\Serialize\SerializerInterface
Definition:
SerializerInterface.php:14
Magento\Framework\App\ObjectManager\ConfigLoader\Compiled\getFilePath
static getFilePath($area)
Definition:
Compiled.php:42
Magento\Framework\Serialize\Serializer\Serialize
Definition:
Serialize.php:14
Magento\Framework\App\ObjectManager\ConfigLoader\Compiled\load
load($area)
Definition:
Compiled.php:26
Magento\Framework\App\ObjectManager\ConfigLoader\Compiled
Definition:
Compiled.php:14
Magento\Framework\App\Filesystem\DirectoryList\GENERATED_METADATA
const GENERATED_METADATA
Definition:
DirectoryList.php:136
Magento\Framework\App\Filesystem\DirectoryList
Definition:
DirectoryList.php:13
Magento\Framework\App\ObjectManager\ConfigLoader
Definition:
Compiled.php:7
BP
const BP
Definition:
autoload.php:14
Magento\Framework\Filesystem\DirectoryList\PATH
const PATH
Definition:
DirectoryList.php:29