File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed
components/event_dispatcher Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -939,7 +939,7 @@ will match any ``ip``, ``host`` or ``method``:
939
939
.....................
940
940
941
941
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 ``
943
943
options:
944
944
945
945
* ``role `` If the user does not have the given role(s), then access is denied
Original file line number Diff line number Diff line change @@ -509,8 +509,11 @@ Lazy loading listeners::
509
509
{
510
510
private $started = false;
511
511
512
- public function myLazyListener(Event $event, $eventName, EventDispatcherInterface $dispatcher)
513
- {
512
+ public function myLazyListener(
513
+ Event $event,
514
+ $eventName,
515
+ EventDispatcherInterface $dispatcher
516
+ ) {
514
517
if (false === $this->started) {
515
518
$subscriber = new StoreSubscriber();
516
519
$dispatcher->addSubscriber($subscriber);
@@ -529,8 +532,11 @@ Dispatching another event from within a listener::
529
532
530
533
class Foo
531
534
{
532
- public function myFooListener(Event $event, $eventName, EventDispatcherInterface $dispatcher)
533
- {
535
+ public function myFooListener(
536
+ Event $event,
537
+ $eventName,
538
+ EventDispatcherInterface $dispatcher
539
+ ) {
534
540
$dispatcher->dispatch('log', $event);
535
541
536
542
// ... more code
You can’t perform that action at this time.
0 commit comments