From e7bfc05be9d791db50b6dc34ae2c6e973dfd2732 Mon Sep 17 00:00:00 2001 From: benbrummer Date: Sat, 11 Jan 2025 22:21:56 +0100 Subject: [PATCH 1/3] Integrate octane in preload.php Signed-off-by: benbrummer --- preload.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/preload.php b/preload.php index fd0f0527ff..70926fe056 100644 --- a/preload.php +++ b/preload.php @@ -144,12 +144,12 @@ class Preloader __DIR__ . '/vendor/laravel/framework/src/Illuminate/Http/Testing', __DIR__ . '/vendor/laravel/framework/src/Illuminate/Testing', __DIR__ . '/vendor/laravel/framework/src/Illuminate/Foundation/Testing', + __DIR__ . '/vendor/laravel/octane/src/Testing', ]) ->ignore( - \Illuminate\Filesystem\Cache::class, - \Illuminate\Log\LogManager::class, - \Illuminate\Http\Testing\File::class, - \Illuminate\Http\UploadedFile::class, - \Illuminate\Support\Carbon::class, + \Illuminate\Console\View\Components\Choice::class, + \Laravel\Octane\Tables\OpenSwooleTable::class, + \Laravel\Octane\Tables\SwooleTable::class, + \Laravel\Octane\WorkerExceptionInspector::class, ) ->load(); From 8abb714500e911f73ae57bf9e48c85b29f049576 Mon Sep 17 00:00:00 2001 From: benbrummer Date: Sun, 12 Jan 2025 02:16:41 +0100 Subject: [PATCH 2/3] comment echo reduce noise Signed-off-by: benbrummer --- preload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preload.php b/preload.php index 70926fe056..8f2b26e1d4 100644 --- a/preload.php +++ b/preload.php @@ -56,7 +56,7 @@ class Preloader $count = self::$count; - echo "[Preloader] Preloaded {$count} classes" . PHP_EOL; + // echo "[Preloader] Preloaded {$count} classes" . PHP_EOL; } private function loadPath(string $path): void From 2494d2c4a415c16d4d4a414b8a7cb560294f6e35 Mon Sep 17 00:00:00 2001 From: benbrummer Date: Sun, 12 Jan 2025 09:44:39 +0100 Subject: [PATCH 3/3] added classes to ignore list again, execpt \Illuminate\Http\Testing\File::class, Signed-off-by: benbrummer --- preload.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/preload.php b/preload.php index 8f2b26e1d4..fcc871fc7a 100644 --- a/preload.php +++ b/preload.php @@ -147,6 +147,16 @@ class Preloader __DIR__ . '/vendor/laravel/octane/src/Testing', ]) ->ignore( + ->ignore( + \Illuminate\Filesystem\Cache::class, + \Illuminate\Http\UploadedFile::class, + \Illuminate\Log\LogManager::class, + \Illuminate\Support\Carbon::class, + \Illuminate\Console\View\Components\Choice::class, + \Laravel\Octane\Tables\OpenSwooleTable::class, + \Laravel\Octane\Tables\SwooleTable::class, + \Laravel\Octane\WorkerExceptionInspector::class, + ) \Illuminate\Console\View\Components\Choice::class, \Laravel\Octane\Tables\OpenSwooleTable::class, \Laravel\Octane\Tables\SwooleTable::class,