Skip to content

Commit e062979

Browse files
authored
Update RoadRunner http lib (#126)
* Update RoadRunner http lib * docs(changelog): 📚 Changelog file updated
1 parent 7d2ad36 commit e062979

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog][keepachangelog] and this project adheres to [Semantic Versioning][semver].
66

7+
## v5.12.0
8+
9+
### Added
10+
11+
- Support for `v3.x` of `spiral/roadrunner-http` package [#125]
12+
13+
[#125]:https://github.com/roadrunner-php/laravel-bridge/issues/125
14+
715
## v5.11.1
816

917
### Fixed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"composer-runtime-api": "^2.0",
2020
"laravel/framework": "~9.33 || ~10.0",
2121
"nyholm/psr7": "^1.5",
22-
"spiral/roadrunner-http": "^2.2",
23-
"spiral/roadrunner-worker": "^2.2",
22+
"spiral/roadrunner-http": "^2.2 || ^3.0",
23+
"spiral/roadrunner-worker": "^2.2 || ^3.0",
2424
"symfony/psr-http-message-bridge": "^2.1"
2525
},
2626
"require-dev": {

src/Worker.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,11 @@ public function __construct()
7474
*/
7575
public function start(WorkerOptionsInterface $options): void
7676
{
77+
/** @var non-empty-string $relay_dsn */
78+
$relay_dsn = $options->getRelayDsn();
79+
7780
$psr7_worker = new \Spiral\RoadRunner\Http\PSR7Worker(
78-
new \Spiral\RoadRunner\Worker(\Spiral\Goridge\Relay::create($options->getRelayDsn())),
81+
new \Spiral\RoadRunner\Worker(\Spiral\Goridge\Relay::create($relay_dsn)),
7982
$this->request_factory,
8083
$this->stream_factory,
8184
$this->uploads_factory

0 commit comments

Comments
 (0)