Skip to content

Internals Installer Events PackageInstalledListener

Stefan Crkvenjakov edited this page Oct 7, 2026 · 1 revision

installer\events\PackageInstalledListener

Framework Internals · Subsystem overview · Developer guide

Source: awt_src/classes/installer/events/PackageInstalledListener.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.

Imports and dependencies

use event\interfaces\IEvent;
use event\interfaces\IEventListener;

PackageInstalledListener

Declaration and architectural role

class PackageInstalledListener implements IEventListener

Constants, enum cases, traits and properties

No own constants, enum cases, traits or property declarations. Inherited members are documented on the parent reference page.

Method index

Method Signature
handle public function handle(IEvent $event): array

handle

Source line 27

public function handle(IEvent $event): array

Parameters

Parameter Type, modifiers and default Purpose
$event IEvent $event Event object; its name selects listeners and its bundle carries their payload.

Return expressions (including local callbacks): $event->bundle().

Implementation, validation guards and interaction order
/**
     * @inheritDoc
     */
    public function handle(IEvent $event): array
    {
        return $event->bundle();
    }

Related types

Clone this wiki locally