concrete/src/User/Password/PasswordChangeEventHandler.php
public function handleEvent(Event $event)
    {
        if (!$event instanceof UserInfoWithPassword) {
            throw new InvalidArgumentException(t('Invalid event type provided. Event type must be "UserInfoWithPassword".'));
        }

        // Track the password use
        $this->tracker->trackUse($event->getUserPassword(), $event->getUserInfoObject());
    }
public function handleEvent(Event $event)
    {
        if (!$event instanceof UserInfoWithPassword) {
            throw new InvalidArgumentException(t('Invalid event type provided. Event type must be "UserInfoWithPassword".'));
        }

        // Track the password use
        $this->tracker->trackUse($event->getUserPassword(), $event->getUserInfoObject());
    }
public function handleEvent ( Event $ event ) { if ( ! $ event instanceof UserInfoWithPassword ) { throw new InvalidArgumentException ( t ( 'Invalid event type provided. Event type must be "UserInfoWithPassword".' ) ) ; } // Track the password use $ this -> tracker -> trackUse ( $ event -> getUserPassword ( ) , $ event -> getUserInfoObject ( ) ) ; }
Event handler for `on_user_change_password` events

@param \Symfony\Component\EventDispatcher\Event $event

@throws \InvalidArgumentException If the given event is not the proper subclass type. Must be `UserInfoWithPassword`
Event handler for on_user_change_password events