mirror of
https://github.com/flarum/core.git
synced 2025-10-14 16:34:26 +02:00
Statically access Flarum version everywhere
One less reason to inject the huge Application class. Refs #2055.
This commit is contained in:
@@ -86,7 +86,7 @@ class MigrateCommand extends AbstractCommand
|
||||
}
|
||||
}
|
||||
|
||||
$this->container->make(SettingsRepositoryInterface::class)->set('version', $this->app->version());
|
||||
$this->container->make(SettingsRepositoryInterface::class)->set('version', Application::VERSION);
|
||||
|
||||
$this->info('Publishing assets...');
|
||||
|
||||
|
Reference in New Issue
Block a user