Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
automatic_updates-3411241
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
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
Issue forks
automatic_updates-3411241
Commits
aefc6e93
Commit
aefc6e93
authored
1 year ago
by
Adam G-H
Browse files
Options
Downloads
Patches
Plain Diff
Document
parent
79638877
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
package_manager/src/StageBase.php
+13
-4
13 additions, 4 deletions
package_manager/src/StageBase.php
with
13 additions
and
4 deletions
package_manager/src/StageBase.php
+
13
−
4
View file @
aefc6e93
...
@@ -201,8 +201,6 @@ abstract class StageBase implements LoggerAwareInterface {
...
@@ -201,8 +201,6 @@ abstract class StageBase implements LoggerAwareInterface {
/**
/**
* Gets the stage type.
* Gets the stage type.
*
*
* The recommended pattern is `MODULE:SUB_TYPE`.
*
* @return string
* @return string
* The stage type.
* The stage type.
*
*
...
@@ -224,11 +222,22 @@ abstract class StageBase implements LoggerAwareInterface {
...
@@ -224,11 +222,22 @@ abstract class StageBase implements LoggerAwareInterface {
/**
/**
* Returns the stage type.
* Returns the stage type.
*
*
* The stage type is the way a particular type of stage "identifies itself" to
* calling code. It is similar to a plugin ID. If external code needs to know
* exactly what sort of stage it's dealing with -- an unattended core updater,
* say, or a contributed project installer -- it should check the stage type.
*
* All concrete subclasses MUST explicitly implement this method, even if all
* All concrete subclasses MUST explicitly implement this method, even if all
* they do is call the parent method.
* they do is call the parent method. Since the stage type is the "source of
* truth" for calling code (including event subscribers) to know what kind of
* stage this is, this restriction ensures that a stage which extends another
* stage does not accidentally inherit its parent's type unless the
* programmer intends it.
*
*
* @return string
* @return string
* The stage type.
* The stage type. It is recommended that this be prefixed with the name of
* the providing module, like `MODULE_NAME:STAGE_TYPE`. For example,
* `package_manager:generic`.
*/
*/
abstract
protected
function
type
():
string
;
abstract
protected
function
type
():
string
;
...
...
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