更新 'installer/Migration/V5_4_0/Migration.php'

This commit is contained in:
zhongjin 2023-05-05 22:55:21 +08:00
parent 607f2b9b13
commit 164ed1966d

View File

@ -49,7 +49,7 @@ class Migration extends AbstractMigration
$this->getTranslationHelper()->addTranslations($langCode);
}
//$this->updateLangStringVersion($this->getVersion());
$this->updateLangStringVersion($this->getVersion());
$this->getConnection()->createQueryBuilder()
@ -138,6 +138,26 @@ class Migration extends AbstractMigration
return '5.4.0';
}
public function getLangStringHelper(): LangStringHelper
{
if (is_null($this->langStringHelper)) {
$this->langStringHelper = new LangStringHelper(
$this->getConnection()
);
}
return $this->langStringHelper;
}
public function getTranslationHelper(): TranslationHelper
{
if (is_null($this->translationHelper)) {
$this->translationHelper = new TranslationHelper(
$this->getConnection()
);
}
return $this->translationHelper;
}
private function updateLangStringVersion(string $version): void
{
$qb = $this->createQueryBuilder()
@ -148,25 +168,6 @@ class Migration extends AbstractMigration
->executeStatement();
}
private function getLangStringHelper(): LangStringHelper
{
if (is_null($this->langStringHelper)) {
$this->langStringHelper = new LangStringHelper(
$this->getConnection()
);
}
return $this->langStringHelper;
}
private function getTranslationHelper(): TranslationHelper
{
if (is_null($this->translationHelper)) {
$this->translationHelper = new TranslationHelper(
$this->getConnection()
);
}
return $this->translationHelper;
}
private function modifyDefaultRequiredPasswordStrength(): void
{