![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/magento/framework/App/Config/ |
<?php /** * Abstract configuration class * Used to retrieve core configuration values * * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Framework\App\Config; class Base extends \Magento\Framework\Simplexml\Config { /** * List of instances * * @var Base[] */ public static $instances = []; /** * @param \Magento\Framework\Simplexml\Element|string $sourceData $sourceData */ public function __construct($sourceData = null) { $this->_elementClass = \Magento\Framework\App\Config\Element::class; parent::__construct($sourceData); self::$instances[] = $this; } /** * Cleanup objects because of simplexml memory leak * * @return void */ public static function destroy() { if (is_array(self::$instances)) { foreach (self::$instances as $instance) { $instance->_xml = null; } } self::$instances = []; } }