2020-01-18 17:50:11 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace Shaarli\Container;
|
|
|
|
|
|
|
|
use Shaarli\Bookmark\BookmarkServiceInterface;
|
|
|
|
use Shaarli\Config\ConfigManager;
|
2020-05-18 17:17:36 +02:00
|
|
|
use Shaarli\Feed\FeedBuilder;
|
2020-01-26 11:15:15 +01:00
|
|
|
use Shaarli\Formatter\FormatterFactory;
|
2020-01-18 17:50:11 +01:00
|
|
|
use Shaarli\History;
|
2020-06-06 14:01:03 +02:00
|
|
|
use Shaarli\Http\HttpAccess;
|
2020-06-17 15:55:31 +02:00
|
|
|
use Shaarli\Netscape\NetscapeBookmarkUtils;
|
2020-01-23 20:06:32 +01:00
|
|
|
use Shaarli\Plugin\PluginManager;
|
2020-01-18 17:50:11 +01:00
|
|
|
use Shaarli\Render\PageBuilder;
|
2020-01-23 21:52:03 +01:00
|
|
|
use Shaarli\Render\PageCacheManager;
|
2020-07-07 10:15:56 +02:00
|
|
|
use Shaarli\Security\CookieManager;
|
2020-01-18 17:50:11 +01:00
|
|
|
use Shaarli\Security\LoginManager;
|
|
|
|
use Shaarli\Security\SessionManager;
|
2020-06-06 14:01:03 +02:00
|
|
|
use Shaarli\Thumbnailer;
|
2020-07-06 08:04:35 +02:00
|
|
|
use Shaarli\Updater\Updater;
|
2020-01-18 17:50:11 +01:00
|
|
|
use Slim\Container;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Extension of Slim container to document the injected objects.
|
|
|
|
*
|
2020-09-12 12:42:19 +02:00
|
|
|
* @property string $basePath Shaarli's instance base path (e.g. `/shaarli/`)
|
2020-06-13 13:08:01 +02:00
|
|
|
* @property BookmarkServiceInterface $bookmarkService
|
2020-07-07 10:15:56 +02:00
|
|
|
* @property CookieManager $cookieManager
|
2020-01-18 17:50:11 +01:00
|
|
|
* @property ConfigManager $conf
|
2020-09-12 12:42:19 +02:00
|
|
|
* @property mixed[] $environment $_SERVER automatically injected by Slim
|
|
|
|
* @property callable $errorHandler Overrides default Slim exception display
|
2020-06-13 13:08:01 +02:00
|
|
|
* @property FeedBuilder $feedBuilder
|
|
|
|
* @property FormatterFactory $formatterFactory
|
2020-01-18 17:50:11 +01:00
|
|
|
* @property History $history
|
2020-06-13 13:08:01 +02:00
|
|
|
* @property HttpAccess $httpAccess
|
|
|
|
* @property LoginManager $loginManager
|
2020-06-17 15:55:31 +02:00
|
|
|
* @property NetscapeBookmarkUtils $netscapeBookmarkUtils
|
2020-09-12 12:42:19 +02:00
|
|
|
* @property callable $notFoundHandler Overrides default Slim exception display
|
2020-01-18 17:50:11 +01:00
|
|
|
* @property PageBuilder $pageBuilder
|
2020-01-23 21:52:03 +01:00
|
|
|
* @property PageCacheManager $pageCacheManager
|
2020-09-12 12:42:19 +02:00
|
|
|
* @property callable $phpErrorHandler Overrides default Slim PHP error display
|
2020-06-13 13:08:01 +02:00
|
|
|
* @property PluginManager $pluginManager
|
|
|
|
* @property SessionManager $sessionManager
|
2020-06-06 14:01:03 +02:00
|
|
|
* @property Thumbnailer $thumbnailer
|
2020-07-06 08:04:35 +02:00
|
|
|
* @property Updater $updater
|
2020-01-18 17:50:11 +01:00
|
|
|
*/
|
|
|
|
class ShaarliContainer extends Container
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|