Repository navigation
Internals Vfs Storage Interfaces IOwnerStorageStrategy
Framework Internals · Subsystem overview · Developer guide
Source: awt_src/classes/vfs/storage/interfaces/IOwnerStorageStrategy.php · Snapshot 8411f4287706.
VFS includes package resource lookup, database-backed file metadata, filesystem collaborators, transient pools and persistent PHP-array caches.
use vfs\storage\StorageEntry;
use vfs\storage\enums\EOwnerType;interface IOwnerStorageStrategySource description (behavioral corrections are recorded in Known discrepancies):
Interface IOwnerStorageStrategy
Defines the contract for owner-specific storage registration logic (OCP).
Adding support for a new EOwnerType no longer requires modifying StorageManager. Instead, a new strategy class implementing this interface is created and registered — open for extension, closed for modification.
No own constants, enum cases, traits or property declarations. Inherited members are documented on the parent reference page.
| Method | Signature |
|---|---|
| supports | public function supports(): EOwnerType |
| register | public function register(StorageEntry $entry, string $ownerName): bool |
public function supports(): EOwnerType;Returns the EOwnerType this strategy handles.
Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function register(StorageEntry $entry, string $ownerName): bool;| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$entry |
StorageEntry $entry |
Operation input; the exact use, validation and propagation are shown in the implementation trace. |
$ownerName |
string $ownerName |
Operation input; the exact use, validation and propagation are shown in the implementation trace. |
Executes the storage registration for this owner type.
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