neutron/silex-filesystem-provider

A Silex Provider for Symfony Filesystem component

Installs: 139 061

Dependents: 1

Suggesters: 0

Security: 0

Stars: 5

Watchers: 1

Forks: 4

Open Issues: 0

pkg:composer/neutron/silex-filesystem-provider

2.0.0 2017-12-14 10:21 UTC

This package is auto-updated.

Last update: 2025-09-25 08:21:29 UTC


README

#Silex Filesystem Service Provider

Build Status

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();
}

Information

Read more information about the Symfony Filesystem Component

License

This is released under the MIT license