Преглед изворни кода

[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
+            );
     }
 
     /**