clue / reactphp-docker

Async, event-driven access to the Docker Engine API, built on top of ReactPHP.
https://clue.engineering/2019/introducing-reactphp-docker
MIT License
107 stars 16 forks source link

Simplify usage by supporting new default loop #71

Closed clue closed 3 years ago

clue commented 3 years ago

This changeset simplifies usage by supporting the new default loop.

// old (still supported)
$client = new Clue\React\Docker\Client($loop);

// new (using default loop)
$client = new Clue\React\Docker\Client();

Builds on top of https://github.com/reactphp/event-loop/pull/226, https://github.com/reactphp/event-loop/pull/229, https://github.com/reactphp/event-loop/pull/232, https://github.com/reactphp/stream/pull/159 and https://github.com/reactphp/socket/pull/260 and https://github.com/reactphp/http/pull/410