Ejemplo n.º 1
0
 /**
  * Remove a named element or fieldset
  *
  * @param  string $elementOrFieldset
  * @return FieldsetInterface
  */
 public function remove($elementOrFieldset)
 {
     if (!$this->has($elementOrFieldset)) {
         return $this;
     }
     $this->iterator->remove($elementOrFieldset);
     if (isset($this->fieldsets[$elementOrFieldset])) {
         unset($this->fieldsets[$elementOrFieldset]);
         return $this;
     }
     unset($this->elements[$elementOrFieldset]);
     return $this;
 }
 /**
  * @param string $name
  */
 public function removeUserCredentialsStrategy($name)
 {
     $this->userCredentialsStrategies->remove($name);
 }
Ejemplo n.º 3
0
 /**
  * @inheritDoc
  */
 public function detachGenerator($name)
 {
     $this->generators->remove($name);
     return $this;
 }
Ejemplo n.º 4
0
 public function testRemovingNonExistentRouteDoesNotYieldError()
 {
     $this->list->remove('foo');
 }
Ejemplo n.º 5
0
 /**
  * @param string $name
  * @return $this
  */
 public function detachCollector($name)
 {
     $this->collectors->remove($name);
     return $this;
 }