Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Update RoadRunner http lib (#126)
Browse files Browse the repository at this point in the history
* Update RoadRunner http lib

* docs(changelog): πŸ“š Changelog file updated
  • Loading branch information
tarampampam authored Aug 21, 2023
1 parent 7d2ad36 commit e062979
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.

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

## v5.12.0

### Added

- Support for `v3.x` of `spiral/roadrunner-http` package [#125]

[#125]:https://github.com/roadrunner-php/laravel-bridge/issues/125

## v5.11.1

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"composer-runtime-api": "^2.0",
"laravel/framework": "~9.33 || ~10.0",
"nyholm/psr7": "^1.5",
"spiral/roadrunner-http": "^2.2",
"spiral/roadrunner-worker": "^2.2",
"spiral/roadrunner-http": "^2.2 || ^3.0",
"spiral/roadrunner-worker": "^2.2 || ^3.0",
"symfony/psr-http-message-bridge": "^2.1"
},
"require-dev": {
Expand Down
5 changes: 4 additions & 1 deletion src/Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,11 @@ public function __construct()
*/
public function start(WorkerOptionsInterface $options): void
{
/** @var non-empty-string $relay_dsn */
$relay_dsn = $options->getRelayDsn();

$psr7_worker = new \Spiral\RoadRunner\Http\PSR7Worker(
new \Spiral\RoadRunner\Worker(\Spiral\Goridge\Relay::create($options->getRelayDsn())),
new \Spiral\RoadRunner\Worker(\Spiral\Goridge\Relay::create($relay_dsn)),
$this->request_factory,
$this->stream_factory,
$this->uploads_factory
Expand Down

0 comments on commit e062979

Please sign in to comment.