15 lines
431 B
PHP
15 lines
431 B
PHP
<?php
|
|
return [
|
|
\Szurubooru\Config::class => DI\object()->constructor([
|
|
__DIR__ . DS . 'config.ini',
|
|
__DIR__ . DS . 'local.ini']),
|
|
|
|
\Szurubooru\ControllerRepository::class => DI\object()->constructor(DI\link('controllers')),
|
|
|
|
'controllers' => DI\factory(function (DI\container $c) {
|
|
return [
|
|
$c->get(\Szurubooru\Controllers\AuthController::class),
|
|
$c->get(\Szurubooru\Controllers\UserController::class),
|
|
];
|
|
}),
|
|
];
|