aDeployTask
MMO\admin\classes · 1 symbol · generated 5 Oct 2026
aDeployTask
aDeployTask.php:25One step of a deployment, expressed as four separate questions rather than one procedure:
- Namespace
MMO\admin\classes- Implements
- iLogEmitter
- Uses traits
- tLogEmitter
Index
| verbosity | ||
| alert($message, $context) | Action must be taken immediately. | |
| apply($context) abstract | Perform the task. Must throw on failure: returning normally is taken to mean the step ran. | |
| backtraces($message, $context) | Force-log a message at INFO level together with a full stack trace/memory snapshot (iLogLevel::BACKTRACE), bypassing the verbosity mask entirely (any non-zero verbosity is enough to trigger it). | |
| critical($message, $context) | Critical conditions. No-op if CRITICAL is currently filtered out by the verbosity mask. | |
| debug($message, $context) | Detailed debug information. | |
| debugName() | ||
| emergency($message, $context) | System is unusable. No-op if EMERGENCY is currently filtered out by the verbosity mask. | |
| error($message, $context) | Runtime errors that do not require immediate action but should typically be logged and monitored. | |
| getDescription() | ||
| getName() | ||
| getVerbosity() | ||
| info($message, $context) | Interesting events. No-op if INFO is currently filtered out by the verbosity mask. | |
| isChange() | Whether running this task CHANGES anything. | |
| isNeeded($context) | Whether this task has anything to do for this target -- e.g. | |
| isRollbackCritical() | ||
| log($level, $message, $context) | Logs with an arbitrary level. | |
| notice($message, $context) | Normal but significant events. | |
| plan($context) abstract | Describe what apply would do, WITHOUT doing it. | |
| rollback($context) | Undo this task. Called by the runner, in reverse order, for every task already applied when a later one failed. | |
| setVerbosity($verb) | Set the current verbosity mask, replacing whatever it was before. | |
| testVerbosity($level) | Test whether a given level (or set of levels) is currently enabled by this instance's verbosity mask. | |
| verify($context) | Check, by looking at the target, that the task really took effect. | |
| warning($message, $context) | Exceptional occurrences that are not errors. |
Properties1
verbosity
- Type
- int
Methods23
alert($message, $context)
tLogEmitter.php:121Action must be taken immediately.
| $message | Stringable | string | |
| $context = [] | array | |
| returns | void |
apply($context)
abstractaDeployTask.php:61Perform the task. Must throw on failure: returning normally is taken to mean the step ran.
backtraces($message, $context)
tLogEmitter.php:234Force-log a message at INFO level together with a full stack trace/memory snapshot (iLogLevel::BACKTRACE), bypassing the verbosity mask entirely (any non-zero verbosity is enough to trigger it).
critical($message, $context)
tLogEmitter.php:138Critical conditions. No-op if CRITICAL is currently filtered out by the verbosity mask.
| $message | Stringable | string | |
| $context = [] | array | |
| returns | void |
debug($message, $context)
tLogEmitter.php:219Detailed debug information. No-op if DEBUG is currently filtered out by the verbosity mask.
| $message | Stringable | string | |
| $context = [] | array | |
| returns | void |
debugName()
aDeployTask.php:28| returns | string |
emergency($message, $context)
tLogEmitter.php:103System is unusable. No-op if EMERGENCY is currently filtered out by the verbosity mask.
| $message | Stringable | string | |
| $context = [] | array | |
| returns | void |
error($message, $context)
tLogEmitter.php:154Runtime errors that do not require immediate action but should typically be logged and monitored.
| $message | Stringable | string | |
| $context = [] | array | |
| returns | void |
getDescription()
aDeployTask.php:37| returns | string | a one-line description of what this task is for. |
getName()
aDeployTask.php:31| returns | string | the task's short name, used in logs and in the plan. |
getVerbosity()
tLogEmitter.php:38| returns | int | the current verbosity, as a bitmask of iLogLevel::* constants |
info($message, $context)
tLogEmitter.php:204Interesting events. No-op if INFO is currently filtered out by the verbosity mask.
| $message | Stringable | string | |
| $context = [] | array | |
| returns | void |
isChange()
aDeployTask.php:91Whether running this task CHANGES anything.
| returns | bool |
isNeeded($context)
aDeployTask.php:46Whether this task has anything to do for this target -- e.g. a release already shipped with the same checksum does not need shipping again. A task that returns false is skipped entirely (no apply, no verify, and no rollback if a later task fails).
isRollbackCritical()
aDeployTask.php:79| returns | bool | whether failing to roll this task back should abort the rest of the rollback. |
log($level, $message, $context)
tLogEmitter.php:81Logs with an arbitrary level.
| $level | ||
| $message | Stringable | string | |
| $context = [] | array | ignored if $message is a Log |
| returns | void |
notice($message, $context)
tLogEmitter.php:187Normal but significant events. No-op if NOTICE is currently filtered out by the verbosity mask.
| $message | Stringable | string | |
| $context = [] | array | |
| returns | void |
plan($context)
abstractaDeployTask.php:54Describe what apply would do, WITHOUT doing it. Reading the target is allowed and encouraged -- a plan that cannot see the current state is not worth printing.
rollback($context)
aDeployTask.php:76Undo this task. Called by the runner, in reverse order, for every task already applied when a later one failed. Must be safe to call on a task that only partially applied.
setVerbosity($verb)
tLogEmitter.php:64Set the current verbosity mask, replacing whatever it was before.
| $verb = null | string | int | null | a bitmask of iLogLevel::* constants, or a level name/expression resolved through \MMO\core\debug\flags() (e.g. 'error+' for iLogLevel::ERROR_PLUS) |
| returns | void |
testVerbosity($level)
tLogEmitter.php:50Test whether a given level (or set of levels) is currently enabled by this instance's verbosity mask.
| $level | string | int | a iLogLevel::* constant/bitmask, or a level name resolved through \MMO\core\debug\flags() |
| returns | int | the bits of $level that are currently enabled (0 if none of them are) |
verify($context)
aDeployTask.php:68Check, by looking at the target, that the task really took effect.
warning($message, $context)
tLogEmitter.php:172Exceptional occurrences that are not errors. No-op if WARNING is currently filtered out by the verbosity mask.
| $message | Stringable | string | |
| $context = [] | array | |
| returns | void |
Inherited members (19)
| Constants | Declared by | Description | |
|---|---|---|---|
ALERT | iLogLevel | Alert: Action must be taken immediately. | |
ALL | iLogLevel | Mask for all | |
ALL_PLUS | iLogLevel | debug everything | |
BACKTRACE | iLogLevel | ||
CRITICAL | iLogLevel | Critical: Critical conditions. | |
DEBUG | iLogLevel | Debug: Detailed debug information. | |
DEEP | iLogLevel | debug everything with arguments | |
EMERGENCY | iLogLevel | Emergency: System is unusable. | |
ERROR | iLogLevel | Error: Runtime errors that do not require immediate action but should typically be logged and monitored. | |
ERROR_PLUS | iLogLevel | Mask for all error | |
FATAL | iLogLevel | Mask for all fatal error | |
INFO | iLogLevel | Info: Interesting events. | |
INFO_PLUS | iLogLevel | Mask for all errors/warning/notices/info | |
MEMORY | iLogLevel | include backtrace object | |
NOTICE | iLogLevel | Notice: Normal but significant events. | |
NOTICE_PLUS | iLogLevel | Mask for all errors/warning/notices/info | |
TRACE | iLogLevel | include backtrace as origins | |
WARNING | iLogLevel | Warning: Exceptional occurrences that are not errors. | |
WARNING_PLUS | iLogLevel | Mask for all errors and warnings |