Пример #1
0
 /**
  * {@inheritDoc}
  */
 public function get($elementOrFieldset)
 {
     if (!parent::has($elementOrFieldset) && $elementOrFieldset === 'identity' && $this->identityElement) {
         $elementOrFieldset = $this->identityElement->getName();
     }
     return parent::get($elementOrFieldset);
 }
Пример #2
0
 /**
  * {@inheritDoc}
  */
 public function get($elementOrFieldset)
 {
     if (!parent::has($elementOrFieldset)) {
         if ($elementOrFieldset === 'identity' && $this->identityElement) {
             $elementOrFieldset = $this->identityElement->getName();
         } elseif ($elementOrFieldset === 'csrf' && $this->credentialElement) {
             $elementOrFieldset = $this->credentialElement->getName();
         }
     }
     return parent::get($elementOrFieldset);
 }