Skip to content

Commit

Permalink
Updated to react-async-interop-loop v 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwdan committed Jan 5, 2017
1 parent 5c42346 commit 024f293
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
}
],
"require": {
"wyrihaximus/react-async-interop-loop": "0.1.0"
"wyrihaximus/react-async-interop-loop": "^0.2.1"
},
"autoload": {
"files": [
Expand Down
3 changes: 1 addition & 2 deletions src/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?php

use Interop\Async\Loop;
use React\EventLoop\StreamSelectLoop;
use WyriHaximus\React\AsyncInteropLoop\ReactDriverFactory;

Loop::setFactory(ReactDriverFactory::createFactoryFromLoop(StreamSelectLoop::class));
Loop::setFactory(ReactDriverFactory::createFactory());

register_shutdown_function(function () {
Loop::execute(function () {}, Loop::get());
Expand Down

0 comments on commit 024f293

Please sign in to comment.