Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ContainerBagInterface.php

interface ContainerBagInterface

ContainerBagInterface is the interface implemented by objects that manage service container parameters.

@author Nicolas Grekas <p@tchwork.com>

Hierarchy

  • interface \Psr\Container\ContainerInterface
    • interface \Symfony\Component\DependencyInjection\ParameterBag\ContainerBagInterface extends \Psr\Container\ContainerInterface

Expanded class hierarchy of ContainerBagInterface

All classes that implement ContainerBagInterface

File

vendor/symfony/dependency-injection/ParameterBag/ContainerBagInterface.php, line 22

Namespace

Symfony\Component\DependencyInjection\ParameterBag
View source
interface ContainerBagInterface extends ContainerInterface {
    
    /**
     * Gets the service container parameters.
     */
    public function all() : array;
    
    /**
     * Replaces parameter placeholders (%name%) by their values.
     *
     * @template TValue of array<array|scalar>|scalar
     *
     * @param TValue $value
     *
     * @psalm-return (TValue is scalar ? array|scalar : array<array|scalar>)
     *
     * @throws ParameterNotFoundException if a placeholder references a parameter that does not exist
     */
    public function resolveValue(mixed $value) : mixed;
    
    /**
     * Escape parameter placeholders %.
     */
    public function escapeValue(mixed $value) : mixed;
    
    /**
     * Unescape parameter placeholders %.
     */
    public function unescapeValue(mixed $value) : mixed;

}

Members

Title Sort descending Modifiers Object type Summary Overrides
ContainerBagInterface::all public function Gets the service container parameters.
ContainerBagInterface::escapeValue public function Escape parameter placeholders %.
ContainerBagInterface::resolveValue public function Replaces parameter placeholders (%name%) by their values.
ContainerBagInterface::unescapeValue public function Unescape parameter placeholders %.
ContainerInterface::get public function Finds an entry of the container by its identifier and returns it. 2
ContainerInterface::has public function Returns true if the container can return an entry for the given identifier.
Returns false otherwise.
2
RSS feed
Powered by Drupal