http/config/default.php
2018-08-27 17:22:47 +02:00

24 lines
No EOL
470 B
PHP

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