Repository navigation
Internals Vfs Storage FileName
Framework Internals · Subsystem overview · Developer guide
Source: awt_src/classes/vfs/storage/FileName.php · Snapshot 8411f4287706.
VFS includes package resource lookup, database-backed file metadata, filesystem collaborators, transient pools and persistent PHP-array caches.
final class FileNameNo own constants, enum cases, traits or property declarations. Inherited members are documented on the parent reference page.
| Method | Signature |
|---|---|
| unique | public static function unique(string $directory, string $source): string |
public static function unique(string $directory, string $source): string| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$directory |
string $directory |
Operation input; the exact use, validation and propagation are shown in the implementation trace. |
$source |
string $source |
Operation input; the exact use, validation and propagation are shown in the implementation trace. |
Return expressions (including local callbacks): rtrim($directory, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . bin2hex(random_bytes(24)) . ($extension === '' ? '' : '.' . $extension).
Implementation, validation guards and interaction order
public static function unique(string $directory, string $source): string
{
$extension = pathinfo($source, PATHINFO_EXTENSION);
return rtrim($directory, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . bin2hex(random_bytes(24))
. ($extension === '' ? '' : '.' . $extension);
}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