Skip to content

Commit

Permalink
Use app's event manager by Server if possible.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertpustulka committed Feb 12, 2018
1 parent d465251 commit 0eca69e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Http/Server.php
Expand Up @@ -135,6 +135,10 @@ public function setApp(HttpApplicationInterface $app)
{
$this->app = $app;

if ($app instanceof EventDispatcherInterface) {
$this->setEventManager($app->getEventManager());
}

return $this;
}

Expand Down

0 comments on commit 0eca69e

Please sign in to comment.