http/config/default.php
2018-01-17 14:01:53 +01:00

24 lines
No EOL
463 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) {
$server->serve();
}
]),
'marx.loaders' => add([
function(Server $server) {
$server->buildRoutes();
}
]),
Server::class => object()->constructorParameter('routes', get('routes')),
];