Skip to content

Commit

Permalink
minor #4316 Remove horizontal scrollbar (ifdattic)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.4 branch.

Discussion
----------

Remove horizontal scrollbar

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.4
| Fixed tickets |

Commits
-------

53638a6 Remove horizontal scrollbar
  • Loading branch information
wouterj committed Oct 12, 2014
2 parents a535c9f + 53638a6 commit 228111b
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions components/event_dispatcher/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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
Expand Down

0 comments on commit 228111b

Please sign in to comment.