8000 [DependencyInjection] Minor fixes · romainneutron/symfony@d727be1 · GitHub
[go: up one dir, main page]

Skip to content

Commit d727be1

Browse files
committed
[DependencyInjection] Minor fixes
1 parent 64dcd0a commit d727be1

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Component\DependencyInjection\Compiler;
1313

14-
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
1514
use Symfony\Component\DependencyInjection\ContainerBuilder;
1615
use Symfony\Component\DependencyInjection\Alias;
1716

@@ -32,7 +31,7 @@ public function process(ContainerBuilder $container)
3231

3332
list ($decorated, $renamedId) = $decorated;
3433
if (!$renamedId) {
35-
$renamedId = $id.'.inner';
34+
$renamedId = $id.'.parent';
3635
}
3736

3837
// we create a new alias/service for the service we are replacing

src/Symfony/Component/DependencyInjection/Definition.php

Lines changed: 1 addition & 1 deletion
< 5750 td data-grid-cell-id="diff-22cc6207d0b7dfbcab4113c060cbda0533da54df0452d2310d7ca8e26f8fc086-85-85-0" data-selected="false" role="gridcell" style="background-color:var(--bgColor-default);text-align:center" tabindex="-1" valign="top" class="focusable-grid-cell diff-line-number position-relative diff-line-number-neutral left-side">85
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function setDecoratedService($id, $renamedId = null)
8383
/**
8484
* Gets the service that decorates this service.
85
*
86-
* @return array An array composed of the decorated service id and the new id for it
86+
* @return null|array An array composed of the decorated service id and the new id for it, null if no service is decorated
8787
*/
8888
public function getDecoratedService()
8989
{

0 commit comments

Comments
 (0)
0