Skip to content

Commit 2810c90

Browse files
Merge branch '6.2' into 6.3
* 6.2: [DependencyInjection] Skip errored definitions deep-referenced as runtime exceptions [WebProfilerBundle] Fix the accessibility of some background color [WebProfilerBundle] right blocks: fix display [Messenger] Preserve existing Doctrine schema [HttpClient] Explicitly exclude CURLOPT_POSTREDIR
2 parents 5902cc3 + 20e2169 commit 2810c90

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

Store/DoctrineDbalPostgreSqlStore.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
use Doctrine\DBAL\Platforms\PostgreSQLPlatform;
1818
use Doctrine\DBAL\Schema\DefaultSchemaManagerFactory;
1919
use Doctrine\DBAL\Tools\DsnParser;
20-
use Doctrine\ORM\ORMSetup;
2120
use Symfony\Component\Lock\BlockingSharedLockStoreInterface;
2221
use Symfony\Component\Lock\BlockingStoreInterface;
2322
use Symfony\Component\Lock\Exception\InvalidArgumentException;
@@ -69,7 +68,7 @@ public function __construct(#[\SensitiveParameter] Connection|string $connOrUrl)
6968
$params = ['url' => $this->filterDsn($connOrUrl)];
7069
}
7170

72-
$config = class_exists(ORMSetup::class) ? ORMSetup::createConfiguration() : new Configuration();
71+
$config = new Configuration();
7372
if (class_exists(DefaultSchemaManagerFactory::class)) {
7473
$config->setSchemaManagerFactory(new DefaultSchemaManagerFactory());
7574
}

Store/DoctrineDbalStore.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
use Doctrine\DBAL\Schema\DefaultSchemaManagerFactory;
2121
use Doctrine\DBAL\Schema\Schema;
2222
use Doctrine\DBAL\Tools\DsnParser;
23-
use Doctrine\ORM\ORMSetup;
2423
use Symfony\Component\Lock\Exception\InvalidArgumentException;
2524
use Symfony\Component\Lock\Exception\InvalidTtlException;
2625
use Symfony\Component\Lock\Exception\LockConflictedException;
@@ -88,7 +87,7 @@ public function __construct(Connection|string $connOrUrl, array $options = [], f
8887
$params = ['url' => $connOrUrl];
8988
}
9089

91-
$config = class_exists(ORMSetup::class) ? ORMSetup::createConfiguration() : new Configuration();
90+
$config = new Configuration();
9291
if (class_exists(DefaultSchemaManagerFactory::class)) {
9392
$config->setSchemaManagerFactory(new DefaultSchemaManagerFactory());
9493
}

Tests/Store/DoctrineDbalPostgreSqlStoreTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
use Doctrine\DBAL\Exception as DBALException;
1818
use Doctrine\DBAL\Schema\DefaultSchemaManagerFactory;
1919
use Doctrine\DBAL\Tools\DsnParser;
20-
use Doctrine\ORM\ORMSetup;
2120
use Symfony\Component\Lock\Exception\InvalidArgumentException;
2221
use Symfony\Component\Lock\Exception\LockConflictedException;
2322
use Symfony\Component\Lock\Key;
@@ -173,7 +172,7 @@ public function testWaitAndSaveReadAfterConflictReleasesLockFromInternalStore()
173172
private static function getDbalConnection(string $dsn): Connection
174173
{
175174
$params = class_exists(DsnParser::class) ? (new DsnParser(['sqlite' => 'pdo_sqlite']))->parse($dsn) : ['url' => $dsn];
176-
$config = class_exists(ORMSetup::class) ? ORMSetup::createConfiguration(true) : new Configuration();
175+
$config = new Configuration();
177176
if (class_exists(DefaultSchemaManagerFactory::class)) {
178177
$config->setSchemaManagerFactory(new DefaultSchemaManagerFactory());
179178
}

Tests/Store/DoctrineDbalStoreTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
use Doctrine\DBAL\Platforms\AbstractPlatform;
1919
use Doctrine\DBAL\Schema\DefaultSchemaManagerFactory;
2020
use Doctrine\DBAL\Schema\Schema;
21-
use Doctrine\ORM\ORMSetup;
2221
use Symfony\Component\Lock\Key;
2322
use Symfony\Component\Lock\PersistingStoreInterface;
2423
use Symfony\Component\Lock\Store\DoctrineDbalStore;
@@ -40,7 +39,7 @@ public static function setUpBeforeClass(): void
4039
{
4140
self::$dbFile = tempnam(sys_get_temp_dir(), 'sf_sqlite_lock');
4241

43-
$config = class_exists(ORMSetup::class) ? ORMSetup::createConfiguration(true) : new Configuration();
42+
$config = new Configuration();
4443
if (class_exists(DefaultSchemaManagerFactory::class)) {
4544
$config->setSchemaManagerFactory(new DefaultSchemaManagerFactory());
4645
}
@@ -61,7 +60,7 @@ protected function getClockDelay()
6160

6261
public function getStore(): PersistingStoreInterface
6362
{
64-
$config = class_exists(ORMSetup::class) ? ORMSetup::createConfiguration(true) : new Configuration();
63+
$config = new Configuration();
6564
if (class_exists(DefaultSchemaManagerFactory::class)) {
6665
$config->setSchemaManagerFactory(new DefaultSchemaManagerFactory());
6766
}

0 commit comments

Comments
 (0)