From 74092700bccebf05184ec8ad9171ca889d07f28d Mon Sep 17 00:00:00 2001 From: Lee Peuker Date: Thu, 7 Sep 2023 16:49:01 +0200 Subject: [PATCH] Cleanup --- src/Factory.php | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/Factory.php b/src/Factory.php index acad5e47..2f797959 100644 --- a/src/Factory.php +++ b/src/Factory.php @@ -8,9 +8,6 @@ use Monolog\Formatter\LineFormatter; use Monolog\Handler\StreamHandler; use Monolog\Logger; -use Movary\Api\Github\GithubApi; -use Movary\Api\Jellyfin\JellyfinApi; -use Movary\Api\Plex\PlexApi; use Movary\Api\Tmdb; use Movary\Api\Tmdb\TmdbUrlGenerator; use Movary\Api\Trakt\Cache\User\Movie\Watched; @@ -22,27 +19,20 @@ use Movary\Domain\Movie\Watchlist\MovieWatchlistApi; use Movary\Domain\User; use Movary\Domain\User\Service\Authentication; -use Movary\Domain\User\Service\TwoFactorAuthenticationApi; use Movary\Domain\User\UserApi; use Movary\HttpController\Api\OpenApiController; -use Movary\HttpController\Middleware; use Movary\HttpController\Web\CreateUserController; use Movary\HttpController\Web\JobController; use Movary\HttpController\Web\LandingPageController; -use Movary\HttpController\Web\SettingsController; use Movary\JobQueue\JobQueueApi; use Movary\JobQueue\JobQueueScheduler; -use Movary\Service\Dashboard\DashboardFactory; -use Movary\Service\Email\EmailService; use Movary\Service\Export\ExportService; use Movary\Service\Export\ExportWriter; use Movary\Service\ImageCacheService; use Movary\Service\JobProcessor; -use Movary\Service\Letterboxd\LetterboxdExporter; use Movary\Service\Letterboxd\Service\LetterboxdCsvValidator; use Movary\Service\ServerSettings; use Movary\Service\UrlGenerator; -use Movary\Service\WebhookUrlBuilder; use Movary\Util\File; use Movary\Util\SessionWrapper; use Movary\ValueObject\Config; @@ -67,8 +57,6 @@ class Factory private const DEFAULT_LOG_LEVEL = LogLevel::WARNING; - private const DEFAULT_APPLICATION_VERSION = 'unknown'; - private const DEFAULT_TMDB_IMAGE_CACHING = false; private const DEFAULT_LOG_ENABLE_STACKTRACE = false; @@ -393,11 +381,6 @@ private static function createLoggerStreamHandlerStdout(ContainerInterface $cont return $streamHandler; } - private static function getApplicationVersion(Config $config) : string - { - return $config->getAsString('APPLICATION_VERSION', self::DEFAULT_APPLICATION_VERSION); - } - private static function getLogLevel(Config $config) : string { return $config->getAsString('LOG_LEVEL', self::DEFAULT_LOG_LEVEL);