KernelForTest.php 978 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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\HttpKernel\Tests\Fixtures;
  11. use Symfony\Component\Config\Loader\LoaderInterface;
  12. use Symfony\Component\HttpKernel\Kernel;
  13. class KernelForTest extends Kernel
  14. {
  15. public function getBundleMap()
  16. {
  17. return $this->bundleMap;
  18. }
  19. public function registerBundles()
  20. {
  21. return [];
  22. }
  23. public function registerContainerConfiguration(LoaderInterface $loader)
  24. {
  25. }
  26. public function isBooted()
  27. {
  28. return $this->booted;
  29. }
  30. public function getCacheDir()
  31. {
  32. return $this->getProjectDir().'/Tests/Fixtures/cache.'.$this->environment;
  33. }
  34. public function getLogDir()
  35. {
  36. return $this->getProjectDir().'/Tests/Fixtures/logs';
  37. }
  38. }