TestAppKernel.php 869 B

123456789101112131415161718192021222324252627282930313233343536
  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\Command\CacheClearCommand\Fixture;
  11. use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
  12. use Symfony\Component\Config\Loader\LoaderInterface;
  13. use Symfony\Component\HttpKernel\Kernel;
  14. class TestAppKernel extends Kernel
  15. {
  16. public function registerBundles()
  17. {
  18. return array(
  19. new FrameworkBundle(),
  20. );
  21. }
  22. public function setRootDir($rootDir)
  23. {
  24. $this->rootDir = $rootDir;
  25. }
  26. public function registerContainerConfiguration(LoaderInterface $loader)
  27. {
  28. $loader->load(__DIR__.\DIRECTORY_SEPARATOR.'config.yml');
  29. }
  30. }