Skip to content

Commit

Permalink
update api
Browse files Browse the repository at this point in the history
  • Loading branch information
docjyJ committed Oct 27, 2024
1 parent 122ac07 commit ee73ccc
Show file tree
Hide file tree
Showing 17 changed files with 533 additions and 1,011 deletions.
7 changes: 5 additions & 2 deletions lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@

namespace OCA\Nextmail\AppInfo;

use OCA\Nextmail\Event\EmailChangedListener;
use OCA\Nextmail\Event\PasswordChangedListener;
use OCA\Nextmail\Event\UserChangedListener;
use OCA\Nextmail\Event\UserCreateListener;
use OCA\Nextmail\Event\UserDeletedListener;
use OCP\AppFramework\App;
use OCP\AppFramework\Bootstrap\IBootContext;
use OCP\AppFramework\Bootstrap\IBootstrap;
use OCP\AppFramework\Bootstrap\IRegistrationContext;
use OCP\User\Events\PasswordUpdatedEvent;
use OCP\User\Events\UserChangedEvent;
use OCP\User\Events\UserCreatedEvent;
use OCP\User\Events\UserDeletedEvent;

class Application extends App implements IBootstrap {
Expand All @@ -24,7 +26,8 @@ public function __construct() {

public function register(IRegistrationContext $context): void {
$context->registerEventListener(UserDeletedEvent::class, UserDeletedListener::class);
$context->registerEventListener(UserChangedEvent::class, EmailChangedListener::class);
$context->registerEventListener(UserCreatedEvent::class, UserCreateListener::class);
$context->registerEventListener(UserChangedEvent::class, UserChangedListener::class);
$context->registerEventListener(PasswordUpdatedEvent::class, PasswordChangedListener::class);
}

Expand Down
293 changes: 0 additions & 293 deletions lib/Controller/ApiController.php

This file was deleted.

Loading

0 comments on commit ee73ccc

Please sign in to comment.