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.
24 lines
470 B
PHP
24 lines
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')),
|
|
]; |