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
PHTML

7 years ago
<?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) {
7 years ago
return $server;
7 years ago
}
]),
'marx.loaders' => add([
function(Server $server) {
$server->buildRoutes();
}
]),
Server::class => object()->constructorParameter('routes', get('routes')),
];