From 53638a698c03e7bed5d6d2f9120cb72dd4df5ba1 Mon Sep 17 00:00:00 2001 From: Andrew M Date: Sun, 12 Oct 2014 09:05:32 +0300 Subject: [PATCH] Remove horizontal scrollbar --- components/event_dispatcher/introduction.rst | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/components/event_dispatcher/introduction.rst b/components/event_dispatcher/introduction.rst index 39e6c42b345..4775280a54f 100644 --- a/components/event_dispatcher/introduction.rst +++ b/components/event_dispatcher/introduction.rst @@ -509,8 +509,11 @@ Lazy loading listeners:: { private $started = false; - public function myLazyListener(Event $event, $eventName, EventDispatcherInterface $dispatcher) - { + public function myLazyListener( + Event $event, + $eventName, + EventDispatcherInterface $dispatcher + ) { if (false === $this->started) { $subscriber = new StoreSubscriber(); $dispatcher->addSubscriber($subscriber); @@ -529,8 +532,11 @@ Dispatching another event from within a listener:: class Foo { - public function myFooListener(Event $event, $eventName, EventDispatcherInterface $dispatcher) - { + public function myFooListener( + Event $event, + $eventName, + EventDispatcherInterface $dispatcher + ) { $dispatcher->dispatch('log', $event); // ... more code pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy