1
0
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:
Franz Liedke
2020-04-21 16:48:36 +02:00
parent 3f0f89afb1
commit df8f73bd3d
2 changed files with 2 additions and 2 deletions

View File

@@ -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...');