You are here

public function ParameterBag::remove in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/http-foundation/ParameterBag.php \Symfony\Component\HttpFoundation\ParameterBag::remove()
  2. 8 vendor/symfony/dependency-injection/ParameterBag/ParameterBag.php \Symfony\Component\DependencyInjection\ParameterBag\ParameterBag::remove()
Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/ParameterBag.php \Symfony\Component\HttpFoundation\ParameterBag::remove()

Removes a parameter.

Parameters

string $key The key:

File

vendor/symfony/http-foundation/ParameterBag.php, line 166

Class

ParameterBag
ParameterBag is a container for key/value pairs.

Namespace

Symfony\Component\HttpFoundation

Code

public function remove($key) {
  unset($this->parameters[$key]);
}