File.php
3 weeks ago
FileSystemServiceProvider.php
3 weeks ago
Fileable.php
3 weeks ago
Filesystem.php
3 weeks ago
Path.php
3 weeks ago
UploadedFile.php
3 weeks ago
FileSystemServiceProvider.php
31 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Registers the Filesystem class as a singleton and binds the files container alias. |
| 5 | * Minimal provider that wires file operations into the service container. |
| 6 | * Loaded during application bootstrap for File facade access. |
| 7 | * |
| 8 | * @package Framework |
| 9 | * @subpackage Filesystem |
| 10 | * @since 1.0.0 |
| 11 | */ |
| 12 | namespace Kirki\Framework\Filesystem; |
| 13 | |
| 14 | \defined('ABSPATH') || exit; |
| 15 | use Kirki\Framework\ServiceProvider; |
| 16 | class FileSystemServiceProvider extends ServiceProvider |
| 17 | { |
| 18 | /** |
| 19 | * Register. |
| 20 | * |
| 21 | * @return void |
| 22 | * |
| 23 | * @since 1.0.0 |
| 24 | */ |
| 25 | public function register() |
| 26 | { |
| 27 | $this->app->alias('files', Filesystem::class); |
| 28 | $this->app->singleton(Filesystem::class); |
| 29 | } |
| 30 | } |
| 31 |