Releases: roadrunner-php/laravel-bridge
Releases · roadrunner-php/laravel-bridge
v4.1.0: Dumper and new resetters
Added
- Possibility to "dump" (using Symfony VarDumper) any variables in HTTP context (just call
\rr\dump(...)or\rr\dd(...)insteaddump(...)ordd(...)in your code) - Function
\rr\worker()for easy access to the RoadRunner PSR worker instance (available only in HTTP context, of course) - Listener
FlushArrayCacheListenerfor flushingarray-based cache storages - Listener
FlushAuthenticationStateListenerfor authentication state flushing - Listener
RebindAuthorizationGateListenerfor the authorization gate container rebinding - Listener
RebindBroadcastManagerListenerfor the broadcast manager container rebinding - Listener
RebindDatabaseManagerListenerfor the database manager container rebinding - Listener
RebindMailManagerListenerfor the mail manager container rebinding and resolved mailer instances clearing - Listener
RebindNotificationChannelManagerListenerfor the notification channel manager container rebinding and resolved driver instances clearing - Listener
RebindPipelineHubListenerfor the pipeline hub container rebinding - Listener
RebindQueueManagerListenerfor the queue manager container rebinding - Listener
RebindValidationFactoryListenerfor the validator container rebinding - Listener
ResetDatabaseRecordModificationStateListenerfor resetting the database record modification state - Listener
ResetLocaleStateListenerfor the translator locale resetting - Integration with inertiajs (package inertiajs/inertia-laravel) is supported now (just enable
ResetInertiaListenerforBeforeLoopIterationEvent) - Integration with Laravel Scout is supported now (just enable
ResetLaravelScoutListenerforBeforeLoopIterationEvent) - Integration with Laravel Socialite is supported now (just enable
ResetLaravelSocialiteListenerforBeforeLoopIterationEvent)
Changed
- Listeners
RebindHttpKernelListener,RebindRouterListener,RebindViewListenerandUnqueueCookiesListenerimproved
⚠️ Do not forget to update your configuration (file config/roadrunner.php) ⚠️
return [
// ...
'listeners' => [
// ...
Events\BeforeLoopIterationEvent::class => [
// ...
// add the following classes:
Listeners\RebindAuthorizationGateListener::class,
Listeners\RebindBroadcastManagerListener::class,
Listeners\RebindDatabaseManagerListener::class,
Listeners\RebindMailManagerListener::class,
Listeners\RebindNotificationChannelManagerListener::class,
Listeners\RebindPipelineHubListener::class,
Listeners\RebindQueueManagerListener::class,
Listeners\RebindValidationFactoryListener::class,
Listeners\FlushAuthenticationStateListener::class,
Listeners\ResetLocaleStateListener::class,
],
Events\AfterLoopIterationEvent::class => [
// ...
// add the following classes:
Listeners\FlushArrayCacheListener::class,
Listeners\ResetDatabaseRecordModificationStateListener::class,
],
],
];v4.0.1: Termination request handling
Fixed
- Termination request handling (safe loop breaking)
v4.0.0: RR2 is supported now!
Added
- Package "binary" file allows using next options:
laravel-pathfor Laravel application base path changingrelay-dsnfor RR relay changing (you can settcp://localhost:6001,unix:///tmp/rpc.sockand others;pipesis used by default)refresh-appfor application instance refreshing on each incoming HTTP request (insteadAPP_REFRESHenv variable)
- Possibility to use unix socket or TCP port as a relay to communicate with RoadRunner
Spiral\RoadRunnerLaravel\WorkerOptionsInterfacethat describes worker starting options- Feature tests (
phpunit) that uses real RR server running
Changed
- Minimal required PHP version now is
7.4 - Dependency
spiral/roadrunner(~1.8) changed withspiral/roadrunner-workerandspiral/roadrunner-http(^2.0) - RR worker instance binding for DI from
Spiral\RoadRunner\PSR7ClienttoSpiral\RoadRunner\Http\PSR7Worker Spiral\RoadRunnerLaravel\WorkerInterface::startacceptsSpiral\RoadRunnerLaravel\WorkerOptionsInterfacenow
Removed
- RR config file (
.rr.yaml) publishing usingartisan vendor:publishcommand - Listener
Spiral\RoadRunnerLaravel\Listeners\ResetDbConnectionsListener
v3.7.0: PHP 8.0
Added
- Support PHP
8.x
Changed
- Composer
2.xis supported now - Minimal required PHP version now is
7.3(7.2security support ended January 1st, 2021) - Dev-dependency
mockery/mockeryminimal required version changed from^1.3.1to^1.3.2 - Dev-dependency
phpstan/phpstanminimal required version changed from~0.12to~0.12.34
Removed
- Code-style checking and fixing for local development (packages
spiral/code-styleandfriendsofphp/php-cs-fixerdoes not supports PHP8.x), but using GitHub this actions still running
v3.6.0: Laravel 8.x is supported now
Changed
- Laravel
8.xis supported now - Minimal Laravel version now is
6.0(Laravel5.5LTS got last security update August 30th, 2020) - Minimal
spiral/roadrunnerpackage version now is1.8
v3.5.0
Added
- Listener
EnableHttpMethodParameterOverrideListenerfor forced support of_methodrequest parameter (for determining the intended HTTP method) #9
Changed
- Listener
EnableHttpMethodParameterOverrideListeneris enabled by default in the configuration file #9
Fixed
- Sending any form data with a
DELETEorPUTmethod (the application ignored the hidden field_methodand as a result the action necessary for the form did not occur) #9
v3.4.0
v3.3.0
Added
- Event
LoopErrorOccurredEvent(triggered on request processing exception) - Listener
SendExceptionToStderrListenerfor direct exception sending (as a string) intostderr - Listener
StopWorkerListenerfor worker stopping
Changed
- Default package configuration includes
LoopErrorOccurredEventevent listeners:SendExceptionToStderrListenerandStopWorkerListener#42 - When "debug mode" (
app.debug) is not enabled - client will get onlyInternal server errorstring instead exception with stacktrace #42
Fixed
- Double response sending on request processing error (calling
$psr7_client->respondand$psr7_client->getWorker()->errorafter that)