Skip to content

v4.1.0: Dumper and new resetters

Choose a tag to compare

@tarampampam tarampampam released this 19 May 20:17
· 189 commits to master since this release
cdef0a1

Added

  • Possibility to "dump" (using Symfony VarDumper) any variables in HTTP context (just call \rr\dump(...) or \rr\dd(...) instead dump(...) or dd(...) in your code)
  • Function \rr\worker() for easy access to the RoadRunner PSR worker instance (available only in HTTP context, of course)
  • Listener FlushArrayCacheListener for flushing array-based cache storages
  • Listener FlushAuthenticationStateListener for authentication state flushing
  • Listener RebindAuthorizationGateListener for the authorization gate container rebinding
  • Listener RebindBroadcastManagerListener for the broadcast manager container rebinding
  • Listener RebindDatabaseManagerListener for the database manager container rebinding
  • Listener RebindMailManagerListener for the mail manager container rebinding and resolved mailer instances clearing
  • Listener RebindNotificationChannelManagerListener for the notification channel manager container rebinding and resolved driver instances clearing
  • Listener RebindPipelineHubListener for the pipeline hub container rebinding
  • Listener RebindQueueManagerListener for the queue manager container rebinding
  • Listener RebindValidationFactoryListener for the validator container rebinding
  • Listener ResetDatabaseRecordModificationStateListener for resetting the database record modification state
  • Listener ResetLocaleStateListener for the translator locale resetting
  • Integration with inertiajs (package inertiajs/inertia-laravel) is supported now (just enable ResetInertiaListener for BeforeLoopIterationEvent)
  • Integration with Laravel Scout is supported now (just enable ResetLaravelScoutListener for BeforeLoopIterationEvent)
  • Integration with Laravel Socialite is supported now (just enable ResetLaravelSocialiteListener for BeforeLoopIterationEvent)

Changed

  • Listeners RebindHttpKernelListener, RebindRouterListener, RebindViewListener and UnqueueCookiesListener improved

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