protected function triggerUserUpdated(\core_kernel_classes_Resource $resource, array $properties, $plainPassword)
    {
        /** @var EventManager $eventManager */
        $eventManager = $this->getServiceLocator()->get(EventManager::SERVICE_ID);
        $eventManager->trigger(new UserUpdatedEvent($resource,
            array_merge(
                $properties,
                [
                    'hashForKey' => UserHashForEncryption::hash($plainPassword)
                ]
            )
        ));
    }
protected function triggerUserUpdated(\core_kernel_classes_Resource $resource, array $properties, $plainPassword)
    {
        /** @var EventManager $eventManager */
        $eventManager = $this->getServiceLocator()->get(EventManager::SERVICE_ID);
        $eventManager->trigger(new UserUpdatedEvent($resource,
            array_merge(
                $properties,
                [
                    'hashForKey' => UserHashForEncryption::hash($plainPassword)
                ]
            )
        ));
    }
protected function triggerUserUpdated ( \ core_kernel_classes_Resource $ resource , array $ properties , $ plainPassword ) { /** @var EventManager $eventManager */ $ eventManager = $ this -> getServiceLocator ( ) -> get ( EventManager :: SERVICE_ID ) ; $ eventManager -> trigger ( new UserUpdatedEvent ( $ resource , array_merge ( $ properties , [ 'hashForKey' => UserHashForEncryption :: hash ( $ plainPassword ) ] ) ) ) ; }
Trigger UserEvent at user update

@param \core_kernel_classes_Resource $resource
@param array $properties
@param string $plainPassword
Trigger UserEvent at user update