Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 28bdc87

Browse filesBrowse files
committed
s/previousRenamedId/innerServiceId/
1 parent 640522f commit 28bdc87
Copy full SHA for 28bdc87

File tree

3 files changed

+3
-3
lines changed
Filter options

3 files changed

+3
-3
lines changed

‎src/Symfony/Component/DependencyInjection/Compiler/AutowirePass.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Compiler/AutowirePass.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ private function doProcessValue($value, $isRoot = false)
137137
*/
138138
private function autowireCalls(\ReflectionClass $reflectionClass, bool $isRoot): array
139139
{
140-
if ($isRoot && ($definition = $this->container->getDefinition($this->currentId)) && $this->container->has($this->decoratedId = $definition->previousRenamedId)) {
140+
if ($isRoot && ($definition = $this->container->getDefinition($this->currentId)) && $this->container->has($this->decoratedId = $definition->innerServiceId)) {
141141
$this->decoratedClass = $this->container->findDefinition($this->decoratedId)->getClass();
142142
} else {
143143
$this->decoratedId = null;

‎src/Symfony/Component/DependencyInjection/Compiler/DecoratorServicePass.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Compiler/DecoratorServicePass.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function process(ContainerBuilder $container)
4343
if (!$renamedId) {
4444
$renamedId = $id.'.inner';
4545
}
46-
$definition->previousRenamedId = $renamedId;
46+
$definition->innerServiceId = $renamedId;
4747

4848
// we create a new alias/service for the service we are replacing
4949
// to be able to reference it in the new one

‎src/Symfony/Component/DependencyInjection/Definition.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Definition.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class Definition
5454
*
5555
* Used to store the name of the renamed id when using service decoration together with autowiring
5656
*/
57-
public $previousRenamedId;
57+
public $innerServiceId;
5858

5959
/**
6060
* @param string|null $class The service class

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.