From 1a37f91b999d8ac6986eb8533c3c2b8807556315 Mon Sep 17 00:00:00 2001 From: fadrian06 Date: Tue, 23 Jun 2026 13:01:13 -0400 Subject: [PATCH] add flight\ psr-4 autoloader --- composer.json | 5 ++++- flight/autoload.php | 2 -- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index f32c0ff..41ec59e 100644 --- a/composer.json +++ b/composer.json @@ -32,7 +32,10 @@ ], "files": [ "flight/autoload.php" - ] + ], + "psr-4": { + "flight\\": "flight" + } }, "autoload-dev": { "psr-4": { diff --git a/flight/autoload.php b/flight/autoload.php index 3a7ea5a..fd17f6a 100644 --- a/flight/autoload.php +++ b/flight/autoload.php @@ -4,6 +4,4 @@ declare(strict_types=1); use flight\core\Loader; -require_once __DIR__ . '/core/Loader.php'; - Loader::autoload(true, [dirname(__DIR__)]);