Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Runtime.php
Go to the documentation of this file.
1 <?php
9 
11 {
15  protected $_definitions = [];
16 
20  private $_reader;
21 
25  public function __construct(\Magento\Framework\Code\Reader\ClassReaderInterface $reader = null)
26  {
27  $this->_reader = $reader ?: new \Magento\Framework\Code\Reader\ClassReader();
28  }
29 
46  public function getParameters($className)
47  {
48  if (!array_key_exists($className, $this->_definitions)) {
49  $this->_definitions[$className] = $this->_reader->getConstructor($className);
50  }
51  return $this->_definitions[$className];
52  }
53 
59  public function getClasses()
60  {
61  return [];
62  }
63 }
__construct(\Magento\Framework\Code\Reader\ClassReaderInterface $reader=null)
Definition: Runtime.php:25
if($currentSelectedMethod==$_code) $className
Definition: form.phtml:31