diff options
Diffstat (limited to 'application/container/ShaarliContainer.php')
-rw-r--r-- | application/container/ShaarliContainer.php | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/application/container/ShaarliContainer.php b/application/container/ShaarliContainer.php new file mode 100644 index 00000000..66e669aa --- /dev/null +++ b/application/container/ShaarliContainer.php | |||
@@ -0,0 +1,51 @@ | |||
1 | <?php | ||
2 | |||
3 | declare(strict_types=1); | ||
4 | |||
5 | namespace Shaarli\Container; | ||
6 | |||
7 | use Shaarli\Bookmark\BookmarkServiceInterface; | ||
8 | use Shaarli\Config\ConfigManager; | ||
9 | use Shaarli\Feed\FeedBuilder; | ||
10 | use Shaarli\Formatter\FormatterFactory; | ||
11 | use Shaarli\History; | ||
12 | use Shaarli\Http\HttpAccess; | ||
13 | use Shaarli\Netscape\NetscapeBookmarkUtils; | ||
14 | use Shaarli\Plugin\PluginManager; | ||
15 | use Shaarli\Render\PageBuilder; | ||
16 | use Shaarli\Render\PageCacheManager; | ||
17 | use Shaarli\Security\CookieManager; | ||
18 | use Shaarli\Security\LoginManager; | ||
19 | use Shaarli\Security\SessionManager; | ||
20 | use Shaarli\Thumbnailer; | ||
21 | use Shaarli\Updater\Updater; | ||
22 | use Slim\Container; | ||
23 | |||
24 | /** | ||
25 | * Extension of Slim container to document the injected objects. | ||
26 | * | ||
27 | * @property string $basePath Shaarli's instance base path (e.g. `/shaarli/`) | ||
28 | * @property BookmarkServiceInterface $bookmarkService | ||
29 | * @property CookieManager $cookieManager | ||
30 | * @property ConfigManager $conf | ||
31 | * @property mixed[] $environment $_SERVER automatically injected by Slim | ||
32 | * @property callable $errorHandler Overrides default Slim exception display | ||
33 | * @property FeedBuilder $feedBuilder | ||
34 | * @property FormatterFactory $formatterFactory | ||
35 | * @property History $history | ||
36 | * @property HttpAccess $httpAccess | ||
37 | * @property LoginManager $loginManager | ||
38 | * @property NetscapeBookmarkUtils $netscapeBookmarkUtils | ||
39 | * @property callable $notFoundHandler Overrides default Slim exception display | ||
40 | * @property PageBuilder $pageBuilder | ||
41 | * @property PageCacheManager $pageCacheManager | ||
42 | * @property callable $phpErrorHandler Overrides default Slim PHP error display | ||
43 | * @property PluginManager $pluginManager | ||
44 | * @property SessionManager $sessionManager | ||
45 | * @property Thumbnailer $thumbnailer | ||
46 | * @property Updater $updater | ||
47 | */ | ||
48 | class ShaarliContainer extends Container | ||
49 | { | ||
50 | |||
51 | } | ||