Skip to content

Commit 3bbd031

Browse files
committed
Remove unused import and simplify anonymous class declaration in Kernel.php
1 parent df294f8 commit 3bbd031

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/LiveComponent/tests/Fixtures/Kernel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
use Composer\InstalledVersions;
1515
use Doctrine\Bundle\DoctrineBundle\DoctrineBundle;
16-
use Doctrine\ORM\Mapping\AssociationMapping;
1716
use Psr\Log\NullLogger;
1817
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
1918
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
@@ -81,7 +80,7 @@ public function registerBundles(): iterable
8180
protected function build(ContainerBuilder $container): void
8281
{
8382
// workaround https://github.com/symfony/symfony/issues/50322
84-
$container->addCompilerPass(new class() implements CompilerPassInterface {
83+
$container->addCompilerPass(new class implements CompilerPassInterface {
8584
public function process(ContainerBuilder $container): void
8685
{
8786
$container->removeDefinition('doctrine.orm.listeners.pdo_session_handler_schema_listener');
@@ -206,6 +205,7 @@ protected function configureContainer(ContainerConfigurator $c): void
206205
$doctrineConfig['orm']['validate_xml_mapping'] = true;
207206
$doctrineConfig['dbal']['schema_manager_factory'] = 'doctrine.dbal.default_schema_manager_factory';
208207

208+
// https://github.com/doctrine/DoctrineBundle/pull/1962
209209
if (version_compare($doctrineBundleVersion, '3.0.0', '<')) {
210210
$doctrineConfig['orm']['report_fields_where_declared'] = true;
211211
}

0 commit comments

Comments
 (0)