Skip to content

Commit 21eb340

Browse files
[Security] remove remaining FQCN service ids
1 parent 9619815 commit 21eb340

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
namespace Symfony\Bundle\SecurityBundle\DependencyInjection;
1313

14-
use Symfony\Bundle\SecurityBundle\Command\InitAclCommand;
15-
use Symfony\Bundle\SecurityBundle\Command\SetAclCommand;
1614
use Symfony\Bundle\SecurityBundle\DependencyInjection\Security\Factory\SecurityFactoryInterface;
1715
use Symfony\Bundle\SecurityBundle\DependencyInjection\Security\UserProvider\UserProviderFactoryInterface;
1816
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
@@ -128,8 +126,8 @@ public function load(array $configs, ContainerBuilder $container)
128126
if (isset($config['acl'])) {
129127
$this->aclLoad($config['acl'], $container);
130128
} else {
131-
$container->removeDefinition(InitAclCommand::class);
132-
$container->removeDefinition(SetAclCommand::class);
129+
$container->removeDefinition('security.command.init_acl');
130+
$container->removeDefinition('security.command.set_acl');
133131
}
134132

135133
$container->registerForAutoconfiguration(VoterInterface::class)

src/Symfony/Bundle/SecurityBundle/Resources/config/console.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
<services>
88
<defaults public="false" />
99

10-
<service id="Symfony\Bundle\SecurityBundle\Command\InitAclCommand">
10+
<service id="security.command.init_acl" class="Symfony\Bundle\SecurityBundle\Command\InitAclCommand">
1111
<argument type="service" id="security.acl.dbal.connection" />
1212
<argument type="service" id="security.acl.dbal.schema" />
1313
<tag name="console.command" command="init:acl" />
1414
</service>
1515

16-
<service id="Symfony\Bundle\SecurityBundle\Command\SetAclCommand">
16+
<service id="security.command.set_acl" class="Symfony\Bundle\SecurityBundle\Command\SetAclCommand">
1717
<argument type="service" id="security.acl.provider" />
1818
<tag name="console.command" command="acl:set" />
1919
</service>

0 commit comments

Comments
 (0)