Fixes the addition of daenerys commands by modules

This commit is contained in:
Vassyli
2016-08-19 07:59:36 +02:00
parent d1f6be4fb5
commit db95b84452
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -190,7 +190,7 @@ class Bootstrap
foreach ($this->libraryConfigurationManager->getConfigurations() as $config) {
$commands = $config->getDaenerysCommands();
foreach ($commands as $command) {
$application->add(new $command($game));
$application->add(new $command($this->game));
}
}
}
+1 -1
View File
@@ -210,7 +210,7 @@ class LibraryConfiguration
$this->daenerysCommands = [];
foreach ($list as $command) {
$this->daenerysCommands = $this->rootNamespace . $command;
$this->daenerysCommands[] = $this->rootNamespace . $command;
}
}