From 8e4a6692ee776c2515cfad529c95fdf74cdac920 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Tue, 7 Jun 2022 07:17:32 +0700 Subject: [PATCH] Move preload.php example to starter app --- preload.php => admin/starter/preload.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) rename preload.php => admin/starter/preload.php (95%) diff --git a/preload.php b/admin/starter/preload.php similarity index 95% rename from preload.php rename to admin/starter/preload.php index 7e1a04956fa9..f36bacf3b0d1 100644 --- a/preload.php +++ b/admin/starter/preload.php @@ -41,15 +41,14 @@ function str_contains(string $haystack, string $needle): bool } } -class Preload +class preload { /** * @var array Paths to preload. */ private array $paths = [ [ - 'include' => // __DIR__ . '/vendor/codeigniter4/framework/system', - __DIR__ . '/system', + 'include' => __DIR__ . '/vendor/codeigniter4/framework/system', 'exclude' => [ // Not needed if you don't use them. '/system/Database/OCI8/', @@ -110,4 +109,4 @@ public function load() } } -(new Preload())->load(); +(new preload())->load();