From db95b84452893a9660135a813fa648e5651c3b6a Mon Sep 17 00:00:00 2001 From: Vassyli Date: Fri, 19 Aug 2016 07:59:36 +0200 Subject: [PATCH] Fixes the addition of daenerys commands by modules --- src/Bootstrap.php | 2 +- src/LibraryConfiguration.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; } }