PHP Classes

File: demos/using-config.php

Recommend this page to a friend!
  Classes of Francesco Danti   ATK4 FastRoute   demos/using-config.php   Download  
File: demos/using-config.php
Role: Example script
Content typex: text/plain
Description: Example script
Class: ATK4 FastRoute
Process HTTP requests using configured routes
Author: By
Last change: Add support for php >= 7.4 < 8.2, Refactor Tests
Apply fixes from StyleCI

[ci skip] [skip ci]
Merge branch 'align-with-atk4-2.3.5' of https://github.com/abbadon1334/atk4-fastroute

 Conflicts:
 src/Route/Route.php
 src/Router.php
Clean up
Apply fixes from StyleCI

[ci skip] [skip ci]
refactor and align to atk4 2.2.0
code-fix test 3
Date: 3 months ago
Size: 335 bytes
 

Contents

Class file image Download
<?php

declare(strict_types=1);

namespace
Abbadon1334\ATKFastRoute\Demos;

use
Abbadon1334\ATKFastRoute\Router;

require_once
__DIR__ . '/../vendor/autoload.php';

/** @var \Atk4\Ui\App $app */
require __DIR__ . '/init-app.php';

$router = new Router($app);
$router->loadRoutes(__DIR__ . '/config/routes.php', 'php');
$router->run();