[DependencyInjection] Freeze also FrozenParameterBag::remove

This commit is contained in:
Grégoire Pineau 2015-07-07 14:38:28 +02:00
parent 7c36f0b9a0
commit 4a72c441d5
1 changed files with 10 additions and 0 deletions

View File

@ -69,4 +69,14 @@ class FrozenParameterBag extends ParameterBag
{
throw new LogicException('Impossible to call set() on a frozen ParameterBag.');
}
/**
* {@inheritdoc}
*
* @api
*/
public function remove($name)
{
throw new LogicException('Impossible to call remove() on a frozen ParameterBag.');
}
}