Issue #3143085 by neclimdul: Define and optimize alias definition in OptimizedPhpArrayDumper
parent
b5fa69586c
commit
075cd95226
|
@ -46,6 +46,13 @@ class OptimizedPhpArrayDumper extends Dumper {
|
||||||
*/
|
*/
|
||||||
protected $serialize = TRUE;
|
protected $serialize = TRUE;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A list of container aliases.
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
|
protected $aliases;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
@ -61,8 +68,9 @@ class OptimizedPhpArrayDumper extends Dumper {
|
||||||
*/
|
*/
|
||||||
public function getArray() {
|
public function getArray() {
|
||||||
$definition = [];
|
$definition = [];
|
||||||
|
// Warm aliases first.
|
||||||
$this->aliases = $this->getAliases();
|
$this->aliases = $this->getAliases();
|
||||||
$definition['aliases'] = $this->getAliases();
|
$definition['aliases'] = $this->aliases;
|
||||||
$definition['parameters'] = $this->getParameters();
|
$definition['parameters'] = $this->getParameters();
|
||||||
$definition['services'] = $this->getServiceDefinitions();
|
$definition['services'] = $this->getServiceDefinitions();
|
||||||
$definition['frozen'] = $this->container->isCompiled();
|
$definition['frozen'] = $this->container->isCompiled();
|
||||||
|
|
Loading…
Reference in New Issue