<?php
namespace Symfony\Component\DependencyInjection\ParameterBag;
use Symfony\Component\DependencyInjection\Container;
class ContainerBag extends FrozenParameterBag implements ContainerBagInterface
{
public function __construct(
private Container $container,
) {
}
public function all(): array
{
return $this->container->getParameterBag()->all();
}
public function get(string $name): array|bool|string|int|float|\UnitEnum|null
{
return $this->container->getParameter($name);
}
public function has(string $name): bool
{
return $this->container->hasParameter($name);
}
}