From f10dc28bccc29b8f8b196e4173dc1780d47bfe65 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Tue, 4 Apr 2023 21:48:22 +0100 Subject: [PATCH] Reverts #669 --- .../ProvidesDefaultConfigurationOptions.php | 1 - ...NewApplicationInstanceToSessionManager.php | 25 ------------------- 2 files changed, 26 deletions(-) delete mode 100644 src/Listeners/GiveNewApplicationInstanceToSessionManager.php diff --git a/src/Concerns/ProvidesDefaultConfigurationOptions.php b/src/Concerns/ProvidesDefaultConfigurationOptions.php index 177fafd82..f7d6bec7b 100644 --- a/src/Concerns/ProvidesDefaultConfigurationOptions.php +++ b/src/Concerns/ProvidesDefaultConfigurationOptions.php @@ -42,7 +42,6 @@ public static function prepareApplicationForNextOperation(): array \Laravel\Octane\Listeners\GiveNewApplicationInstanceToNotificationChannelManager::class, \Laravel\Octane\Listeners\GiveNewApplicationInstanceToPipelineHub::class, \Laravel\Octane\Listeners\GiveNewApplicationInstanceToCacheManager::class, - \Laravel\Octane\Listeners\GiveNewApplicationInstanceToSessionManager::class, \Laravel\Octane\Listeners\GiveNewApplicationInstanceToQueueManager::class, \Laravel\Octane\Listeners\GiveNewApplicationInstanceToRouter::class, \Laravel\Octane\Listeners\GiveNewApplicationInstanceToValidationFactory::class, diff --git a/src/Listeners/GiveNewApplicationInstanceToSessionManager.php b/src/Listeners/GiveNewApplicationInstanceToSessionManager.php deleted file mode 100644 index 06bbe18ef..000000000 --- a/src/Listeners/GiveNewApplicationInstanceToSessionManager.php +++ /dev/null @@ -1,25 +0,0 @@ -sandbox->resolved('session')) { - return; - } - - with($event->sandbox->make('session'), function ($manager) use ($event) { - if (method_exists($manager, 'setContainer')) { - $manager->setContainer($event->sandbox); - } - }); - } -}