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
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.
8585
*
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy