@@ -4,8 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use eXpansion\Framework\AdminGroups\Model\AbstractAdminChatCommand; |
| 6 | 6 | use eXpansion\Framework\Core\Helpers\ChatNotification; |
| 7 | -use eXpansion\Framework\Core\Services\Application; |
|
| 8 | -use eXpansion\Framework\Core\Storage\PlayerStorage; |
|
| 9 | 7 | use Symfony\Component\Console\Input\InputInterface; |
| 10 | 8 | |
| 11 | 9 | /** |
@@ -89,6 +89,9 @@ |
||
| 89 | 89 | } |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | + /** |
|
| 93 | + * @param string $command |
|
| 94 | + */ |
|
| 92 | 95 | protected function runCommand($command, $playerLogin, SymfonyStyle $sfs) |
| 93 | 96 | { |
| 94 | 97 | $process = new Process($command); |
@@ -92,9 +92,9 @@ |
||
| 92 | 92 | protected function runCommand($command, $playerLogin, SymfonyStyle $sfs) |
| 93 | 93 | { |
| 94 | 94 | $process = new Process($command); |
| 95 | - $process->setWorkingDirectory($this->getContainer()->getParameter('kernel.root_dir') . '/..'); |
|
| 95 | + $process->setWorkingDirectory($this->getContainer()->getParameter('kernel.root_dir').'/..'); |
|
| 96 | 96 | |
| 97 | - $process->run(function ($type, $buffer) use ($playerLogin, $sfs) { |
|
| 97 | + $process->run(function($type, $buffer) use ($playerLogin, $sfs) { |
|
| 98 | 98 | $this->notifyPlayer($type, $buffer, $playerLogin); |
| 99 | 99 | $sfs->writeln($buffer); |
| 100 | 100 | }); |