diff --git a/Classes/Updates/DepartmentUpdateWizard.php b/Classes/Updates/DepartmentUpdateWizard.php index 6515b6d0aa3948f6e6eac9c7601511a9fd134f69..f9f97de074973cdd5d13ab9ba033962b4e177643 100644 --- a/Classes/Updates/DepartmentUpdateWizard.php +++ b/Classes/Updates/DepartmentUpdateWizard.php @@ -38,6 +38,10 @@ use TYPO3\CMS\Install\Updates\UpgradeWizardInterface; * @author Kevin Ditscheid <kevin.ditscheid@sgalinski.de> */ class DepartmentUpdateWizard implements UpgradeWizardInterface { + /** + * The wizard identifier + */ + const IDENTIFIER = 'tx_sgjobs_departmentupdatewizward'; /** * Check if the job table has a deleted area field @@ -86,7 +90,7 @@ class DepartmentUpdateWizard implements UpgradeWizardInterface { * @return string */ public function getIdentifier(): string { - return 'tx_sgjobs_departmentupdatewizward'; + return self::IDENTIFIER; } /** diff --git a/ext_localconf.php b/ext_localconf.php index 6ec77b8e69793cce459f33b2717a18a53fc7c2a6..1b2bdb97573e6d0c2a0cc115154259d989ed8c86 100644 --- a/ext_localconf.php +++ b/ext_localconf.php @@ -98,7 +98,7 @@ call_user_func( ); // Register the upgrade wizard - $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['tx_sgjobs_departmentupdatewizward'] + $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update'][\SGalinski\SgJobs\Updates\DepartmentUpdateWizard::IDENTIFIER] = \SGalinski\SgJobs\Updates\DepartmentUpdateWizard::class; if (version_compare(\TYPO3\CMS\Core\Utility\VersionNumberUtility::getCurrentTypo3Version(), '9.0.0', '>')) {