TestBundle.php 853 B

1234567891011121314151617181920212223242526272829
  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\Bundle\FrameworkBundle\Tests\Functional\Bundle\TestBundle;
  11. use Symfony\Bundle\FrameworkBundle\Tests\Functional\Bundle\TestBundle\DependencyInjection\Config\CustomConfig;
  12. use Symfony\Component\DependencyInjection\ContainerBuilder;
  13. use Symfony\Component\HttpKernel\Bundle\Bundle;
  14. class TestBundle extends Bundle
  15. {
  16. public function build(ContainerBuilder $container)
  17. {
  18. parent::build($container);
  19. /** @var $extension DependencyInjection\TestExtension */
  20. $extension = $container->getExtension('test');
  21. $extension->setCustomConfig(new CustomConfig());
  22. }
  23. }