2014-08-30 15:04:33 +02:00
|
|
|
<?php
|
2014-09-17 14:32:26 +02:00
|
|
|
$dataDirectory = __DIR__
|
|
|
|
. DIRECTORY_SEPARATOR . '..'
|
|
|
|
. DIRECTORY_SEPARATOR . 'data';
|
|
|
|
|
|
|
|
$publicDataDirectory = __DIR__
|
|
|
|
. DIRECTORY_SEPARATOR . '..'
|
|
|
|
. DIRECTORY_SEPARATOR . 'public_html'
|
|
|
|
. DIRECTORY_SEPARATOR . 'data';
|
2014-09-09 12:34:57 +02:00
|
|
|
|
2014-08-30 15:04:33 +02:00
|
|
|
return [
|
2014-09-17 14:32:26 +02:00
|
|
|
\Szurubooru\Config::class => DI\object()->constructor($dataDirectory, $publicDataDirectory),
|
2014-08-31 13:34:31 +02:00
|
|
|
|
2014-11-19 22:00:50 +01:00
|
|
|
\Szurubooru\RouteRepository::class => DI\object()->constructor(DI\link('routes')),
|
2014-09-14 16:16:15 +02:00
|
|
|
\Szurubooru\Upgrades\UpgradeRepository::class => DI\object()->constructor(DI\link('upgrades')),
|
|
|
|
|
|
|
|
'upgrades' => DI\factory(function (DI\container $container) {
|
|
|
|
return [
|
2014-11-09 17:32:16 +01:00
|
|
|
$container->get(\Szurubooru\Upgrades\Upgrade00::class),
|
2014-09-14 16:16:15 +02:00
|
|
|
$container->get(\Szurubooru\Upgrades\Upgrade01::class),
|
2014-09-14 16:44:57 +02:00
|
|
|
$container->get(\Szurubooru\Upgrades\Upgrade02::class),
|
2014-09-15 11:38:24 +02:00
|
|
|
$container->get(\Szurubooru\Upgrades\Upgrade03::class),
|
2014-09-18 19:30:12 +02:00
|
|
|
$container->get(\Szurubooru\Upgrades\Upgrade04::class),
|
2014-09-21 09:35:43 +02:00
|
|
|
$container->get(\Szurubooru\Upgrades\Upgrade05::class),
|
2014-09-21 09:58:04 +02:00
|
|
|
$container->get(\Szurubooru\Upgrades\Upgrade06::class),
|
2014-09-24 23:24:51 +02:00
|
|
|
$container->get(\Szurubooru\Upgrades\Upgrade07::class),
|
2014-09-25 23:53:47 +02:00
|
|
|
$container->get(\Szurubooru\Upgrades\Upgrade08::class),
|
2014-09-26 20:41:28 +02:00
|
|
|
$container->get(\Szurubooru\Upgrades\Upgrade09::class),
|
2014-09-27 21:33:31 +02:00
|
|
|
$container->get(\Szurubooru\Upgrades\Upgrade10::class),
|
2014-09-28 15:21:25 +02:00
|
|
|
$container->get(\Szurubooru\Upgrades\Upgrade11::class),
|
2014-09-29 19:16:33 +02:00
|
|
|
$container->get(\Szurubooru\Upgrades\Upgrade12::class),
|
2014-10-04 12:02:58 +02:00
|
|
|
$container->get(\Szurubooru\Upgrades\Upgrade13::class),
|
2014-10-04 12:06:50 +02:00
|
|
|
$container->get(\Szurubooru\Upgrades\Upgrade14::class),
|
2014-10-05 14:54:21 +02:00
|
|
|
$container->get(\Szurubooru\Upgrades\Upgrade15::class),
|
2014-10-05 16:19:08 +02:00
|
|
|
$container->get(\Szurubooru\Upgrades\Upgrade16::class),
|
2014-10-05 22:26:56 +02:00
|
|
|
$container->get(\Szurubooru\Upgrades\Upgrade17::class),
|
2014-10-06 21:16:11 +02:00
|
|
|
$container->get(\Szurubooru\Upgrades\Upgrade18::class),
|
2014-10-09 09:45:06 +02:00
|
|
|
$container->get(\Szurubooru\Upgrades\Upgrade19::class),
|
2014-10-11 19:37:19 +02:00
|
|
|
$container->get(\Szurubooru\Upgrades\Upgrade20::class),
|
2014-10-10 19:46:33 +02:00
|
|
|
$container->get(\Szurubooru\Upgrades\Upgrade21::class),
|
2014-10-12 12:44:21 +02:00
|
|
|
$container->get(\Szurubooru\Upgrades\Upgrade22::class),
|
2014-10-14 22:56:15 +02:00
|
|
|
$container->get(\Szurubooru\Upgrades\Upgrade23::class),
|
2014-10-15 16:00:03 +02:00
|
|
|
$container->get(\Szurubooru\Upgrades\Upgrade24::class),
|
2014-10-19 13:05:21 +02:00
|
|
|
$container->get(\Szurubooru\Upgrades\Upgrade25::class),
|
2014-10-20 20:15:45 +02:00
|
|
|
$container->get(\Szurubooru\Upgrades\Upgrade26::class),
|
2014-10-25 12:27:04 +02:00
|
|
|
$container->get(\Szurubooru\Upgrades\Upgrade27::class),
|
2014-11-06 19:52:40 +01:00
|
|
|
$container->get(\Szurubooru\Upgrades\Upgrade28::class),
|
2014-11-07 13:43:07 +01:00
|
|
|
$container->get(\Szurubooru\Upgrades\Upgrade29::class),
|
2014-11-09 14:04:44 +01:00
|
|
|
$container->get(\Szurubooru\Upgrades\Upgrade30::class),
|
2014-11-09 16:01:02 +01:00
|
|
|
$container->get(\Szurubooru\Upgrades\Upgrade31::class),
|
2014-11-09 16:12:36 +01:00
|
|
|
$container->get(\Szurubooru\Upgrades\Upgrade32::class),
|
2014-11-09 17:04:04 +01:00
|
|
|
$container->get(\Szurubooru\Upgrades\Upgrade33::class),
|
2014-11-19 10:22:59 +01:00
|
|
|
$container->get(\Szurubooru\Upgrades\Upgrade34::class),
|
2014-09-14 16:16:15 +02:00
|
|
|
];
|
|
|
|
}),
|
2014-08-31 13:34:31 +02:00
|
|
|
|
2014-11-19 22:00:50 +01:00
|
|
|
'routes' => DI\factory(function (DI\container $container) {
|
|
|
|
return [
|
|
|
|
$container->get(\Szurubooru\Routes\Login::class),
|
2014-11-21 10:26:41 +01:00
|
|
|
$container->get(\Szurubooru\Routes\GetGlobals::class),
|
2014-11-21 10:33:15 +01:00
|
|
|
$container->get(\Szurubooru\Routes\GetHistory::class),
|
2014-11-20 10:12:34 +01:00
|
|
|
$container->get(\Szurubooru\Routes\Comments\AddComment::class),
|
|
|
|
$container->get(\Szurubooru\Routes\Comments\EditComment::class),
|
|
|
|
$container->get(\Szurubooru\Routes\Comments\DeleteComment::class),
|
|
|
|
$container->get(\Szurubooru\Routes\Comments\GetComments::class),
|
|
|
|
$container->get(\Szurubooru\Routes\Comments\GetPostComments::class),
|
2014-11-20 14:06:37 +01:00
|
|
|
$container->get(\Szurubooru\Routes\Favorites\GetFavoriteUsers::class),
|
|
|
|
$container->get(\Szurubooru\Routes\Favorites\AddToFavorites::class),
|
|
|
|
$container->get(\Szurubooru\Routes\Favorites\RemoveFromFavorites::class),
|
2014-11-21 12:45:47 +01:00
|
|
|
$container->get(\Szurubooru\Routes\Posts\CreatePost::class),
|
|
|
|
$container->get(\Szurubooru\Routes\Posts\DeletePost::class),
|
|
|
|
$container->get(\Szurubooru\Routes\Posts\FeaturePost::class),
|
|
|
|
$container->get(\Szurubooru\Routes\Posts\GetFeaturedPost::class),
|
|
|
|
$container->get(\Szurubooru\Routes\Posts\GetPost::class),
|
2014-11-21 11:27:51 +01:00
|
|
|
$container->get(\Szurubooru\Routes\Posts\GetPostContent::class),
|
|
|
|
$container->get(\Szurubooru\Routes\Posts\GetPostThumbnail::class),
|
2014-11-21 12:45:47 +01:00
|
|
|
$container->get(\Szurubooru\Routes\Posts\GetPosts::class),
|
|
|
|
$container->get(\Szurubooru\Routes\Posts\UpdatePost::class),
|
2014-11-21 12:54:33 +01:00
|
|
|
$container->get(\Szurubooru\Routes\Posts\Notes\AddPostNote::class),
|
|
|
|
$container->get(\Szurubooru\Routes\Posts\Notes\DeletePostNote::class),
|
|
|
|
$container->get(\Szurubooru\Routes\Posts\Notes\GetPostNotes::class),
|
|
|
|
$container->get(\Szurubooru\Routes\Posts\Notes\UpdatePostNote::class),
|
2014-11-21 15:49:53 +01:00
|
|
|
$container->get(\Szurubooru\Routes\Tags\DeleteTag::class),
|
|
|
|
$container->get(\Szurubooru\Routes\Tags\GetTag::class),
|
|
|
|
$container->get(\Szurubooru\Routes\Tags\GetTagSiblings::class),
|
|
|
|
$container->get(\Szurubooru\Routes\Tags\GetTags::class),
|
|
|
|
$container->get(\Szurubooru\Routes\Tags\MergeTags::class),
|
|
|
|
$container->get(\Szurubooru\Routes\Tags\UpdateTag::class),
|
2014-11-21 21:31:03 +01:00
|
|
|
$container->get(\Szurubooru\Routes\Users\ActivateAccount::class),
|
|
|
|
$container->get(\Szurubooru\Routes\Users\CreateUser::class),
|
|
|
|
$container->get(\Szurubooru\Routes\Users\DeleteUser::class),
|
|
|
|
$container->get(\Szurubooru\Routes\Users\FinishActivation::class),
|
|
|
|
$container->get(\Szurubooru\Routes\Users\FinishPasswordReset::class),
|
|
|
|
$container->get(\Szurubooru\Routes\Users\GetUser::class),
|
2014-11-21 21:44:38 +01:00
|
|
|
$container->get(\Szurubooru\Routes\Users\GetUserAvatar::class),
|
2014-11-21 21:31:03 +01:00
|
|
|
$container->get(\Szurubooru\Routes\Users\GetUsers::class),
|
|
|
|
$container->get(\Szurubooru\Routes\Users\PasswordReset::class),
|
|
|
|
$container->get(\Szurubooru\Routes\Users\UpdateUser::class),
|
2014-11-21 21:42:05 +01:00
|
|
|
$container->get(\Szurubooru\Routes\Scores\GetCommentScore::class),
|
|
|
|
$container->get(\Szurubooru\Routes\Scores\SetCommentScore::class),
|
|
|
|
$container->get(\Szurubooru\Routes\Scores\GetPostScore::class),
|
|
|
|
$container->get(\Szurubooru\Routes\Scores\SetPostScore::class),
|
2014-11-19 22:00:50 +01:00
|
|
|
];
|
|
|
|
}),
|
2014-08-30 15:04:33 +02:00
|
|
|
];
|