Skip to content

Commit 400295b

Browse files
committed
Merge branch '2.6' into 2.7
* 2.6: [WIP] Made help information of commands more consistent [2.6] Added internal annotation on Descriptor classes Made CLI help consistent Made help information consistent
2 parents 336f805 + 637f496 commit 400295b

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

Command/InitAclCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ protected function configure()
3434
->setHelp(<<<EOF
3535
The <info>%command.name%</info> command mounts ACL tables in the database.
3636
37-
<info>php %command.full_name%</info>
37+
<info>php %command.full_name%</info>
3838
3939
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.
4040
41-
<info>security:
42-
acl:
43-
connection: default</info>
41+
<info>security:
42+
acl:
43+
connection: default</info>
4444
EOF
4545
)
4646
;

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)