Repository navigation
Internals 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.
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;class PackageManifestFacadeDeclarations 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 | Signature |
|---|---|
| __construct | public function __construct(string $package) |
| getPackage | public function getPackage(): Package |
| getReader | public function getReader(): IManifestReader |
| getService | public function getService(): IManifestService |
public function __construct(string $package)| 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);
}public function getPackage(): PackageReturn expressions (including local callbacks): $this->service->buildPackage().
Implementation, validation guards and interaction order
public function getPackage(): Package
{
return $this->service->buildPackage();
}public function getReader(): IManifestReaderReturn expressions (including local callbacks): $this->reader.
Implementation, validation guards and interaction order
public function getReader(): IManifestReader
{
return $this->reader;
}public function getService(): IManifestServiceReturn expressions (including local callbacks): $this->service.
Implementation, validation guards and interaction order
public function getService(): IManifestService
{
return $this->service;
}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