Fixes the addition of daenerys commands by modules
This commit is contained in:
+1
-1
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -210,7 +210,7 @@ class LibraryConfiguration
|
||||
$this->daenerysCommands = [];
|
||||
|
||||
foreach ($list as $command) {
|
||||
$this->daenerysCommands = $this->rootNamespace . $command;
|
||||
$this->daenerysCommands[] = $this->rootNamespace . $command;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user