Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
228
Merge Requests
228
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
075cd952
Unverified
Commit
075cd952
authored
May 29, 2020
by
alexpott
2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#3143085
by neclimdul: Define and optimize alias definition in OptimizedPhpArrayDumper
parent
b5fa6958
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
core/lib/Drupal/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumper.php
...nt/DependencyInjection/Dumper/OptimizedPhpArrayDumper.php
+9
-1
No files found.
core/lib/Drupal/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumper.php
View file @
075cd952
...
@@ -46,6 +46,13 @@ class OptimizedPhpArrayDumper extends Dumper {
...
@@ -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 @@ public function dump(array $options = []) {
...
@@ -61,8 +68,9 @@ public function dump(array $options = []) {
*/
*/
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
();
...
...
alexpott
@alexpott
mentioned in commit
1467e54d
·
May 29, 2020
mentioned in commit
1467e54d
mentioned in commit 1467e54db48da726e4f46cedad9bec335dcc7767
Toggle commit list
alexpott
@alexpott
mentioned in commit
a6faaa96
·
May 29, 2020
mentioned in commit
a6faaa96
mentioned in commit a6faaa96aefa288314cf9e3a890b3eecde826506
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment