Skip to content

Internals Vfs Resource Event ContextRequestEvent

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

vfs\resource\event\ContextRequestEvent

Framework Internals · Subsystem overview · Developer guide

Source: awt_src/classes/vfs/resource/event/ContextRequestEvent.php · Snapshot 8411f4287706.

VFS includes package resource lookup, database-backed file metadata, filesystem collaborators, transient pools and persistent PHP-array caches.

Imports and dependencies

use event\interfaces\IEvent;

ContextRequestEvent

Declaration and architectural role

class ContextRequestEvent implements IEvent

Constants, enum cases, traits and properties

Declarations 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
$context public string $context; Declared extension/state field; no own method directly consumes it in this source file.

Method index

Method Signature
getName public function getName(): string
bundle public function bundle(): array

getName

Source line 14

public function getName(): string

Return expressions (including local callbacks): "vfs.context.request".

Implementation, validation guards and interaction order
/**
     * @inheritDoc
     */
    public function getName(): string
    {
        return "vfs.context.request";
    }

bundle

Source line 22

public function bundle(): array

Return expressions (including local callbacks): ["context" => $this].

Implementation, validation guards and interaction order
/**
     * @inheritDoc
     */
    public function bundle(): array
    {
        return ["context" => $this];
    }

Related types

Clone this wiki locally