matomo
/
app
/
vendor
/
prefixed
/
symfony
/
http-kernel
/
DependencyInjection
/
ConfigurableExtension.php
AddAnnotatedClassesToCachePass.php
1 year ago
ConfigurableExtension.php
2 years ago
ControllerArgumentValueResolverPass.php
2 years ago
Extension.php
2 years ago
FragmentRendererPass.php
1 year ago
LazyLoadingFragmentHandler.php
1 year ago
LoggerPass.php
1 year ago
MergeExtensionConfigurationPass.php
2 years ago
RegisterControllerArgumentLocatorsPass.php
1 year ago
RegisterLocaleAwareServicesPass.php
2 years ago
RemoveEmptyControllerArgumentLocatorsPass.php
1 year ago
ResettableServicePass.php
1 year ago
ServicesResetter.php
2 years ago
ConfigurableExtension.php
40 lines
| 1 | <?php |
| 2 | |
| 3 | /* |
| 4 | * This file is part of the Symfony package. |
| 5 | * |
| 6 | * (c) Fabien Potencier <fabien@symfony.com> |
| 7 | * |
| 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | * file that was distributed with this source code. |
| 10 | */ |
| 11 | namespace Matomo\Dependencies\Symfony\Component\HttpKernel\DependencyInjection; |
| 12 | |
| 13 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
| 14 | /** |
| 15 | * This extension sub-class provides first-class integration with the |
| 16 | * Config/Definition Component. |
| 17 | * |
| 18 | * You can use this as base class if |
| 19 | * |
| 20 | * a) you use the Config/Definition component for configuration, |
| 21 | * b) your configuration class is named "Configuration", and |
| 22 | * c) the configuration class resides in the DependencyInjection sub-folder. |
| 23 | * |
| 24 | * @author Johannes M. Schmitt <schmittjoh@gmail.com> |
| 25 | */ |
| 26 | abstract class ConfigurableExtension extends Extension |
| 27 | { |
| 28 | /** |
| 29 | * {@inheritdoc} |
| 30 | */ |
| 31 | public final function load(array $configs, ContainerBuilder $container) |
| 32 | { |
| 33 | $this->loadInternal($this->processConfiguration($this->getConfiguration($configs, $container), $configs), $container); |
| 34 | } |
| 35 | /** |
| 36 | * Configures the passed container according to the merged configuration. |
| 37 | */ |
| 38 | protected abstract function loadInternal(array $mergedConfig, ContainerBuilder $container); |
| 39 | } |
| 40 |