|
16 | 16 | use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
|
17 | 17 | use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
|
18 | 18 | use Symfony\Bundle\TwigBundle\TwigBundle;
|
| 19 | +use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; |
| 20 | +use Symfony\Component\DependencyInjection\Compiler\PassConfig; |
| 21 | +use Symfony\Component\DependencyInjection\ContainerBuilder; |
19 | 22 | use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
20 | 23 | use Symfony\Component\HttpFoundation\Response;
|
21 | 24 | use Symfony\Component\HttpKernel\Kernel as BaseKernel;
|
|
26 | 29 | use Symfony\UX\TwigComponent\TwigComponentBundle;
|
27 | 30 | use Twig\Environment;
|
28 | 31 | use Zenstruck\Foundry\ZenstruckFoundryBundle;
|
| 32 | + |
29 | 33 | use function Symfony\Component\DependencyInjection\Loader\Configurator\service;
|
30 | 34 |
|
31 | 35 | /**
|
@@ -57,6 +61,16 @@ public function registerBundles(): iterable
|
57 | 61 | yield new ZenstruckFoundryBundle();
|
58 | 62 | }
|
59 | 63 |
|
| 64 | + protected function build(ContainerBuilder $container): void |
| 65 | + { |
| 66 | + $container->addCompilerPass(new class() implements CompilerPassInterface { |
| 67 | + public function process(ContainerBuilder $container): void |
| 68 | + { |
| 69 | + $container->removeDefinition('doctrine.orm.listeners.pdo_session_handler_schema_listener'); |
| 70 | + } |
| 71 | + }, PassConfig::TYPE_BEFORE_OPTIMIZATION, 1); |
| 72 | + } |
| 73 | + |
60 | 74 | protected function configureContainer(ContainerConfigurator $c): void
|
61 | 75 | {
|
62 | 76 | $c->extension('framework', [
|
@@ -106,16 +120,15 @@ protected function configureContainer(ContainerConfigurator $c): void
|
106 | 120 |
|
107 | 121 | $c->services()
|
108 | 122 | ->defaults()
|
109 |
| - ->autowire() |
110 |
| - ->autoconfigure() |
| 123 | + ->autowire() |
| 124 | + ->autoconfigure() |
111 | 125 | // disable logging errors to the console
|
112 | 126 | ->set('logger', NullLogger::class)
|
113 | 127 | ->set(MoneyNormalizer::class)->autoconfigure()->autowire()
|
114 | 128 | ->set(Entity2Normalizer::class)->autoconfigure()->autowire()
|
115 | 129 | ->load(__NAMESPACE__.'\\Component\\', __DIR__.'/Component')
|
116 | 130 | ->set(TestingDeterministicIdTwigExtension::class)
|
117 |
| - ->args([service('ux.live_component.deterministic_id_calculator')]) |
118 |
| - ; |
| 131 | + ->args([service('ux.live_component.deterministic_id_calculator')]); |
119 | 132 | }
|
120 | 133 |
|
121 | 134 | protected function configureRoutes(RoutingConfigurator $routes): void
|
|
0 commit comments