Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8f343b9d authored by AVINASH GUSAIN's avatar AVINASH GUSAIN
Browse files

server container added

parent 92f406cf
Loading
Loading
Loading
Loading
Loading
+15 −1
Original line number Original line Diff line number Diff line
@@ -128,7 +128,21 @@ class Application extends App implements IBootstrap {
	 * @inheritDoc
	 * @inheritDoc
	 */
	 */
	public function boot(IBootContext $context): void {
	public function boot(IBootContext $context): void {

		$context->getServerContainer()->registerService('InvitationMiddleware', function($c){
            return new InvitationMiddleware(
                $c->get(IRequest::class),
                $c->get(IConfig::class),
                $c->get(IDBConnection::class),
                $c->get(IManager::class),
				$c->get(IMailer::class),
				$c->get(IL10N::class),
				$c->get(Defaults::class),
				$c->get(ILogger::class),
				$c->get(IUserManager::class),
				$c->get(L10NFactory::class),
				$c->get(IJobList::class),
            );
        });


	}
	}
}
}
 No newline at end of file
+4 −2
Original line number Original line Diff line number Diff line
@@ -5,6 +5,8 @@ namespace OCA\Calendar\Middleware;
use OCP\AppFramework\Middleware;
use OCP\AppFramework\Middleware;
use OCA\Calendar\Controller\InvitationMaybeController;
use OCA\Calendar\Controller\InvitationMaybeController;
use OCA\Dav\Controller\InvitationResponseController;
use OCA\Dav\Controller\InvitationResponseController;
use OCA\Calendar\BackgroundJob\SendInviteResponseMailJob;
use OCP\BackgroundJob\IJobList;
use OCP\IDBConnection;
use OCP\IDBConnection;
use OCP\IConfig;
use OCP\IConfig;
use OCP\IRequest;
use OCP\IRequest;
@@ -19,8 +21,8 @@ use OCP\IUserManager;
use OCP\IUser;
use OCP\IUser;
use OCP\L10N\IFactory;
use OCP\L10N\IFactory;
use OCP\Util;
use OCP\Util;
use OCA\Calendar\BackgroundJob\SendInviteResponseMailJob;

use \OCP\BackgroundJob\IJobList;

class InvitationMiddleware extends Middleware
class InvitationMiddleware extends Middleware
{
{
	private $request;
	private $request;