class FrozenParameterBag in Service Container 7
Same name and namespace in other branches
- 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/ParameterBag/FrozenParameterBag.php \Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag
Holds read-only parameters.
@author Fabien Potencier <fabien@symfony.com>
@api
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 modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Container.php - FrozenParameterBagTest.php in modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Tests/ ParameterBag/ FrozenParameterBagTest.php - services10.php in modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Tests/ Fixtures/ php/ services10.php - services12.php in modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Tests/ Fixtures/ php/ services12.php - services9_compiled.php in modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Tests/ Fixtures/ php/ services9_compiled.php
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ ParameterBag/ FrozenParameterBag.php, line 23
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
*
* @api
*/
public function __construct(array $parameters = array()) {
$this->parameters = $parameters;
$this->resolved = true;
}
/**
* {@inheritdoc}
*
* @api
*/
public function clear() {
throw new LogicException('Impossible to call clear() on a frozen ParameterBag.');
}
/**
* {@inheritdoc}
*
* @api
*/
public function add(array $parameters) {
throw new LogicException('Impossible to call add() on a frozen ParameterBag.');
}
/**
* {@inheritdoc}
*
* @api
*/
public function set($name, $value) {
throw new LogicException('Impossible to call set() on a frozen ParameterBag.');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FrozenParameterBag:: |
public | function |
@api Overrides ParameterBag:: |
|
FrozenParameterBag:: |
public | function |
@api Overrides ParameterBag:: |
|
FrozenParameterBag:: |
public | function |
@api 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 | Removes a parameter. | |
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:: |