Drupal investigation

ConfigurationExtensionInterface.php 986B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\DependencyInjection\Extension;
  11. use Symfony\Component\DependencyInjection\ContainerBuilder;
  12. use Symfony\Component\Config\Definition\ConfigurationInterface;
  13. /**
  14. * ConfigurationExtensionInterface is the interface implemented by container extension classes.
  15. *
  16. * @author Kevin Bond <kevinbond@gmail.com>
  17. */
  18. interface ConfigurationExtensionInterface
  19. {
  20. /**
  21. * Returns extension configuration.
  22. *
  23. * @param array $config An array of configuration values
  24. * @param ContainerBuilder $container A ContainerBuilder instance
  25. *
  26. * @return ConfigurationInterface|null The configuration or null
  27. */
  28. public function getConfiguration(array $config, ContainerBuilder $container);
  29. }