share(function (Application $app) { return new Emitter( $app['conf']->get(['registry', 'general', 'title']), $app['conf']->get(['registry', 'email', 'emitter-email'], 'no-reply@phraseanet.com') ); }); $app['notification.prefix'] = $app->share(function (Application $app) { return $app['conf']->get(['registry', 'email', 'prefix']); }); $app['notification.deliverer'] = $app->share(function ($app) { return new Deliverer( $app['mailer'], $app['dispatcher'], $app['notification.default.emitter'], $app['notification.prefix'] ); }); } public function boot(Application $app) { } }