diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddSecurityVotersPass.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddSecurityVotersPass.php index ff88c6069a21a..7fc80e4977707 100644 --- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddSecurityVotersPass.php +++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddSecurityVotersPass.php @@ -57,7 +57,7 @@ public function process(ContainerBuilder $container) if ($debug) { // Decorate original voters with TraceableVoter - $debugVoterServiceId = '.debug.security.voter.'.$voterServiceId; + $debugVoterServiceId = 'debug.security.voter.'.$voterServiceId; $container ->register($debugVoterServiceId, TraceableVoter::class) ->setDecoratedService($voterServiceId) diff --git a/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Compiler/AddSecurityVotersPassTest.php b/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Compiler/AddSecurityVotersPassTest.php index 82f89ac422ee0..ecc9717d4f32f 100644 --- a/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Compiler/AddSecurityVotersPassTest.php +++ b/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Compiler/AddSecurityVotersPassTest.php @@ -95,13 +95,13 @@ public function testThatVotersAreDecoratedInDebugMode(): void $compilerPass = new AddSecurityVotersPass(); $compilerPass->process($container); - $def1 = $container->getDefinition('.debug.security.voter.voter1'); + $def1 = $container->getDefinition('debug.security.voter.voter1'); $this->assertEquals(array('voter1', null, 0), $def1->getDecoratedService(), 'voter1: wrong return from getDecoratedService'); - $this->assertEquals(new Reference('.debug.security.voter.voter1.inner'), $def1->getArgument(0), 'voter1: wrong decorator argument'); + $this->assertEquals(new Reference('debug.security.voter.voter1.inner'), $def1->getArgument(0), 'voter1: wrong decorator argument'); - $def2 = $container->getDefinition('.debug.security.voter.voter2'); + $def2 = $container->getDefinition('debug.security.voter.voter2'); $this->assertEquals(array('voter2', null, 0), $def2->getDecoratedService(), 'voter2: wrong return from getDecoratedService'); - $this->assertEquals(new Reference('.debug.security.voter.voter2.inner'), $def2->getArgument(0), 'voter2: wrong decorator argument'); + $this->assertEquals(new Reference('debug.security.voter.voter2.inner'), $def2->getArgument(0), 'voter2: wrong decorator argument'); $voters = $container->findTaggedServiceIds('security.voter'); $this->assertCount(2, $voters, 'Incorrect count of voters'); 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