This repository has been archived on 2025-02-26. You can view files and clone it, but cannot push or open issues or pull requests.
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),
];
}),
];