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,
],
],
];