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.
25 lines
487 B
PHP
25 lines
487 B
PHP
<?php
|
|
|
|
namespace BitCommunism\Http;
|
|
|
|
use BitCommunism\Marx\Instance;
|
|
use function DI\add;
|
|
use function DI\autowire;
|
|
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')),
|
|
]; |