Context
MMO\admin\helpers · 1 symbol · generated 5 Oct 2026
Context
Context.php:16Everything one task needs to act on one target, and the place tasks hand results to each other:
- Namespace
MMO\admin\helpers- See
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 | ||
| 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) |
Properties22
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
shell
readonly- Type
- ShellRunner
startedAt
readonly- Type
- float
target
readonly- Type
- Target
version
- Type
- string
Methods10
debugName()
Context.php:71| returns | string |
error($message, $context)
Context.php:114getName()
Context.php:73| returns | string |
getRelease()
Context.php:83The release this run is about.
- See
ProductionController::printStatus, exactly like the target having drifted).
| returns | string |
getReleaseFolder()
Context.php:94| returns | string | the absolute path of this run's release folder on the target. |
isForced()
Context.php:105| returns | bool |
option($name, $default)
Context.php:101say($message, $context)
Context.php:110Print a message prefixed with the target's name, so a fan-out stays readable.
toDeployment($outcome, $error)
Context.php:126Turn 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 | |
| returns | Deployment |
__construct($target, $dryRun, $interactive, $repository)
Context.php:55| $target | Target | |
| $dryRun = false | bool | |
| $interactive = false | bool | |
| $repository = null | null | iRepository |