v0.10.0
Imported release from original tag date 2022-07-14.
-
Feature: Built-in support for fibers on PHP 8.1+ with stable reactphp/async.
(#168 by @clue)$app->get('/book/{isbn}', function (Psr\Http\Message\ServerRequestInterface $request) use ($db) { $isbn = $request->getAttribute('isbn'); $result = await($db->query( 'SELECT title FROM book WHERE isbn = ?', [$isbn] )); assert($result instanceof React\MySQL\QueryResult); $data = $result->resultRows[0]['title']; return React\Http\Message\Response::plaintext( $data ); });
-
Feature: Support PSR-11 container interface by using DI container as adapter.
(#163 by @clue) -
Minor documentation improvements.
(#158 by @clue and #160 by @SimonFrings)