Skip to content

Commit 4f9ad67

Browse files
committed
Merge branch '3.4' into 4.1
* 3.4: fix RoleVoter behaviour description Add missing container argument for ServiceLocatorTagPass::register() call
2 parents 2f4c6a9 + ec537cd commit 4f9ad67

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

reference/twig_reference.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,9 +305,8 @@ is_granted
305305
**type**: ``string``
306306

307307
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.
311310

312311
Optionally, an object can be passed to be used by the voter. More information
313312
can be found in :ref:`security-template`.

service_container/service_subscribers_locators.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ will share identical locators amongst all the services referencing them::
375375
'logger' => new Reference('logger'),
376376
);
377377

378-
$myService->addArgument(ServiceLocatorTagPass::register($locateableServices));
378+
$myService->addArgument(ServiceLocatorTagPass::register($container, $locateableServices));
379379
}
380380

381381
.. _`Command pattern`: https://en.wikipedia.org/wiki/Command_pattern

0 commit comments

Comments
 (0)