oont-contents/plugins/mailpoet/vendor-prefixed/symfony/dependency-injection/ParameterBag/ContainerBag.php
2025-02-08 15:10:23 +01:00

24 lines
632 B
PHP

<?php
namespace MailPoetVendor\Symfony\Component\DependencyInjection\ParameterBag;
if (!defined('ABSPATH')) exit;
use MailPoetVendor\Symfony\Component\DependencyInjection\Container;
class ContainerBag extends FrozenParameterBag implements ContainerBagInterface
{
private $container;
public function __construct(Container $container)
{
$this->container = $container;
}
public function all()
{
return $this->container->getParameterBag()->all();
}
public function get(string $name)
{
return $this->container->getParameter($name);
}
public function has(string $name)
{
return $this->container->hasParameter($name);
}
}