Merge pull request #10517 from benbrummer/v5-develop

Integrate octane in preload.php
This commit is contained in:
David Bomba 2025-01-13 16:35:27 +11:00 committed by GitHub
commit f10ae14b3f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 3 deletions

View File

@ -56,7 +56,7 @@ class Preloader
$count = self::$count; $count = self::$count;
echo "[Preloader] Preloaded {$count} classes" . PHP_EOL; // echo "[Preloader] Preloaded {$count} classes" . PHP_EOL;
} }
private function loadPath(string $path): void private function loadPath(string $path): void
@ -144,12 +144,22 @@ class Preloader
__DIR__ . '/vendor/laravel/framework/src/Illuminate/Http/Testing', __DIR__ . '/vendor/laravel/framework/src/Illuminate/Http/Testing',
__DIR__ . '/vendor/laravel/framework/src/Illuminate/Testing', __DIR__ . '/vendor/laravel/framework/src/Illuminate/Testing',
__DIR__ . '/vendor/laravel/framework/src/Illuminate/Foundation/Testing', __DIR__ . '/vendor/laravel/framework/src/Illuminate/Foundation/Testing',
__DIR__ . '/vendor/laravel/octane/src/Testing',
]) ])
->ignore(
->ignore( ->ignore(
\Illuminate\Filesystem\Cache::class, \Illuminate\Filesystem\Cache::class,
\Illuminate\Log\LogManager::class,
\Illuminate\Http\Testing\File::class,
\Illuminate\Http\UploadedFile::class, \Illuminate\Http\UploadedFile::class,
\Illuminate\Log\LogManager::class,
\Illuminate\Support\Carbon::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,
\Laravel\Octane\WorkerExceptionInspector::class,
) )
->load(); ->load();