diff --git a/Classes/Updates/UpdateAuthors.php b/Classes/Updates/UpdateAuthors.php index 1da61745961948e0d740db28c9241edc408c6d89..eb56fa715436765a2e45b831a0edc1f0f1a7b655 100644 --- a/Classes/Updates/UpdateAuthors.php +++ b/Classes/Updates/UpdateAuthors.php @@ -38,6 +38,11 @@ use TYPO3\CMS\Install\Updates\UpgradeWizardInterface; * Migrate template db entries to the correct root pages */ class UpdateAuthors implements UpgradeWizardInterface { + /** + * The wizard identifier + */ + const IDENTIFIER = 'tx_sgnews_update_authors'; + /** * Retrieves the next site root in the page hierarchy from the current page * @@ -62,7 +67,7 @@ class UpdateAuthors implements UpgradeWizardInterface { * @return string */ public function getIdentifier(): string { - return 'tx_sgnews_update_authors'; + return self::IDENTIFIER; } /** diff --git a/ext_localconf.php b/ext_localconf.php index baa34d741a5b4ce912b47f97a9ffda730cedc4b5..eb2b01c87c1951c146c27a362177e6abf8354422 100644 --- a/ext_localconf.php +++ b/ext_localconf.php @@ -145,7 +145,7 @@ call_user_func( ); // Add upgrade wizards - $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['tx_sgnews_update_authors'] = + $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update'][\SGalinski\SgNews\Updates\UpdateAuthors::IDENTIFIER] = \SGalinski\SgNews\Updates\UpdateAuthors::class; }, 'sg_news' );