Skip to content

Commit 1f4fc7b

Browse files
committed
sync logic to determine the default value
1 parent 6e9e5c8 commit 1f4fc7b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/DependencyInjection/ConfigurationTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use Symfony\Bundle\FullStack;
1818
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
1919
use Symfony\Component\Config\Definition\Processor;
20+
use Symfony\Component\DependencyInjection\ContainerBuilder;
2021
use Symfony\Component\HttpClient\HttpClient;
2122
use Symfony\Component\Lock\Store\SemaphoreStore;
2223
use Symfony\Component\Mailer\Mailer;
@@ -496,7 +497,7 @@ protected static function getBundleDefaultConfig()
496497
'directory' => '%kernel.cache_dir%/pools',
497498
'default_redis_provider' => 'redis://localhost',
498499
'default_memcached_provider' => 'memcached://localhost',
499-
'default_pdo_provider' => class_exists(Connection::class) ? 'database_connection' : null,
500+
'default_pdo_provider' => ContainerBuilder::willBeAvailable('doctrine/dbal', Connection::class, ['symfony/framework-bundle']) ? 'database_connection' : null,
500501
'prefix_seed' => '_%kernel.project_dir%.%kernel.container_class%',
501502
],
502503
'workflows' => [

0 commit comments

Comments
 (0)