From 90a72aef7c1e4640db9db1efc797bc821f8bbc21 Mon Sep 17 00:00:00 2001 From: fadrian06 Date: Tue, 23 Jun 2026 13:00:49 -0400 Subject: [PATCH] move Flight to a classmap --- composer.json | 3 +++ flight/autoload.php | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 19e57f5..f32c0ff 100644 --- a/composer.json +++ b/composer.json @@ -27,6 +27,9 @@ "ext-json": "*" }, "autoload": { + "classmap": [ + "flight/Flight.php" + ], "files": [ "flight/autoload.php" ] diff --git a/flight/autoload.php b/flight/autoload.php index 0a31c86..3a7ea5a 100644 --- a/flight/autoload.php +++ b/flight/autoload.php @@ -4,7 +4,6 @@ declare(strict_types=1); use flight\core\Loader; -require_once __DIR__ . '/Flight.php'; require_once __DIR__ . '/core/Loader.php'; Loader::autoload(true, [dirname(__DIR__)]);