neutron / silex-filesystem-provider
Silex 对 Symfony 文件系统组件的提供者
2.0.0
2017-12-14 10:21 UTC
Requires
- php: >=5.3.3
- pimple/pimple: ^3.0
- symfony/filesystem: ~2.8|^3.0|^4.0
Requires (Dev)
- phpunit/phpunit: ~4.1
This package is auto-updated.
Last update: 2024-08-25 06:14:52 UTC
README
# Silex 文件系统服务提供者
这是一个Silex 服务提供者,用于Symfony 文件系统组件。
安装
使用 composer 添加
{ "require": { "neutron/silex-filesystem-provider": "dev-master" } }
使用方法
use Silex\Application; use Neutron\Silex\Provider\FilesystemServiceProvider; $app = new Application(); // Register the filesystem $app->register(new FilesystemServiceProvider()); // Just use it as any Silex service if (!$app['filesystem']->exists('any-absolute-or-relative-path...')) { throw new \Namespace\PathNotFoundCustomException(); }
信息
了解更多关于Symfony 文件系统组件的信息
许可证
此软件采用 MIT 许可证发布