src/Events/RegistrationEvent.php
public function update(IEventContainer $eventContainer, array $values)
    {
        try {
            $idUser = $this->identityModel->insert($values);
            $eventContainer->addValues(['id_user' => $idUser]);
        } catch (Exception $e) {
            // recall exception
            throw new EventException($e->getMessage());
        }
    }
public function update(IEventContainer $eventContainer, array $values)
    {
        try {
            $idUser = $this->identityModel->insert($values);
            $eventContainer->addValues(['id_user' => $idUser]);
        } catch (Exception $e) {
            // recall exception
            throw new EventException($e->getMessage());
        }
    }
public function update ( IEventContainer $ eventContainer , array $ values ) { try { $ idUser = $ this -> identityModel -> insert ( $ values ) ; $ eventContainer -> addValues ( [ 'id_user' => $ idUser ] ) ; } catch ( Exception $ e ) { // recall exception throw new EventException ( $ e -> getMessage ( ) ) ; } }
Update.

@param IEventContainer $eventContainer
@param array           $values
@throws EventException
Update .