remove flight/autoload.php

autoload-rework
fadrian06 2 days ago
parent 47a3702927
commit cf553d36d4

@ -30,9 +30,6 @@
"classmap": [ "classmap": [
"flight/Flight.php" "flight/Flight.php"
], ],
"files": [
"flight/autoload.php"
],
"psr-4": { "psr-4": {
"flight\\": "flight" "flight\\": "flight"
} }

@ -11,8 +11,6 @@ use flight\net\Route;
use flight\core\EventDispatcher; use flight\core\EventDispatcher;
use Psr\Container\ContainerInterface; use Psr\Container\ContainerInterface;
require_once __DIR__ . '/autoload.php';
/** /**
* The Flight class is a static representation of the framework. * The Flight class is a static representation of the framework.
* *

@ -1,7 +0,0 @@
<?php
declare(strict_types=1);
// use flight\core\Loader;
// Loader::autoload(true, [dirname(__DIR__)]);

@ -2,8 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
require_once 'flight/Flight.php'; require_once __DIR__ . '/vendor/autoload.php';
// require 'flight/autoload.php';
Flight::route('/', function () { Flight::route('/', function () {
echo 'hello world!'; echo 'hello world!';

@ -14,9 +14,6 @@
<include> <include>
<directory suffix=".php">flight/</directory> <directory suffix=".php">flight/</directory>
</include> </include>
<exclude>
<file>flight/autoload.php</file>
</exclude>
</coverage> </coverage>
<testsuites> <testsuites>
<testsuite name="default"> <testsuite name="default">

Loading…
Cancel
Save