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__)]);