Skip to content

Commit

Permalink
Fixes the addition of daenerys commands by modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Vassyli committed Aug 22, 2016
1 parent d1f6be4 commit db95b84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public function addDaenerysCommands(Application $application)
foreach ($this->libraryConfigurationManager->getConfigurations() as $config) {
$commands = $config->getDaenerysCommands();
foreach ($commands as $command) {
$application->add(new $command($game));
$application->add(new $command($this->game));
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/LibraryConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ protected function findDaenerysCommands()
$this->daenerysCommands = [];

foreach ($list as $command) {
$this->daenerysCommands = $this->rootNamespace . $command;
$this->daenerysCommands[] = $this->rootNamespace . $command;
}
}

Expand Down

0 comments on commit db95b84

Please sign in to comment.