From 4aa7798216f0b11942cdfc2ffb2d6dc643805e0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Km=C3=ADnek?= Date: Sat, 7 Sep 2024 13:31:21 +0200 Subject: [PATCH] feat: Load UserManager from DIC --- app/module/core/manager/StringsManager.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/app/module/core/manager/StringsManager.php b/app/module/core/manager/StringsManager.php index fb59efc7..0f4969f2 100644 --- a/app/module/core/manager/StringsManager.php +++ b/app/module/core/manager/StringsManager.php @@ -9,7 +9,8 @@ use Tracy\ILogger; use Tymy\Module\Team\Manager\TeamManager; use Tymy\Module\User\Manager\UserManager; -use Tymy\Module\User\Model\User as User2; + +use function count; /** * Description of StringsManager @@ -20,10 +21,13 @@ class StringsManager { public const TABLE = "strings"; public const LC = ["CZ" => "cs", "EN" => "en", "FR" => "fr", "PL" => "pl"]; - private UserManager $userManager; - public function __construct(private Explorer $database, private User $user, private TeamManager $teamManager) - { + public function __construct( + private Explorer $database, + private User $user, + private TeamManager $teamManager, + private UserManager $userManager + ) { } public function translate($message, ...$parameters): string