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
470 B
PHTML

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