Skip to content

Commit

Permalink
feat: Load UserManager from DIC
Browse files Browse the repository at this point in the history
  • Loading branch information
KminekMatej committed Sep 7, 2024
1 parent 7289ca6 commit 4aa7798
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions app/module/core/manager/StringsManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 4aa7798

Please sign in to comment.