szurubooru/di.php
2014-10-18 18:48:16 +02:00

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),
];
}),
];