mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 22:43:19 +00:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user