szurubooru/di.php

16 lines
431 B
PHP
Raw Normal View History

2014-08-30 15:04:33 +02:00
<?php
return [
\Szurubooru\Config::class => DI\object()->constructor([
__DIR__ . DS . 'config.ini',
__DIR__ . DS . 'local.ini']),
2014-08-31 13:34:31 +02:00
\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),
];
}),
2014-08-30 15:04:33 +02:00
];