ConfigurationExtensionInterface.php 986 B

123456789101112131415161718192021222324252627282930313233
  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. }