/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
lib/internal/Magento/Framework/ObjectManager/Definition/Runtime.php
75 строк
2 KB
Alexandra Zota
ACP2E-4019: CE copyright updates for 2.4.9-beta1
22 окт 2025, 17:47
22 окт 2025, 17:47
1b769b7
Код
Авторство
О чём код?
<?php /** * Copyright 2014 Adobe * All Rights Reserved. */ namespace Magento\Framework\ObjectManager\Definition; /** * Runtime class definitions. \Reflection is used to parse constructor signatures. Should be used only in dev mode. */ class Runtime implements \Magento\Framework\ObjectManager\DefinitionInterface { /** * @var array */ protected $_definitions = []; /** * @var \Magento\Framework\Code\Reader\ClassReaderInterface */ private $_reader; /** * @param \Magento\Framework\Code\Reader\ClassReaderInterface $reader */ public function __construct(?\Magento\Framework\Code\Reader\ClassReaderInterface $reader = null) { $this->_reader = $reader ?: new \Magento\Framework\Code\Reader\ClassReader(); } /** * Get list of method parameters * * Retrieve an ordered list of constructor parameters. * Each value is an array with following entries: * * array( * 0, // string: Parameter name * 1, // string|null: Parameter type * 2, // bool: whether this param is required * 3, // mixed: default value * ); * * @param string $className * @return array|null */ public function getParameters($className) { if (!isset($this->_definitions[$className])) { $this->_definitions[$className] = $this->_reader->getConstructor($className); } return $this->_definitions[$className]; } /** * Retrieve list of all classes covered with definitions * * @return array */ public function getClasses() { return []; } /** * Disable show internals with var_dump * * @see https://www.php.net/manual/en/language.oop5.magic.php#object.debuginfo * @return array */ public function __debugInfo() { return []; } }