소스 검색

[SecurityBundle] added short description and help for the init:acl command.

Hugo Hamon 14 년 전
부모
커밋
e16ccaac71
1개의 변경된 파일13개의 추가작업 그리고 1개의 파일을 삭제
  1. 13 1
      src/Symfony/Bundle/SecurityBundle/Command/InitAclCommand.php

+ 13 - 1
src/Symfony/Bundle/SecurityBundle/Command/InitAclCommand.php

@@ -31,7 +31,19 @@ class InitAclCommand extends ContainerAwareCommand
     {
         $this
             ->setName('init:acl')
-        ;
+            ->setDescription('Mounts ACL tables in the database')
+            ->setHelp(<<<EOT
+The <info>init:acl</info> command mounts ACL tables in the database.
+
+<info>php app/console ini:acl</info>
+
+The name of the DBAL connection must be configured in your <info>app/config/security.yml</info> configuration file in the <info>security.acl.connection</info> variable.
+
+<info>security:
+    acl:
+        connection: default</info>
+EOT
+            );
     }
 
     /**