Forráskód Böngészése

Updated console docs:
* added short note about sonata:admin:generate-object-acl
* updated inline documentation in GenerateObjectAclCommand.php

Christian Morgan 11 éve
szülő
commit
a85d777a1c

+ 3 - 3
Command/GenerateObjectAclCommand.php

@@ -37,7 +37,7 @@ class GenerateObjectAclCommand extends ContainerAwareCommand
             ->setDescription('Install ACL for the objects of the Admin Classes.')
             ->addOption('object_owner', null, InputOption::VALUE_OPTIONAL, 'If set, the task will set the object owner for each admin.')
             ->addOption('user_entity', null, InputOption::VALUE_OPTIONAL, 'Shortcut notation like <comment>AcmeDemoBundle:User</comment>. If not set, it will be asked the first time an object owner is set.')
-            ->addOption('step', null, InputOption::VALUE_NONE, 'If set, the task will ask for each admin if the ACLs need to be generated and if and what object owner to set.')
+            ->addOption('step', null, InputOption::VALUE_NONE, 'If set, the task will ask for each admin if the ACLs need to be generated and what object owner to set, if any.')
         ;
     }
 
@@ -52,9 +52,9 @@ class GenerateObjectAclCommand extends ContainerAwareCommand
         $output->writeln('Welcome to the AdminBundle object ACL generator');
         $output->writeln(array(
                 '',
-                'This command helps you generate ACL entities for the objects handled by the AdminBundle.',
+                'This command helps you to generate ACL entities for the objects handled by the AdminBundle.',
                 '',
-                'If the step option is used, you will be asked for each Admin to generate the object ACL entities.',
+                'If the step option is used, you will be asked if you want to generate the object ACL entities for each Admin.',
                 'You must use the shortcut notation like <comment>AcmeDemoBundle:User</comment> if you want to set an object owner.',
                 ''
         ));

+ 11 - 1
Resources/doc/reference/console.rst

@@ -5,9 +5,10 @@ SonataAdminBundle provides the following console commands:
 
 * ``cache:create-cache-class``
 * ``sonata:admin:generate``
-* ``sonata:admin:explain``
 * ``sonata:admin:list``
+* ``sonata:admin:explain``
 * ``sonata:admin:setup-acl``
+* ``sonata:admin:generate-object-acl``
 
 
 cache:create-cache-class
@@ -104,3 +105,12 @@ Usage example:
 .. code-block:: bash
 
     php app/console sonata:admin:setup-acl
+
+
+sonata:admin:generate-object-acl
+--------------------------------
+
+The ``sonata:admin:generate-object-acl`` is an interactive command which helps
+you to generate ACL entities for the objects handled by your Admins. See the help 
+of the command for more information.
+