remove flight/autoload.php

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

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

@ -11,8 +11,6 @@ use flight\net\Route;
use flight\core\EventDispatcher;
use Psr\Container\ContainerInterface;
require_once __DIR__ . '/autoload.php';
/**
* 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);
require_once 'flight/Flight.php';
// require 'flight/autoload.php';
require_once __DIR__ . '/vendor/autoload.php';
Flight::route('/', function () {
echo 'hello world!';

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

Loading…
Cancel
Save