http/config/default.php
2018-01-22 15:21:48 +01:00

24 lines
No EOL
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')),
];