Commit 69549961 authored by AVINASH GUSAIN's avatar AVINASH GUSAIN
Browse files

register backgroundjob as service

parent 8f343b9d
Pipeline #208564 passed with stages
in 3 minutes and 34 seconds
......@@ -128,10 +128,8 @@ class Application extends App implements IBootstrap {
* @inheritDoc
*/
public function boot(IBootContext $context): void {
$context->getServerContainer()->registerService('InvitationMiddleware', function($c){
return new InvitationMiddleware(
$c->get(IRequest::class),
$c->get(IConfig::class),
$context->getServerContainer()->registerService('SendInviteResponseMailJob', function($c){
return new SendInviteResponseMailJob(
$c->get(IDBConnection::class),
$c->get(IManager::class),
$c->get(IMailer::class),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment