Symfony\Component\DependencyInjection\ContainerBuilder::getExtensionConfig PHP Method

getExtensionConfig() public method

Returns the configuration array for the given extension.
public getExtensionConfig ( string $name ) : array
$name string The name of the extension
return array An array of configuration
    public function getExtensionConfig($name)
    {
        if (!isset($this->extensionConfigs[$name])) {
            $this->extensionConfigs[$name] = array();
        }

        return $this->extensionConfigs[$name];
    }

Usage Example

 /**
  * {@inheritdoc}
  */
 public function prepend(ContainerBuilder $container)
 {
     $config = current($container->getExtensionConfig('oauth2_server'));
     Assertion::keyExists($config, 'token_endpoint', 'The "TokenEndpointPlugin" must be enabled to use the "JWTBearerPlugin".');
     $bundle_config = current($container->getExtensionConfig('oauth2_server'))[$this->name()];
     $this->updateJoseBundleConfigurationForVerifier($container, 'jwt_bearer_grant_type', $bundle_config);
     $this->updateJoseBundleConfigurationForDecrypter($container, 'jwt_bearer_grant_type', $bundle_config);
     $this->updateJoseBundleConfigurationForChecker($container, 'jwt_bearer_grant_type', $bundle_config);
     $this->updateJoseBundleConfigurationForJWTLoader($container, 'jwt_bearer_grant_type', $bundle_config);
 }
All Usage Examples Of Symfony\Component\DependencyInjection\ContainerBuilder::getExtensionConfig