class FrozenParameterBag in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/dependency-injection/ParameterBag/FrozenParameterBag.php \Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag
Holds read-only parameters.
@author Fabien Potencier <fabien@symfony.com>
Hierarchy
- class \Symfony\Component\DependencyInjection\ParameterBag\ParameterBag implements ParameterBagInterface
- class \Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag
Expanded class hierarchy of FrozenParameterBag
5 files declare their use of FrozenParameterBag
- Container.php in vendor/
symfony/ dependency-injection/ Container.php - FrozenParameterBagTest.php in vendor/
symfony/ dependency-injection/ Tests/ ParameterBag/ FrozenParameterBagTest.php - services10.php in vendor/
symfony/ dependency-injection/ Tests/ Fixtures/ php/ services10.php - services12.php in vendor/
symfony/ dependency-injection/ Tests/ Fixtures/ php/ services12.php - services9_compiled.php in vendor/
symfony/ dependency-injection/ Tests/ Fixtures/ php/ services9_compiled.php
File
- vendor/
symfony/ dependency-injection/ ParameterBag/ FrozenParameterBag.php, line 21
Namespace
Symfony\Component\DependencyInjection\ParameterBagView source
class FrozenParameterBag extends ParameterBag {
/**
* Constructor.
*
* For performance reasons, the constructor assumes that
* all keys are already lowercased.
*
* This is always the case when used internally.
*
* @param array $parameters An array of parameters
*/
public function __construct(array $parameters = array()) {
$this->parameters = $parameters;
$this->resolved = true;
}
/**
* {@inheritdoc}
*/
public function clear() {
throw new LogicException('Impossible to call clear() on a frozen ParameterBag.');
}
/**
* {@inheritdoc}
*/
public function add(array $parameters) {
throw new LogicException('Impossible to call add() on a frozen ParameterBag.');
}
/**
* {@inheritdoc}
*/
public function set($name, $value) {
throw new LogicException('Impossible to call set() on a frozen ParameterBag.');
}
/**
* {@inheritdoc}
*/
public function remove($name) {
throw new LogicException('Impossible to call remove() on a frozen ParameterBag.');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FrozenParameterBag:: |
public | function |
Adds parameters to the service container parameters. Overrides ParameterBag:: |
|
FrozenParameterBag:: |
public | function |
Clears all parameters. Overrides ParameterBag:: |
|
FrozenParameterBag:: |
public | function |
Removes a parameter. Overrides ParameterBag:: |
|
FrozenParameterBag:: |
public | function |
Sets a service container parameter. Overrides ParameterBag:: |
|
FrozenParameterBag:: |
public | function |
Constructor. Overrides ParameterBag:: |
|
ParameterBag:: |
protected | property | ||
ParameterBag:: |
protected | property | ||
ParameterBag:: |
public | function |
Gets the service container parameters. Overrides ParameterBagInterface:: |
|
ParameterBag:: |
public | function |
Escape parameter placeholders %. Overrides ParameterBagInterface:: |
|
ParameterBag:: |
public | function |
Gets a service container parameter. Overrides ParameterBagInterface:: |
|
ParameterBag:: |
public | function |
Returns true if a parameter name is defined. Overrides ParameterBagInterface:: |
|
ParameterBag:: |
public | function | ||
ParameterBag:: |
public | function |
Replaces parameter placeholders (%name%) by their values for all parameters. Overrides ParameterBagInterface:: |
|
ParameterBag:: |
public | function | Resolves parameters inside a string. | |
ParameterBag:: |
public | function |
Replaces parameter placeholders (%name%) by their values. Overrides ParameterBagInterface:: |
|
ParameterBag:: |
public | function |
Unescape parameter placeholders %. Overrides ParameterBagInterface:: |