Skip to content

Commit

Permalink
register MFAPlugin service
Browse files Browse the repository at this point in the history
  • Loading branch information
michielbdejong committed Dec 21, 2023
1 parent 0c57d84 commit 068e50b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ public function __construct() {
// }

$container = $this->getContainer();
$container->registerService('MFAPlugin', function($c) {
$systemTagManager = $c->query(ISystemTagManager::class);
$tagMapper = $c->query(ISystemTagObjectMapper::class);
return new MFAPlugin($systemTagManager, $tagMapper);
});

$server = $container->getServer();
$eventDispatcher = $this->getContainer()->get(IEventDispatcher::class);

Expand Down

0 comments on commit 068e50b

Please sign in to comment.