diff options
Diffstat (limited to 'application/container/ShaarliContainer.php')
-rw-r--r-- | application/container/ShaarliContainer.php | 31 |
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 | ||
5 | namespace Shaarli\Container; | 5 | namespace Shaarli\Container; |
6 | 6 | ||
7 | use Psr\Log\LoggerInterface; | ||
7 | use Shaarli\Bookmark\BookmarkServiceInterface; | 8 | use Shaarli\Bookmark\BookmarkServiceInterface; |
8 | use Shaarli\Config\ConfigManager; | 9 | use Shaarli\Config\ConfigManager; |
10 | use Shaarli\Feed\FeedBuilder; | ||
11 | use Shaarli\Formatter\FormatterFactory; | ||
9 | use Shaarli\History; | 12 | use Shaarli\History; |
13 | use Shaarli\Http\HttpAccess; | ||
14 | use Shaarli\Http\MetadataRetriever; | ||
15 | use Shaarli\Netscape\NetscapeBookmarkUtils; | ||
10 | use Shaarli\Plugin\PluginManager; | 16 | use Shaarli\Plugin\PluginManager; |
11 | use Shaarli\Render\PageBuilder; | 17 | use Shaarli\Render\PageBuilder; |
18 | use Shaarli\Render\PageCacheManager; | ||
19 | use Shaarli\Security\CookieManager; | ||
12 | use Shaarli\Security\LoginManager; | 20 | use Shaarli\Security\LoginManager; |
13 | use Shaarli\Security\SessionManager; | 21 | use Shaarli\Security\SessionManager; |
22 | use Shaarli\Thumbnailer; | ||
23 | use Shaarli\Updater\Updater; | ||
14 | use Slim\Container; | 24 | use 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 | */ |
27 | class ShaarliContainer extends Container | 52 | class ShaarliContainer extends Container |
28 | { | 53 | { |