Repository navigation
Internals Installer Events PackageInstalledEvent
Framework Internals · Subsystem overview · Developer guide
Source: awt_src/classes/installer/events/PackageInstalledEvent.php · Snapshot 8411f4287706.
Installation validates archives and manifests, moves files, persists metadata, copies data into storage, invokes an optional hook and emits an event. These operations do not form one atomic transaction.
use event\interfaces\IEvent;
use package\model\Package;class PackageInstalledEvent implements IEventDeclarations below preserve visibility, type, default and modifiers exactly. A typed property without an initializer remains uninitialized until its constructor or another method assigns it. Mutable fields belong to this instance unless marked static; readonly fields can be initialized once. Constructor-promoted properties are also listed below.
| Member | Declaration | Purpose or source contract |
|---|---|---|
| $manifest | private array $manifest; |
Used by setManifest(), bundle(). |
| $id | private ?int $id = null; |
Used by setId(), bundle(). |
| Method | Signature |
|---|---|
| setManifest | public function setManifest(array $manifest) |
| setId | public function setId(int $id) |
| getName | public function getName(): string |
| bundle | public function bundle(): array |
public function setManifest(array $manifest)| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$manifest |
array $manifest |
Operation input; the exact use, validation and propagation are shown in the implementation trace. |
State writes: $this->manifest.
Implementation, validation guards and interaction order
public function setManifest(array $manifest)
{
$this->manifest = $manifest;
}public function setId(int $id)| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$id |
int $id |
Record or runtime identifier selected by this operation. |
State writes: $this->id.
Implementation, validation guards and interaction order
public function setId(int $id)
{
$this->id = $id;
}public function getName(): stringReturn expressions (including local callbacks): "package.installed".
Implementation, validation guards and interaction order
/**
* @inheritDoc
*/
public function getName(): string
{
return "package.installed";
}public function bundle(): arrayReturn expressions (including local callbacks): [ "manifest" => $this->manifest, "id" => $this->id ].
Implementation, validation guards and interaction order
/**
* @inheritDoc
*/
public function bundle(): array
{
return [
"manifest" => $this->manifest,
"id" => $this->id
];
}AWT Framework Wiki · Home · Installation Guide · Developer Guide · Framework Internals
Philosophy · Architecture · Known discrepancies · Verification
Installation Guide
Developer Guide
- Learning sequence
- First package
- Package structure
- Lifecycle
- Runtimes
- Events and objects
- Routing and controllers
- Views and resources
- Database and models
- Storage and caching
- Configuration and CLI
- Responses and errors
- Extension points
Framework Internals
- Architecture
- Bootstrap
- Packages
- Runtime
- Events and context
- Objects
- HTTP routing and controllers
- Rendering
- Blade integration
- Database
- Models
- Storage and caching
- Settings
- CLI
- Identity and sessions
- Responses
- Errors
- Complete source inventory
Documentation notes