FrozenParameterBag.php in Zircon Profile 8
File
vendor/symfony/dependency-injection/ParameterBag/FrozenParameterBag.php
View source
<?php
namespace Symfony\Component\DependencyInjection\ParameterBag;
use Symfony\Component\DependencyInjection\Exception\LogicException;
class FrozenParameterBag extends ParameterBag {
public function __construct(array $parameters = array()) {
$this->parameters = $parameters;
$this->resolved = true;
}
public function clear() {
throw new LogicException('Impossible to call clear() on a frozen ParameterBag.');
}
public function add(array $parameters) {
throw new LogicException('Impossible to call add() on a frozen ParameterBag.');
}
public function set($name, $value) {
throw new LogicException('Impossible to call set() on a frozen ParameterBag.');
}
public function remove($name) {
throw new LogicException('Impossible to call remove() on a frozen ParameterBag.');
}
}