| Name | Size | Mode | Actions |
|---|---|---|---|
| ContainerBag.php | 1125 | 0644 | editdlrm |
| ContainerBagInterface.php | 1359 | 0644 | editdlrm |
| EnvPlaceholderParameterBag.php | 5030 | 0644 | editdlrm |
| FrozenParameterBag.php | 1606 | 0644 | editdlrm |
| ParameterBag.php | 7762 | 0644 | editdlrm |
| ParameterBagInterface.php | 2565 | 0644 | editdlrm |
/usr/share/php/Symfony/Component/DependencyInjection/ParameterBag/ContainerBag.php (1125B)
*/ class ContainerBag extends FrozenParameterBag implements ContainerBagInterface { private $container; public function __construct(Container $container) { $this->container = $container; } /** * {@inheritdoc} */ public function all() { return $this->container->getParameterBag()->all(); } /** * {@inheritdoc} * * @return array|bool|string|int|float|null */ public function get(string $name) { return $this->container->getParameter($name); } /** * {@inheritdoc} * * @return bool */ public function has(string $name): bool { return $this->container->hasParameter($name); } }