Provides useful features shared by many extensions.

Abstract
Methods
public getAlias() : string
 

Returns the recommended alias to use in XML.

This alias is also the mandatory prefix to use when using YAML.

This convention is to remove the "Extension" postfix from the class name and then lowercase and underscore the result. So:

AcmeHelloExtension

becomes

acme_hello

This can be overridden in a sub-class to specify the alias manually.

  • throws \BadMethodCallException When the extension name does not follow conventions
public getConfiguration(array $config, Symfony\Component\DependencyInjection\ContainerBuilder $container) : ?Symfony\Component\Config\Definition\ConfigurationInterface
public final getProcessedConfigs() : array
 
  • internal
public abstract Symfony\Component\DependencyInjection\Extension\ExtensionInterface::load(array $configs, Symfony\Component\DependencyInjection\ContainerBuilder $container) : void
 

Loads a specific configuration.

  • param array[] $configs
  • throws \InvalidArgumentException When provided tag is not defined in this extension
Methods
protected isConfigEnabled(Symfony\Component\DependencyInjection\ContainerBuilder $container, array $config) : bool
 
  • throws \InvalidArgumentException When the config is not enableable
protected final processConfiguration(Symfony\Component\Config\Definition\ConfigurationInterface $configuration, array $configs) : array
Properties
private array $processedConfigs = []
© 2026 Bruce Wells
Search Namespaces \ Classes
Configuration