Просмотр исходного кода

Use ContainerAwareCommand instead of Command

Michael Pedersen 14 лет назад
Родитель
Сommit
6e806ee57d
3 измененных файлов с 6 добавлено и 6 удалено
  1. 2 2
      Command/ExplainAdminCommand.php
  2. 2 2
      Command/ListAdminCommand.php
  3. 2 2
      Command/SetupAclCommand.php

+ 2 - 2
Command/ExplainAdminCommand.php

@@ -11,14 +11,14 @@
 
 namespace Sonata\AdminBundle\Command;
 
-use Symfony\Bundle\FrameworkBundle\Command\Command;
+use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
 use Symfony\Component\Console\Input\InputArgument;
 use Symfony\Component\Console\Input\InputOption;
 use Symfony\Component\Console\Input\InputInterface;
 use Symfony\Component\Console\Output\OutputInterface;
 use Symfony\Component\Console\Output\Output;
 
-class ExplainAdminCommand extends Command
+class ExplainAdminCommand extends ContainerAwareCommand
 {
 
     public function configure()

+ 2 - 2
Command/ListAdminCommand.php

@@ -11,14 +11,14 @@
 
 namespace Sonata\AdminBundle\Command;
 
-use Symfony\Bundle\FrameworkBundle\Command\Command;
+use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
 use Symfony\Component\Console\Input\InputArgument;
 use Symfony\Component\Console\Input\InputOption;
 use Symfony\Component\Console\Input\InputInterface;
 use Symfony\Component\Console\Output\OutputInterface;
 use Symfony\Component\Console\Output\Output;
 
-class ListAdminCommand extends Command
+class ListAdminCommand extends ContainerAwareCommand
 {
 
     public function configure()

+ 2 - 2
Command/SetupAclCommand.php

@@ -11,7 +11,7 @@
 
 namespace Sonata\AdminBundle\Command;
 
-use Symfony\Bundle\FrameworkBundle\Command\Command;
+use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
 use Symfony\Component\Console\Input\InputArgument;
 use Symfony\Component\Console\Input\InputOption;
 use Symfony\Component\Console\Input\InputInterface;
@@ -26,7 +26,7 @@ use Symfony\Component\Security\Acl\Exception\AclNotFoundException;
 use Symfony\Component\Security\Acl\Domain\ObjectIdentity;
 use Sonata\AdminBundle\Security\Handler\AclSecurityHandler;
 
-class SetupAclCommand extends Command
+class SetupAclCommand extends ContainerAwareCommand
 {
     public function configure()
     {