Skip to content

Commit

Permalink
[SecurityBundle] disable the init:acl command if ACL is not used
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobion committed Nov 26, 2015
1 parent fd140fc commit 55f84a3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Symfony/Bundle/SecurityBundle/Command/InitAclCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@
*/
class InitAclCommand extends ContainerAwareCommand
{
/**
* {@inheritdoc}
*/
public function isEnabled()
{
if (!$this->getContainer()->has('security.acl.dbal.connection')) {
return false;
}

return parent::isEnabled();
}

/**
* {@inheritdoc}
*/
Expand Down

0 comments on commit 55f84a3

Please sign in to comment.