PHRAS-3772 bin/setup system:config add option (#4164)

* add option no compile -s for bin/setup system:config

* check db connection on bin/console

* add -s on  migration script
This commit is contained in:
Aina Sitraka
2022-11-01 18:20:52 +03:00
committed by GitHub
parent d4a5b8b738
commit bc01476ea2
15 changed files with 178 additions and 75 deletions

View File

@@ -207,7 +207,11 @@ abstract class base implements cache_cacheableInterface
public function get_version()
{
if (! $this->version) {
$this->version = $this->versionRepository->getVersion();
try {
$this->version = $this->versionRepository->getVersion();
} catch(\Throwable $e) {
return PhraseaVersion\VersionRepository::DEFAULT_VERSION;
}
}
return $this->version;