Skip to content

Releases: roadrunner-php/laravel-bridge

v4.1.0: Dumper and new resetters

19 May 20:17
cdef0a1

Choose a tag to compare

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

v4.0.1: Termination request handling

12 Mar 20:10

Choose a tag to compare

Fixed

  • Termination request handling (safe loop breaking)

v4.0.0: RR2 is supported now!

12 Mar 07:18

Choose a tag to compare

Added

  • Package "binary" file allows using next options:
    • laravel-path for Laravel application base path changing
    • relay-dsn for RR relay changing (you can set tcp://localhost:6001, unix:///tmp/rpc.sock and others; pipes is used by default)
    • refresh-app for application instance refreshing on each incoming HTTP request (instead APP_REFRESH env variable)
  • Possibility to use unix socket or TCP port as a relay to communicate with RoadRunner
  • Spiral\RoadRunnerLaravel\WorkerOptionsInterface that 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 with spiral/roadrunner-worker and spiral/roadrunner-http (^2.0)
  • RR worker instance binding for DI from Spiral\RoadRunner\PSR7Client to Spiral\RoadRunner\Http\PSR7Worker
  • Spiral\RoadRunnerLaravel\WorkerInterface::start accepts Spiral\RoadRunnerLaravel\WorkerOptionsInterface now

Removed

  • RR config file (.rr.yaml) publishing using artisan vendor:publish command
  • Listener Spiral\RoadRunnerLaravel\Listeners\ResetDbConnectionsListener

v3.7.0: PHP 8.0

02 Dec 12:09
5a2910d

Choose a tag to compare

Added

  • Support PHP 8.x

Changed

  • Composer 2.x is supported now
  • Minimal required PHP version now is 7.3 (7.2 security support ended January 1st, 2021)
  • Dev-dependency mockery/mockery minimal required version changed from ^1.3.1 to ^1.3.2
  • Dev-dependency phpstan/phpstan minimal required version changed from ~0.12 to ~0.12.34

Removed

  • Code-style checking and fixing for local development (packages spiral/code-style and friendsofphp/php-cs-fixer does not supports PHP 8.x), but using GitHub this actions still running

v3.6.0: Laravel 8.x is supported now

09 Sep 06:20
9cd5b7f

Choose a tag to compare

Changed

  • Laravel 8.x is supported now
  • Minimal Laravel version now is 6.0 (Laravel 5.5 LTS got last security update August 30th, 2020)
  • Minimal spiral/roadrunner package version now is 1.8

v3.5.0

10 Jul 11:09

Choose a tag to compare

Added

  • Listener EnableHttpMethodParameterOverrideListener for forced support of _method request parameter (for determining the intended HTTP method) #9

Changed

  • Listener EnableHttpMethodParameterOverrideListener is enabled by default in the configuration file #9

Fixed

  • Sending any form data with a DELETE or PUT method (the application ignored the hidden field _method and as a result the action necessary for the form did not occur) #9

v3.4.0

22 May 18:36
983a6a9

Choose a tag to compare

Added

  • Source code style checking using spiral/code-style package #3

Changed

  • Minimal required PHP version now is 7.2 #3

v3.3.0

22 May 16:46

Choose a tag to compare

Added

  • Event LoopErrorOccurredEvent (triggered on request processing exception)
  • Listener SendExceptionToStderrListener for direct exception sending (as a string) into stderr
  • Listener StopWorkerListener for worker stopping

Changed

  • Default package configuration includes LoopErrorOccurredEvent event listeners: SendExceptionToStderrListener and StopWorkerListener #42
  • When "debug mode" (app.debug) is not enabled - client will get only Internal server error string instead exception with stacktrace #42

Fixed

  • Double response sending on request processing error (calling $psr7_client->respond and $psr7_client->getWorker()->error after that)