File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -305,9 +305,8 @@ is_granted
305
305
**type **: ``string ``
306
306
307
307
Returns ``true `` if the current user has the given role. If several roles are
308
- passed in an array, returns ``true `` if the user has all of them or at least one
309
- of them, depending on the value of this option:
310
- :ref: `security.access_decision_manager.strategy <security-voters-change-strategy >`.
308
+ passed in an array, ``true `` is returned if the user has at least one of
309
+ them.
311
310
312
311
Optionally, an object can be passed to be used by the voter. More information
313
312
can be found in :ref: `security-template `.
Original file line number Diff line number Diff line change @@ -375,7 +375,7 @@ will share identical locators amongst all the services referencing them::
375
375
'logger' => new Reference('logger'),
376
376
);
377
377
378
- $myService->addArgument(ServiceLocatorTagPass::register($locateableServices));
378
+ $myService->addArgument(ServiceLocatorTagPass::register($container, $ locateableServices));
379
379
}
380
380
381
381
.. _`Command pattern` : https://en.wikipedia.org/wiki/Command_pattern
You can’t perform that action at this time.
0 commit comments