|
|
@ -2,7 +2,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
|
|
use flight\core\Dispatcher;
|
|
|
|
|
|
|
|
use flight\Engine;
|
|
|
|
use flight\Engine;
|
|
|
|
use flight\net\Request;
|
|
|
|
use flight\net\Request;
|
|
|
|
use flight\net\Response;
|
|
|
|
use flight\net\Response;
|
|
|
@ -24,6 +23,10 @@ require_once __DIR__ . '/autoload.php';
|
|
|
|
* @method static void stop(?int $code = null) Stops the framework and sends a response.
|
|
|
|
* @method static void stop(?int $code = null) Stops the framework and sends a response.
|
|
|
|
* @method static void halt(int $code = 200, string $message = '', bool $actuallyExit = true)
|
|
|
|
* @method static void halt(int $code = 200, string $message = '', bool $actuallyExit = true)
|
|
|
|
* Stop the framework with an optional status code and message.
|
|
|
|
* Stop the framework with an optional status code and message.
|
|
|
|
|
|
|
|
* @method static void register(string $name, string $class, array $params = [], ?callable $callback = null)
|
|
|
|
|
|
|
|
* Registers a class to a framework method.
|
|
|
|
|
|
|
|
* @method static void unregister(string $methodName)
|
|
|
|
|
|
|
|
* Unregisters a class to a framework method.
|
|
|
|
* @method static void registerContainerHandler(callable|object $containerHandler) Registers a container handler.
|
|
|
|
* @method static void registerContainerHandler(callable|object $containerHandler) Registers a container handler.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* # Routing
|
|
|
|
* # Routing
|
|
|
|