示例#1
0
 /**
  * {@inheritDoc}
  */
 public function remove($elementOrFieldset)
 {
     if (!parent::has($elementOrFieldset) && $elementOrFieldset === 'identity' && $this->identityElement) {
         $elementOrFieldset = $this->identityElement->getName();
     }
     return parent::remove($elementOrFieldset);
 }
示例#2
0
 /**
  * {@inheritDoc}
  */
 public function remove($elementOrFieldset)
 {
     if (!parent::has($elementOrFieldset)) {
         if ($elementOrFieldset === 'identity' && $this->identityElement) {
             $elementOrFieldset = $this->identityElement->getName();
         } elseif ($elementOrFieldset === 'credential' && $this->credentialElement) {
             $elementOrFieldset = $this->credentialElement->getName();
         }
     }
     return parent::remove($elementOrFieldset);
 }