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

[TASK] Use identifier constants for the upgrade wizards

parent 6aee664b
No related branches found
No related tags found
1 merge request!25Feature upgrade to typo3 10
...@@ -38,6 +38,11 @@ use TYPO3\CMS\Install\Updates\UpgradeWizardInterface; ...@@ -38,6 +38,11 @@ use TYPO3\CMS\Install\Updates\UpgradeWizardInterface;
* Migrate template db entries to the correct root pages * Migrate template db entries to the correct root pages
*/ */
class UpdateAuthors implements UpgradeWizardInterface { 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 * Retrieves the next site root in the page hierarchy from the current page
* *
...@@ -62,7 +67,7 @@ class UpdateAuthors implements UpgradeWizardInterface { ...@@ -62,7 +67,7 @@ class UpdateAuthors implements UpgradeWizardInterface {
* @return string * @return string
*/ */
public function getIdentifier(): string { public function getIdentifier(): string {
return 'tx_sgnews_update_authors'; return self::IDENTIFIER;
} }
/** /**
......
...@@ -145,7 +145,7 @@ call_user_func( ...@@ -145,7 +145,7 @@ call_user_func(
); );
// Add upgrade wizards // 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; \SGalinski\SgNews\Updates\UpdateAuthors::class;
}, 'sg_news' }, 'sg_news'
); );
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