protected function prepareIdentity($identitySeed)
    {
        $this->getServiceBroker()
            ->service('Identity')
            ->setIdentity($identitySeed);
        
        $identity = $this->getServiceBroker()
            ->service('Identity')
            ->getIdentity();
        
        $this->getServiceBroker()
             ->setDefaultIdentity($identity);
        
        return $identity;
    }
protected function prepareIdentity($identitySeed)
    {
        $this->getServiceBroker()
            ->service('Identity')
            ->setIdentity($identitySeed);
        
        $identity = $this->getServiceBroker()
            ->service('Identity')
            ->getIdentity();
        
        $this->getServiceBroker()
             ->setDefaultIdentity($identity);
        
        return $identity;
    }
protected function prepareIdentity ( $ identitySeed ) { $ this -> getServiceBroker ( ) -> service ( 'Identity' ) -> setIdentity ( $ identitySeed ) ; $ identity = $ this -> getServiceBroker ( ) -> service ( 'Identity' ) -> getIdentity ( ) ; $ this -> getServiceBroker ( ) -> setDefaultIdentity ( $ identity ) ; return $ identity ; }
Build new identity from identity seed

@param array $identitySeed
Build new identity from identity seed