You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
http/config/default.php

24 lines
461 B
PHP

<?php
namespace BitCommunism\Http;
use BitCommunism\Marx\Instance;
use function DI\add;
use function DI\get;
use function DI\object;
return [
'marx.calls' => add([
'http' => function(Server $server) {
return $server;
}
]),
'marx.loaders' => add([
function(Server $server) {
$server->buildRoutes();
}
]),
Server::class => object()->constructorParameter('routes', get('routes')),
];