<?php
# public/index.php
declare(strict_types = 1);
use Larium\Framework\Framework;
use Larium\Framework\Middleware\RoutingMiddleware;
use Laminas\Diactoros\ServerRequestFactory;
use Larium\Framework\Middleware\ActionResolverMiddleware;
use Larium\Framework\Provider\ContainerProvider;
require_once __DIR__ . '/../vendor/autoload.php';
(function () {
/** @var ContainerProvider */
$containerProvider
$container = $containerProvider->getContainer();
$f = new Framework($container);
$f->pipe(RoutingMiddleware::class, 1);
$f->pipe(ActionResolverMiddleware::class, 0);
$f->run(ServerRequestFactory::fromGlobals());
})();
-
Notifications
You must be signed in to change notification settings - Fork 1
Larium/framework
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description or website provided.
Topics
Resources
Stars
Watchers
Forks
Packages 0
No packages published