Skip to content

Internals Package Facade PackageManifestFacade

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

package\facade\PackageManifestFacade

Framework Internals · Subsystem overview · Developer guide

Source: awt_src/classes/package/facade/PackageManifestFacade.php · Snapshot 8411f4287706.

Package metadata is persisted in awt_package. Manifest readers validate input and package services build installed models; startup executes enabled nonzero-type packages.

Imports and dependencies

use package\manifest\exceptions\ManifestReaderException;
use package\manifest\reader\interfaces\IManifestReader;
use package\manifest\reader\ManifestReader;
use package\manifest\service\interface\IManifestService;
use package\manifest\service\ManifestService;
use package\model\Package;

PackageManifestFacade

Declaration and architectural role

class PackageManifestFacade

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
$service private IManifestService $service; Used by __construct(), getPackage(), getService().
$reader private IManifestReader $reader; Used by __construct(), getReader().
Constructor-promoted public function __construct(string $package) Initialized from the constructor argument; default expression is evaluated when the argument is omitted.

Method index

Method Signature
__construct public function __construct(string $package)
getPackage public function getPackage(): Package
getReader public function getReader(): IManifestReader
getService public function getService(): IManifestService

__construct

Source line 21

public function __construct(string $package)

Parameters

Parameter Type, modifiers and default Purpose
$package string $package Package identifier or InstalledPackage metadata as indicated by the declared type.

@throws ManifestReaderException

State writes: $this->reader, $this->service.

Implementation, validation guards and interaction order
/**
     * @throws ManifestReaderException
     */
    public function __construct(string $package)
    {
        $this->reader = new ManifestReader($package);
        $this->service = new ManifestService($this->reader);
    }

getPackage

Source line 27

public function getPackage(): Package

Return expressions (including local callbacks): $this->service->buildPackage().

Implementation, validation guards and interaction order
public function getPackage(): Package
    {
        return $this->service->buildPackage();
    }

getReader

Source line 32

public function getReader(): IManifestReader

Return expressions (including local callbacks): $this->reader.

Implementation, validation guards and interaction order
public function getReader(): IManifestReader
    {
        return $this->reader;
    }

getService

Source line 37

public function getService(): IManifestService

Return expressions (including local callbacks): $this->service.

Implementation, validation guards and interaction order
public function getService(): IManifestService
    {
        return $this->service;
    }

Related types

Clone this wiki locally