You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Indeed $userOption = $input->getOption('user'); return Symfony/Component/Security/Core/User/User:kevin instead of an array as further in the code we do foreach ($userOption as $user)
The text was updated successfully, but these errors were encountered:
…e 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
Following command doesn't work
php acl:set --user=Symfony/Component/Security/Core/User/User:kevin VIEW EDIT Acme/MyClass:42
Indeed
$userOption = $input->getOption('user');
returnSymfony/Component/Security/Core/User/User:kevin
instead of an array as further in the code we doforeach ($userOption as $user)
The text was updated successfully, but these errors were encountered: