/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
lib/internal/Magento/Framework/App/Config/Base.php
44 строки
1003 B
Alexandra Zota
ACP2E-4019: CE copyright updates for 2.4.9-beta1
22 окт 2025, 17:47
22 окт 2025, 17:47
1b769b7
Код
Авторство
О чём код?
<?php /** * Abstract configuration class * Used to retrieve core configuration values * * Copyright 2014 Adobe * All Rights Reserved. */ 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 = []; } }