Repository navigation
Internals Installer Interfaces Package IExtractor
Framework Internals · Subsystem overview · Developer guide
Source: awt_src/classes/installer/interfaces/package/IExtractor.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 RuntimeException;
use vfs\transient\interfaces\ITransientStorageEntry;
use ZipArchive;interface IExtractorNo own constants, enum cases, traits or property declarations. Inherited members are documented on the parent reference page.
| Method | Signature |
|---|---|
| extract | public function extract(): void |
| getZip | public function getZip(): ZipArchive |
| getTarget | public function getTarget(): ITransientStorageEntry |
| getDestination | public function getDestination(): string |
| setTarget | public function setTarget(ITransientStorageEntry $target): void |
| setDestination | public function setDestination(string $destination): void |
| zipVerify | public function zipVerify(): void |
public function extract(): void;Extracts the zip file to the destination. @return void
Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function getZip(): ZipArchive;Returns the zip archive. @return ZipArchive
Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function getTarget(): ITransientStorageEntry;Returns the target entry. @return ITransientStorageEntry
Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function getDestination(): string;Returns the destination path. @return string
Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function setTarget(ITransientStorageEntry $target): void;| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$target |
ITransientStorageEntry $target |
* @return void |
Sets the target entry. @param ITransientStorageEntry $target @return void
Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function setDestination(string $destination): void;| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$destination |
string $destination |
* @return void |
Sets the destination path. @param string $destination @return void
Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function zipVerify(): void;Should throw an exception if the zip is invalid.
@throws RuntimeException @return void
Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
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