dev-master
9999999-devA Silex service provider for Symfony finder component
MIT
The Requires
- php >=5.6.0
- silex/silex ~2.0
- symfony/finder ~3.0
The Development Requires
service php silex provider finder serviceprovider
A Silex service provider for Symfony finder component
A Silex service provider for Symfony finder component., (*1)
composer require bgaze/silex-finder-provider dev-master
Once the provider is registred, a Symfony Finder Component instance is available through $app['finder']
., (*2)
$app->register(new \Bgaze\Silex\Provider\FinderProvider()); $app["finder"]->files()->in(__DIR__); foreach ($app["finder"] as $file) { // Dump the absolute path var_dump($file->getRealpath()); // Dump the relative path to the file, omitting the filename var_dump($file->getRelativePath()); // Dump the relative path to the file var_dump($file->getRelativePathname()); }
A Silex service provider for Symfony finder component
MIT
service php silex provider finder serviceprovider