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