Skip to content

Commit

Permalink
Replaced EventFactory::create with Loop::get as the factory has been …
Browse files Browse the repository at this point in the history
…deprecated. (#48)
  • Loading branch information
tolgaulas authored Oct 20, 2021
1 parent 7013b1b commit 3d701ee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- Replaced EventFactory::create with Loop::get as the factory has been deprecated.

## [3.0.0] - 2020-12-17

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"php": "^7.1|^8.0",
"php-http/httplug": "^2.0",
"react/http": "^1.0",
"react/event-loop": "^1.0",
"react/event-loop": "^1.2",
"php-http/discovery": "^1.0"
},
"require-dev": {
Expand Down
4 changes: 2 additions & 2 deletions src/ReactFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Http\Adapter\React;

use React\EventLoop\Factory as EventLoopFactory;
use React\EventLoop\Loop;
use React\EventLoop\LoopInterface;
use React\Http\Browser;
use React\Socket\ConnectorInterface;
Expand All @@ -19,7 +19,7 @@ class ReactFactory
*/
public static function buildEventLoop(): LoopInterface
{
return EventLoopFactory::create();
return Loop::get();
}

/**
Expand Down

0 comments on commit 3d701ee

Please sign in to comment.