PHP Class ApiPlatform\Core\Bridge\Symfony\Bundle\DependencyInjection\ApiPlatformExtension

Author: Kévin Dunglas ([email protected])
Inheritance: extends Symfony\Component\HttpKernel\DependencyInjection\Extension, implements Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface
Mostrar archivo Open project: api-platform/core

Public Methods

Method Description
load ( array $configs, ContainerBuilder $container )
prepend ( ContainerBuilder $container )

Private Methods

Method Description
addFileResources ( string $bundleDirectory, array &$xmlResources, array &$yamlResources ) Populates file resources lists.
getFormats ( array $configFormats ) : array Normalizes the format from config to the one accepted by Symfony HttpFoundation.
handleConfig ( ContainerBuilder $container, array $config, array $formats, array $errorFormats ) Handles configuration.
registerBundlesConfiguration ( array $bundles, array $config, XmlFileLoader $loader ) Registers configuration for integration with third-party bundles.
registerCacheConfiguration ( ContainerBuilder $container ) Registers the cache configuration.
registerDoctrineExtensionConfiguration ( ContainerBuilder $container, array $config ) Manipulate doctrine extension services according to the configuration.
registerJsonHalConfiguration ( array $formats, XmlFileLoader $loader ) Registers the HAL configuration.
registerJsonLdConfiguration ( array $formats, XmlFileLoader $loader ) Registers the JSON-LD and Hydra configuration.
registerJsonProblemConfiguration ( array $errorFormats, XmlFileLoader $loader ) Registers the JSON Problem configuration.
registerLoaders ( ContainerBuilder $container, array $bundles ) Registers configuration file loaders.
registerMetadataConfiguration ( ContainerBuilder $container, XmlFileLoader $loader ) Registers metadata configuration.
registerSwaggerConfiguration ( ContainerBuilder $container, array $config, XmlFileLoader $loader ) Registers the Swagger and Swagger UI configuration.

Method Details

load() public method

public load ( array $configs, ContainerBuilder $container )
$configs array
$container Symfony\Component\DependencyInjection\ContainerBuilder

prepend() public method

public prepend ( ContainerBuilder $container )
$container Symfony\Component\DependencyInjection\ContainerBuilder