Context
MMO\admin\helpers · 1 symbole · générée le 27 Oct 2026
Context
Context.php:16Everything one task needs to act on one target, and the place tasks hand results to each other:
- Espace de noms
MMO\admin\helpers- Voir
BuildTaskfills$artifact,ShipTaskreads it and fills$release,,ActivateTaskreads that and fills$previous, andRunnerturns the whole thing into oneDeploymentjournal entry at the end.
Index
| artifact | ||
| backup | ||
| checksum | ||
| commit | ||
| dependencies | ||
| dryRun readonly | ||
| interactive readonly | ||
| journal readonly | ||
| libraries | ||
| live | ||
| local readonly | ||
| lock readonly | ||
| options | ||
| overlay | ||
| patches | ||
| previous | ||
| release | ||
| repository readonly | ||
| scripts | ||
| shell readonly | ||
| startedAt readonly | ||
| target readonly | ||
| version | ||
| debugName() | ||
| error($message, $context) | ||
| getName() | ||
| getRelease() | The release this run is about. | |
| getReleaseFolder() | ||
| isForced() | ||
| option($name, $default) | ||
| say($message, $context) | Print a message prefixed with the target's name, so a fan-out stays readable. | |
| toDeployment($outcome, $error) | Turn what the tasks recorded into the journal entry for this run. | |
| __construct($target, $dryRun, $interactive, $repository) |
Propriétés23
artifact
backup
checksum
commit
dependencies
- Type
- array
dryRun
readonly- Type
- bool
interactive
readonly- Type
- bool
journal
readonly- Type
- Journal
libraries
- Type
- array
live
local
readonly- Type
- ShellRunner
lock
readonly- Type
- RemoteLock
options
- Type
- array
overlay
patches
- Type
- array
previous
release
- Type
- string
repository
readonly- Type
- null | iRepository
scripts
- Type
- array
shell
readonly- Type
- ShellRunner
startedAt
readonly- Type
- float
target
readonly- Type
- Target
version
- Type
- string
Méthodes10
debugName()
Context.php:73| retourne | string |
error($message, $context)
Context.php:116getName()
Context.php:75| retourne | string |
getRelease()
Context.php:85The release this run is about.
- Voir
ProductionController::printStatus, exactly like the target having drifted).
| retourne | string |
getReleaseFolder()
Context.php:96| retourne | string | the absolute path of this run's release folder on the target. |
isForced()
Context.php:107| retourne | bool |
option($name, $default)
Context.php:103say($message, $context)
Context.php:112Print a message prefixed with the target's name, so a fan-out stays readable.
toDeployment($outcome, $error)
Context.php:128Turn what the tasks recorded into the journal entry for this run.
| $outcome = MMO\admin\entities\Deployment::APPLIED | string | Deployment::APPLIED / FAILED / ROLLED_BACK |
| $error = null | null | string | |
| retourne | Deployment |
__construct($target, $dryRun, $interactive, $repository)
Context.php:57| $target | Target | |
| $dryRun = false | bool | |
| $interactive = false | bool | |
| $repository = null | null | iRepository |