Add temporary filesystem service provider

This commit is contained in:
Romain Neutron
2013-05-30 14:18:13 +02:00
parent dbf4951a15
commit 90ef0b3730
2 changed files with 37 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
<?php
namespace Alchemy\Phrasea\Core\Provider;
use Neutron\TemporaryFilesystem\TemporaryFilesystem;
use Silex\Application;
use Silex\ServiceProviderInterface;
class TemporaryFilesystemServiceProvider implements ServiceProviderInterface
{
public function register(Application $app)
{
$app['temporary-filesystem'] = $app->share(function (Application $app) {
return new TemporaryFilesystem($app['filesystem']);
});
}
public function boot(Application $app)
{
}
}