|
před 11 roky | |
---|---|---|
.. | ||
src | před 11 roky | |
tests | před 11 roky | |
.travis.yml | před 11 roky | |
LICENSE | před 11 roky | |
README.md | před 11 roky | |
composer.json | před 11 roky | |
composer.lock | před 11 roky | |
phpunit.xml.dist | před 11 roky |
#Silex Filesystem Service Provider
This is a Silex Service Provider for Symfony Filesystem Component.
##Installation
Add it using composer :
{
"require": {
"neutron/silex-filesystem-provider": "dev-master"
}
}
##Usage
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();
}
###Informations Read more informations about the Symfony2 Filesystem Component
##License
This is released under the MIT license