Skip to content

Commit cc18a59

Browse files
committed
bug #13790 [acl][command][SecurityBundle] Fixed user input option mode to be an Array (benjaminlong)
This PR was merged into the 2.6 branch. Discussion ---------- [acl][command][SecurityBundle] Fixed user input option mode to be an Array | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #13789 | License | MIT | Doc PR | User input option should always return an array, even if only one user is passed. Commits ------- bd17ef8 [acl][command][SecurityBundle] Fixed user input option mode to be an Array
2 parents ed40c90 + bd17ef8 commit cc18a59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/SecurityBundle/Command/SetAclCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ protected function configure()
7878
EOF
7979
)
8080
->addArgument('arguments', InputArgument::IS_ARRAY | InputArgument::REQUIRED, 'A list of permissions and object identities (class name and ID separated by a column)')
81-
->addOption('user', null, InputOption::VALUE_REQUIRED, 'A list of security identities')
81+
->addOption('user', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'A list of security identities')
8282
->addOption('role', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'A list of roles')
8383
->addOption('class-scope', null, InputOption::VALUE_NONE, 'Use class-scope entries')
8484
;

0 commit comments

Comments
 (0)