Skip to content
Snippets Groups Projects
Commit db600279 authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[TASK] Use identifier constants for the upgrade wizards

parent 944d59a6
No related branches found
Tags 2.0.4
1 merge request!23Feature upgrade to typo3 10
...@@ -38,6 +38,10 @@ use TYPO3\CMS\Install\Updates\UpgradeWizardInterface; ...@@ -38,6 +38,10 @@ use TYPO3\CMS\Install\Updates\UpgradeWizardInterface;
* @author Kevin Ditscheid <kevin.ditscheid@sgalinski.de> * @author Kevin Ditscheid <kevin.ditscheid@sgalinski.de>
*/ */
class DepartmentUpdateWizard implements UpgradeWizardInterface { class DepartmentUpdateWizard implements UpgradeWizardInterface {
/**
* The wizard identifier
*/
const IDENTIFIER = 'tx_sgjobs_departmentupdatewizward';
/** /**
* Check if the job table has a deleted area field * Check if the job table has a deleted area field
...@@ -86,7 +90,7 @@ class DepartmentUpdateWizard implements UpgradeWizardInterface { ...@@ -86,7 +90,7 @@ class DepartmentUpdateWizard implements UpgradeWizardInterface {
* @return string * @return string
*/ */
public function getIdentifier(): string { public function getIdentifier(): string {
return 'tx_sgjobs_departmentupdatewizward'; return self::IDENTIFIER;
} }
/** /**
......
...@@ -98,7 +98,7 @@ call_user_func( ...@@ -98,7 +98,7 @@ call_user_func(
); );
// Register the upgrade wizard // 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; = \SGalinski\SgJobs\Updates\DepartmentUpdateWizard::class;
if (version_compare(\TYPO3\CMS\Core\Utility\VersionNumberUtility::getCurrentTypo3Version(), '9.0.0', '>')) { if (version_compare(\TYPO3\CMS\Core\Utility\VersionNumberUtility::getCurrentTypo3Version(), '9.0.0', '>')) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment