Skip to content

Commit cb4053e

Browse files
committed
Made CLI help consistent
1 parent 1e5ba4f commit cb4053e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Command/SetAclCommand.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,20 +59,22 @@ protected function configure()
5959
The <info>%command.name%</info> command sets ACL.
6060
The ACL system must have been initialized with the <info>init:acl</info> command.
6161
62-
To set <comment>VIEW</comment> and <comment>EDIT</comment> permissions for the user <comment>kevin</comment> on the instance of <comment>Acme\MyClass</comment> having the identifier <comment>42</comment>:
62+
To set <comment>VIEW</comment> and <comment>EDIT</comment> permissions for the user <comment>kevin</comment> on the instance of
63+
<comment>Acme\MyClass</comment> having the identifier <comment>42</comment>:
6364
64-
<info>php %command.full_name% --user=Symfony/Component/Security/Core/User/User:kevin VIEW EDIT Acme/MyClass:42</info>
65+
<info>php %command.full_name% --user=Symfony/Component/Security/Core/User/User:kevin VIEW EDIT Acme/MyClass:42</info>
6566
6667
Note that you can use <comment>/</comment> instead of <comment>\\ </comment>for the namespace delimiter to avoid any
6768
problem.
6869
6970
To set permissions for a role, use the <info>--role</info> option:
7071
71-
<info>php %command.full_name% --role=ROLE_USER VIEW Acme/MyClass:1936</info>
72+
<info>php %command.full_name% --role=ROLE_USER VIEW Acme/MyClass:1936</info>
7273
7374
To set permissions at the class scope, use the <info>--class-scope</info> option:
7475
75-
<info>php %command.full_name% --class-scope --user=Symfony/Component/Security/Core/User/User:anne OWNER Acme/MyClass:42</info>
76+
<info>php %command.full_name% --class-scope --user=Symfony/Component/Security/Core/User/User:anne OWNER Acme/MyClass:42</info>
77+
7678
EOF
7779
)
7880
->addArgument('arguments', InputArgument::IS_ARRAY | InputArgument::REQUIRED, 'A list of permissions and object identities (class name and ID separated by a column)')

0 commit comments

Comments
 (0)