Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sg_news
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TYPO3
sg_news
Commits
6adef852
Commit
6adef852
authored
4 years ago
by
Kevin Ditscheid
Browse files
Options
Downloads
Patches
Plain Diff
[TASK] Use identifier constants for the upgrade wizards
parent
6aee664b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!25
Feature upgrade to typo3 10
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Classes/Updates/UpdateAuthors.php
+6
-1
6 additions, 1 deletion
Classes/Updates/UpdateAuthors.php
ext_localconf.php
+1
-1
1 addition, 1 deletion
ext_localconf.php
with
7 additions
and
2 deletions
Classes/Updates/UpdateAuthors.php
+
6
−
1
View file @
6adef852
...
...
@@ -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
;
}
/**
...
...
This diff is collapsed.
Click to expand it.
ext_localconf.php
+
1
−
1
View file @
6adef852
...
...
@@ -145,7 +145,7 @@ call_user_func(
);
// Add upgrade wizards
$GLOBALS
[
'TYPO3_CONF_VARS'
][
'SC_OPTIONS'
][
'ext/install'
][
'update'
][
'tx_sgn
ews
_u
pdate
_authors'
]
=
$GLOBALS
[
'TYPO3_CONF_VARS'
][
'SC_OPTIONS'
][
'ext/install'
][
'update'
][
\SGalinski\SgN
ews
\U
pdate
s\UpdateAuthors
::
IDENTIFIER
]
=
\SGalinski\SgNews\Updates\UpdateAuthors
::
class
;
},
'sg_news'
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment