ContainerBag.php
4 years ago
ContainerBagInterface.php
4 years ago
EnvPlaceholderParameterBag.php
4 years ago
FrozenParameterBag.php
4 years ago
ParameterBag.php
4 years ago
ParameterBagInterface.php
4 years ago
index.php
3 years ago
FrozenParameterBag.php
29 lines
| 1 | <?php |
| 2 | namespace MailPoetVendor\Symfony\Component\DependencyInjection\ParameterBag; |
| 3 | if (!defined('ABSPATH')) exit; |
| 4 | use MailPoetVendor\Symfony\Component\DependencyInjection\Exception\LogicException; |
| 5 | class FrozenParameterBag extends ParameterBag |
| 6 | { |
| 7 | public function __construct(array $parameters = []) |
| 8 | { |
| 9 | $this->parameters = $parameters; |
| 10 | $this->resolved = \true; |
| 11 | } |
| 12 | public function clear() |
| 13 | { |
| 14 | throw new LogicException('Impossible to call clear() on a frozen ParameterBag.'); |
| 15 | } |
| 16 | public function add(array $parameters) |
| 17 | { |
| 18 | throw new LogicException('Impossible to call add() on a frozen ParameterBag.'); |
| 19 | } |
| 20 | public function set(string $name, $value) |
| 21 | { |
| 22 | throw new LogicException('Impossible to call set() on a frozen ParameterBag.'); |
| 23 | } |
| 24 | public function remove(string $name) |
| 25 | { |
| 26 | throw new LogicException('Impossible to call remove() on a frozen ParameterBag.'); |
| 27 | } |
| 28 | } |
| 29 |