Skip to content

Commit 586bd1f

Browse files
committed
Fixed some naming conventions in cookbook/bundles
1 parent b80186e commit 586bd1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cookbook/bundles/override.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class is always overridden when your bundle is used, or you need to modify
7070
something beyond just the class name, you should use a compiler pass::
7171

7272
// src/Acme/FooBundle/DependencyInjection/Compiler/OverrideServiceCompilerPass.php
73-
namespace Acme\FooBundle\DependencyInjection\Compiler;
73+
namespace Acme\DemoBundle\DependencyInjection\Compiler;
7474

7575
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
7676
use Symfony\Component\DependencyInjection\ContainerBuilder;
@@ -80,7 +80,7 @@ something beyond just the class name, you should use a compiler pass::
8080
public function process(ContainerBuilder $container)
8181
{
8282
$definition = $container->getDefinition('original-service-id');
83-
$definition->setClass('Foo\BarBundle\YourService');
83+
$definition->setClass('Acme\DemoBundle\YourService');
8484
}
8585
}
8686

0 commit comments

Comments
 (0)