Skip to content

Commit 459052d

Browse files
committed
Merge remote-tracking branch 'origin/2.4' into 2.5
* origin/2.4: Remove horizontal scrollbar minor #4285 Update security.rst (placid2000) Update security.rst
2 parents bbcb866 + 228111b commit 459052d

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

book/security.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ will match any ``ip``, ``host`` or ``method``:
939939
.....................
940940

941941
Once Symfony has decided which ``access_control`` entry matches (if any),
942-
it then *enforces* access restrictions based on the ``roles`` and ``requires_channel``
942+
it then *enforces* access restrictions based on the ``roles``, ``allow_if`` and ``requires_channel``
943943
options:
944944

945945
* ``role`` If the user does not have the given role(s), then access is denied

components/event_dispatcher/introduction.rst

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -509,8 +509,11 @@ Lazy loading listeners::
509509
{
510510
private $started = false;
511511

512-
public function myLazyListener(Event $event, $eventName, EventDispatcherInterface $dispatcher)
513-
{
512+
public function myLazyListener(
513+
Event $event,
514+
$eventName,
515+
EventDispatcherInterface $dispatcher
516+
) {
514517
if (false === $this->started) {
515518
$subscriber = new StoreSubscriber();
516519
$dispatcher->addSubscriber($subscriber);
@@ -529,8 +532,11 @@ Dispatching another event from within a listener::
529532

530533
class Foo
531534
{
532-
public function myFooListener(Event $event, $eventName, EventDispatcherInterface $dispatcher)
533-
{
535+
public function myFooListener(
536+
Event $event,
537+
$eventName,
538+
EventDispatcherInterface $dispatcher
539+
) {
534540
$dispatcher->dispatch('log', $event);
535541

536542
// ... more code

0 commit comments

Comments
 (0)