diff --git a/src/Console/Server.php b/src/Console/Server.php index a5a9e1d1a..5cff344b2 100644 --- a/src/Console/Server.php +++ b/src/Console/Server.php @@ -47,7 +47,10 @@ class Server extends AbstractServer ]; foreach ($commands as $command) { - $console->add($app->make($command)); + $console->add($app->make( + $command, + ['config' => $app->make('flarum.config')] + )); } return $console; diff --git a/src/Debug/Console/InfoCommand.php b/src/Debug/Console/InfoCommand.php index 4f11e779b..deedc56cc 100644 --- a/src/Debug/Console/InfoCommand.php +++ b/src/Debug/Console/InfoCommand.php @@ -22,11 +22,18 @@ class InfoCommand extends AbstractCommand protected $extensions; /** - * @param ExtensionManager $extensions + * @var array */ - public function __construct(ExtensionManager $extensions) + protected $config; + + /** + * @param ExtensionManager $extensions + * @param array $config + */ + public function __construct(ExtensionManager $extensions, array $config) { $this->extensions = $extensions; + $this->config = $config; parent::__construct(); } @@ -57,5 +64,7 @@ class InfoCommand extends AbstractCommand $this->info("EXT $name $version"); } + + $this->info('Base URL: '.$this->config['url']); } }