/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
setup/src/Magento/Setup/Model/PhpInformation.php
52 строки
1020 B
Alexandra Zota
ACP2E-4019: CE copyright updates for 2.4.9-beta1
22 окт 2025, 11:23
22 окт 2025, 11:23
6c2f6e6
Код
Авторство
О чём код?
<?php /** * Copyright 2015 Adobe * All Rights Reserved. */ namespace Magento\Setup\Model; /** * Class PhpInformation * * Provides information and checks about the current and required PHP settings. */ class PhpInformation { /** * Allowed XDebug nested level */ const XDEBUG_NESTED_LEVEL = 200; /** * List of currently installed extensions * * @var array */ protected $current = []; /** * Returns minimum required XDebug nested level * @return int */ public function getRequiredMinimumXDebugNestedLevel() { return self::XDEBUG_NESTED_LEVEL; } /** * Retrieve list of currently installed extensions * * @return array */ public function getCurrent() { if (!$this->current) { $this->current = array_map(function ($ext) { return str_replace(' ', '-', strtolower($ext)); }, get_loaded_extensions()); } return $this->current; } }