concrete/src/User/UserServiceProvider.php
public function handleEvent(Event $event, UserNotificationEventHandler $service)
    {
        // If our event is the wrong type, just do a null/void return
        if (!$event instanceof DeactivateUser) {
            return;
        }

        $entity = $event->getUserEntity();

        if ($entity) {
            $service->deactivated($event);
        }
    }
public function handleEvent(Event $event, UserNotificationEventHandler $service)
    {
        // If our event is the wrong type, just do a null/void return
        if (!$event instanceof DeactivateUser) {
            return;
        }

        $entity = $event->getUserEntity();

        if ($entity) {
            $service->deactivated($event);
        }
    }
public function handleEvent ( Event $ event , UserNotificationEventHandler $ service ) { // If our event is the wrong type, just do a null/void return if ( ! $ event instanceof DeactivateUser ) { return ; } $ entity = $ event -> getUserEntity ( ) ; if ( $ entity ) { $ service -> deactivated ( $ event ) ; } }
Handle routing bound events

@param \Symfony\Component\EventDispatcher\Event $event
@param \Concrete\Core\User\Notification\UserNotificationEventHandler $service

@internal
Handle routing bound events