/** * 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); }
/** * @inheritDoc */ public function detachGenerator($name) { $this->generators->remove($name); return $this; }
public function testRemovingNonExistentRouteDoesNotYieldError() { $this->list->remove('foo'); }
/** * @param string $name * @return $this */ public function detachCollector($name) { $this->collectors->remove($name); return $this; }