Releases: roadrunner-php/worker
v3.6.1
What's Changed
- fixed PHP 8.4 deprecations by @okorneliuk in #39
New Contributors
- @okorneliuk made their first contribution in #39
Full Changelog: v3.6.0...v3.6.1
v3.6.0
v3.5.0
v3.4.0
What's Changed
- Added the getWorkers and countWorkers methods to the
Spiral\RoadRunner\WorkerPool
class. These methods allow retrieval of information about the plugin workers in the pool and their count by @FluffyDiscord and @msmakouz in #34, #35 - Fixed documentation links by @msmakouz in #33
New Contributors
- @FluffyDiscord made their first contribution in #34
Full Changelog: 3.3.0...v3.4.0
v3.3.0
v3.2.0
v3.1.0
v3.0.0
Features
- Upgraded to PHP 8.1
- Upgraded to PHPUnit 10
- Upgraded to Psalm 5
- Added reusable Gh Actions
- Added metapackage
spiral/roadrunner:^2023
Breaking Changes
Spiral\RoadRunner\WorkerInterface
Changes
It has been updated with two new methods:
hasPayload(string $class = null): bool
getPayload(string $class = null): ?Payload
If your code uses Spiral\RoadRunner\WorkerInterface
, you will need to update it to include these new methods.
Spiral\RoadRunne\Worker
Changes
It has been updated to include a new constructor argument, allowing for a custom logger to be set.
The constructor signature is now:
public function __construct(
private readonly RelayInterface $relay,
bool $interceptSideEffects = true,
private readonly LoggerInterface $logger = new Logger(), // <====== new argument
) {
...
}
Spiral\RoadRunner\Payload
Changes
It has been marked as internal, which means that it can no longer be used directly by user code.
Additionally, the body
and header
properties have been marked as readonly
, which means that they cannot be modified once set.
Spiral\RoadRunner\Exception\RoadRunnerException
Changes
It has been marked as final
, which means that it can no longer be extended by user code. If your code extends it, you will need to update it to handle exceptions in a different way.
Please note that these changes may require updates to your existing code, so be sure to review the breaking changes before upgrading to version 3.0.0.
Full Changelog: v2.3.0...3.0.0