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
ContainerBag.php
25 lines
| 1 | <?php |
| 2 | namespace MailPoetVendor\Symfony\Component\DependencyInjection\ParameterBag; |
| 3 | if (!defined('ABSPATH')) exit; |
| 4 | use MailPoetVendor\Symfony\Component\DependencyInjection\Container; |
| 5 | class ContainerBag extends FrozenParameterBag implements ContainerBagInterface |
| 6 | { |
| 7 | private $container; |
| 8 | public function __construct(Container $container) |
| 9 | { |
| 10 | $this->container = $container; |
| 11 | } |
| 12 | public function all() |
| 13 | { |
| 14 | return $this->container->getParameterBag()->all(); |
| 15 | } |
| 16 | public function get(string $name) |
| 17 | { |
| 18 | return $this->container->getParameter($name); |
| 19 | } |
| 20 | public function has(string $name) |
| 21 | { |
| 22 | return $this->container->hasParameter($name); |
| 23 | } |
| 24 | } |
| 25 |