diff --git a/src/Bootstrap.php b/src/Bootstrap.php index 63bdc47..26f701c 100644 --- a/src/Bootstrap.php +++ b/src/Bootstrap.php @@ -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)); } } } diff --git a/src/LibraryConfiguration.php b/src/LibraryConfiguration.php index af3154d..9757ec9 100644 --- a/src/LibraryConfiguration.php +++ b/src/LibraryConfiguration.php @@ -210,7 +210,7 @@ class LibraryConfiguration $this->daenerysCommands = []; foreach ($list as $command) { - $this->daenerysCommands = $this->rootNamespace . $command; + $this->daenerysCommands[] = $this->rootNamespace . $command; } }