controller/frontend/src/Controller/Frontend/Customer/Standard.php
public function store()
	{
		( $id = $this->item->getId() ) !== null ? $this->checkId( $id ) : $this->checkLimit();
		$context = $this->getContext();

		if( $id === null )
		{
			$msg = $this->item->toArray();
			$msg['customer.password'] = null;

			// Show only generated passwords in account creation e-mails
			if( $this->item->getPassword() === '' ) {
				$msg['customer.password'] = substr( sha1( microtime( true ) . getmypid() . rand() ), -8 );
			}

			$context->getMessageQueue( 'mq-email', 'customer/email/account' )->add( json_encode( $msg ) );
		}

		$this->item = $this->manager->saveItem( $this->item );
		return $this;
	}
public function store()
	{
		( $id = $this->item->getId() ) !== null ? $this->checkId( $id ) : $this->checkLimit();
		$context = $this->getContext();

		if( $id === null )
		{
			$msg = $this->item->toArray();
			$msg['customer.password'] = null;

			// Show only generated passwords in account creation e-mails
			if( $this->item->getPassword() === '' ) {
				$msg['customer.password'] = substr( sha1( microtime( true ) . getmypid() . rand() ), -8 );
			}

			$context->getMessageQueue( 'mq-email', 'customer/email/account' )->add( json_encode( $msg ) );
		}

		$this->item = $this->manager->saveItem( $this->item );
		return $this;
	}
public function store ( ) { ( $ id = $ this -> item -> getId ( ) ) !== null ? $ this -> checkId ( $ id ) : $ this -> checkLimit ( ) ; $ context = $ this -> getContext ( ) ; if ( $ id === null ) { $ msg = $ this -> item -> toArray ( ) ; $ msg [ 'customer.password' ] = null ; // Show only generated passwords in account creation e-mails if ( $ this -> item -> getPassword ( ) === '' ) { $ msg [ 'customer.password' ] = substr ( sha1 ( microtime ( true ) . getmypid ( ) . rand ( ) ) , - 8 ) ; } $ context -> getMessageQueue ( 'mq-email' , 'customer/email/account' ) -> add ( json_encode ( $ msg ) ) ; } $ this -> item = $ this -> manager -> saveItem ( $ this -> item ) ; return $ this ; }
Adds or updates a modified customer item in the storage

@return \Aimeos\Controller\Frontend\Customer\Iface Customer controller for fluent interface
@since 2019.04
Adds or updates a modified customer item in the storage