public function Extension::getConfiguration in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/dependency-injection/Extension/Extension.php \Symfony\Component\DependencyInjection\Extension\Extension::getConfiguration()
Returns extension configuration.
Parameters
array $config An array of configuration values:
ContainerBuilder $container A ContainerBuilder instance:
Return value
ConfigurationInterface|null The configuration or null
Overrides ConfigurationExtensionInterface::getConfiguration
1 call to Extension::getConfiguration()
- ConfigurableExtension::load in vendor/
symfony/ http-kernel/ DependencyInjection/ ConfigurableExtension.php - Loads a specific configuration.
File
- vendor/
symfony/ dependency-injection/ Extension/ Extension.php, line 83
Class
- Extension
- Provides useful features shared by many extensions.
Namespace
Symfony\Component\DependencyInjection\ExtensionCode
public function getConfiguration(array $config, ContainerBuilder $container) {
$reflected = new \ReflectionClass($this);
$namespace = $reflected
->getNamespaceName();
$class = $namespace . '\\Configuration';
if (class_exists($class)) {
$r = new \ReflectionClass($class);
$container
->addResource(new FileResource($r
->getFileName()));
if (!method_exists($class, '__construct')) {
$configuration = new $class();
return $configuration;
}
}
}