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