| @@ 57-74 (lines=18) @@ | ||
| 54 | * @param MapStorage $mapStorage |
|
| 55 | * @param JukeboxWindowFactory $jukeboxWindowFactory |
|
| 56 | */ |
|
| 57 | public function __construct( |
|
| 58 | Connection $connection, |
|
| 59 | ChatNotification $chatNotification, |
|
| 60 | JukeboxService $jukeboxService, |
|
| 61 | AdminGroups $adminGroups, |
|
| 62 | PlayerStorage $playerStorage, |
|
| 63 | MapStorage $mapStorage, |
|
| 64 | JukeboxWindowFactory $jukeboxWindowFactory |
|
| 65 | ) { |
|
| 66 | ||
| 67 | $this->jukeboxService = $jukeboxService; |
|
| 68 | $this->connetion = $connection; |
|
| 69 | $this->chatNotification = $chatNotification; |
|
| 70 | $this->adminGroups = $adminGroups; |
|
| 71 | $this->playerStorage = $playerStorage; |
|
| 72 | $this->mapStorage = $mapStorage; |
|
| 73 | $this->jukeboxWindowFactory = $jukeboxWindowFactory; |
|
| 74 | } |
|
| 75 | ||
| 76 | ||
| 77 | public function jukeboxCommand($login, $action) |
|
| @@ 92-111 (lines=20) @@ | ||
| 89 | * @param JukeboxService $jukebox |
|
| 90 | * @param FileSystem $fileSystem |
|
| 91 | */ |
|
| 92 | public function __construct( |
|
| 93 | Connection $connection, |
|
| 94 | ChatNotification $chatNotification, |
|
| 95 | Http $http, |
|
| 96 | AdminGroups $adminGroups, |
|
| 97 | GameDataStorage $gameDataStorage, |
|
| 98 | Console $console, |
|
| 99 | LoggerInterface $logger, |
|
| 100 | JukeboxService $jukebox, |
|
| 101 | FileSystem $fileSystem |
|
| 102 | ) { |
|
| 103 | $this->connection = $connection; |
|
| 104 | $this->chatNotification = $chatNotification; |
|
| 105 | $this->http = $http; |
|
| 106 | $this->adminGroups = $adminGroups; |
|
| 107 | $this->gameDataStorage = $gameDataStorage; |
|
| 108 | $this->console = $console; |
|
| 109 | $this->jukebox = $jukebox; |
|
| 110 | $this->fileSystem = $fileSystem; |
|
| 111 | } |
|
| 112 | ||
| 113 | /** @var Mxmap[] $maps */ |
|
| 114 | public function addAllMaps($login, $maps) |
|