Files
Phraseanet/lib/Alchemy/Phrasea/Core/Provider/NotificationDelivererServiceProvider.php
2013-01-29 09:34:18 +01:00

22 lines
512 B
PHP

<?php
namespace Alchemy\Phrasea\Core\Provider;
use Alchemy\Phrasea\Notification\Deliverer;
use Silex\Application;
use Silex\ServiceProviderInterface;
class NotificationDelivererServiceProvider implements ServiceProviderInterface
{
public function register(Application $app)
{
$app['notification.deliverer'] = $app->share(function($app) {
return new Deliverer($app['mailer'], $app['phraseanet.registry']);
});
}
public function boot(Application $app)
{
}
}