mini\dispatch() Function

Documentation

Dispatch the current HTTP request

Entry point for HTTP applications. Creates the dispatcher and handles the request.

Usage:

// html/index.php
<?php
require __DIR__ . '/../vendor/autoload.php';
mini\dispatch();

Signature

function dispatch(): void

Returns

void

Source

src/Dispatcher/functions.php:32-35