Skip to content

Commit 3d701ee

Browse files
authored
Replaced EventFactory::create with Loop::get as the factory has been deprecated. (#48)
1 parent 7013b1b commit 3d701ee

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Diff for: CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010

1111
### Changed
1212

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

1415
## [3.0.0] - 2020-12-17
1516

Diff for: composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"php": "^7.1|^8.0",
1515
"php-http/httplug": "^2.0",
1616
"react/http": "^1.0",
17-
"react/event-loop": "^1.0",
17+
"react/event-loop": "^1.2",
1818
"php-http/discovery": "^1.0"
1919
},
2020
"require-dev": {

Diff for: src/ReactFactory.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Http\Adapter\React;
44

5-
use React\EventLoop\Factory as EventLoopFactory;
5+
use React\EventLoop\Loop;
66
use React\EventLoop\LoopInterface;
77
use React\Http\Browser;
88
use React\Socket\ConnectorInterface;
@@ -19,7 +19,7 @@ class ReactFactory
1919
*/
2020
public static function buildEventLoop(): LoopInterface
2121
{
22-
return EventLoopFactory::create();
22+
return Loop::get();
2323
}
2424

2525
/**

0 commit comments

Comments
 (0)