public function deactivated(DeactivateUser $event)
    {
        /** @var UserDeactivatedType $type */
        $type = $this->notificationManager->driver(UserDeactivatedType::IDENTIFIER);
        $notifier = $type->getNotifier();

        if (method_exists($notifier, 'notify')) {
            $subscription = $type->getSubscription($event);
            $users = $notifier->getUsersToNotify($subscription, $event);
            $notification = new UserDeactivatedNotification($event);
            $notifier->notify($users, $notification);
        }
    }