KernelWithoutBundles.php 929 B

123456789101112131415161718192021222324252627282930313233343536373839
  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\DependencyInjection\ContainerBuilder;
  13. use Symfony\Component\HttpKernel\Bundle\BundleInterface;
  14. use Symfony\Component\HttpKernel\Kernel;
  15. class KernelWithoutBundles extends Kernel
  16. {
  17. public function registerBundles(): iterable
  18. {
  19. return [];
  20. }
  21. public function registerContainerConfiguration(LoaderInterface $loader)
  22. {
  23. }
  24. public function getProjectDir(): string
  25. {
  26. return __DIR__;
  27. }
  28. protected function build(ContainerBuilder $container)
  29. {
  30. $container->setParameter('test_executed', true);
  31. }
  32. }