Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Compiled.php
Go to the documentation of this file.
1 <?php
8 
13 
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  {
45  return BP . '/' . $diPath . '/' . $area . '.php';
46  }
47 }
const BP
Definition: autoload.php:14