TestKernel.php 985B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /*
  3. * This file is part of the Symfony framework.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * This source file is subject to the MIT license that is bundled
  8. * with this source code in the file LICENSE.
  9. */
  10. namespace Symfony\Bundle\AsseticBundle\Tests;
  11. use Symfony\Component\Config\Loader\LoaderInterface;
  12. use Symfony\Component\HttpKernel\Kernel;
  13. class TestKernel extends Kernel
  14. {
  15. public function getRootDir()
  16. {
  17. return __DIR__.'/Resources';
  18. }
  19. public function registerBundles()
  20. {
  21. return array(
  22. new \Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
  23. new \Symfony\Bundle\TwigBundle\TwigBundle(),
  24. new \Symfony\Bundle\AsseticBundle\AsseticBundle(),
  25. new \Symfony\Bundle\AsseticBundle\Tests\TestBundle\TestBundle(),
  26. );
  27. }
  28. public function registerContainerConfiguration(LoaderInterface $loader)
  29. {
  30. $loader->load(__DIR__.'/Resources/config/config.yml');
  31. }
  32. }