d52ab0b1e9
Use 404 template instead of default Slim error page if the route is not found. Fixes #827
51 lines
2 KiB
PHP
51 lines
2 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shaarli\Container;
|
|
|
|
use Shaarli\Bookmark\BookmarkServiceInterface;
|
|
use Shaarli\Config\ConfigManager;
|
|
use Shaarli\Feed\FeedBuilder;
|
|
use Shaarli\Formatter\FormatterFactory;
|
|
use Shaarli\History;
|
|
use Shaarli\Http\HttpAccess;
|
|
use Shaarli\Netscape\NetscapeBookmarkUtils;
|
|
use Shaarli\Plugin\PluginManager;
|
|
use Shaarli\Render\PageBuilder;
|
|
use Shaarli\Render\PageCacheManager;
|
|
use Shaarli\Security\CookieManager;
|
|
use Shaarli\Security\LoginManager;
|
|
use Shaarli\Security\SessionManager;
|
|
use Shaarli\Thumbnailer;
|
|
use Shaarli\Updater\Updater;
|
|
use Slim\Container;
|
|
|
|
/**
|
|
* Extension of Slim container to document the injected objects.
|
|
*
|
|
* @property string $basePath Shaarli's instance base path (e.g. `/shaarli/`)
|
|
* @property BookmarkServiceInterface $bookmarkService
|
|
* @property CookieManager $cookieManager
|
|
* @property ConfigManager $conf
|
|
* @property mixed[] $environment $_SERVER automatically injected by Slim
|
|
* @property callable $errorHandler Overrides default Slim exception display
|
|
* @property FeedBuilder $feedBuilder
|
|
* @property FormatterFactory $formatterFactory
|
|
* @property History $history
|
|
* @property HttpAccess $httpAccess
|
|
* @property LoginManager $loginManager
|
|
* @property NetscapeBookmarkUtils $netscapeBookmarkUtils
|
|
* @property callable $notFoundHandler Overrides default Slim exception display
|
|
* @property PageBuilder $pageBuilder
|
|
* @property PageCacheManager $pageCacheManager
|
|
* @property callable $phpErrorHandler Overrides default Slim PHP error display
|
|
* @property PluginManager $pluginManager
|
|
* @property SessionManager $sessionManager
|
|
* @property Thumbnailer $thumbnailer
|
|
* @property Updater $updater
|
|
*/
|
|
class ShaarliContainer extends Container
|
|
{
|
|
|
|
}
|