Skip to content
This repository was archived by the owner on Nov 30, 2017. It is now read-only.

Commit ff591be

Browse files
authored
Merge pull request #9 from maciejmrozinski/use_async_interface
Use AsyncInterface
2 parents c5061c9 + 405ad54 commit ff591be

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Psr7Bridge.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace PHPPM\Psr7;
44

55
use PHPPM\Bootstraps\ApplicationEnvironmentAwareInterface;
6+
use PHPPM\Bootstraps\AsyncInterface;
67
use PHPPM\Bridges\BridgeInterface;
78
use PHPPM\React\HttpResponse as ReactResponse;
89
use Psr\Http\Message\ResponseInterface as Psr7Response;
@@ -30,6 +31,9 @@ public function bootstrap($appBootstrap, $appenv, $debug, LoopInterface $loop)
3031
if ($this->middleware instanceof ApplicationEnvironmentAwareInterface) {
3132
$this->middleware->initialize($appenv, $debug);
3233
}
34+
if ($this->bootstrap instanceof AsyncInterface) {
35+
$this->bootstrap->setLoop($loop);
36+
}
3337
}
3438

3539
/**

0 commit comments

Comments
 (0)