diff --git a/doc/database.md b/doc/database.md
index 31c3b54b..3994a55d 100644
--- a/doc/database.md
+++ b/doc/database.md
@@ -79,9 +79,6 @@ Methods
It also give access to other helpers:
-- `setDatabaseCacheEnabled()` accept `true` or `false` to disable the cache
- - you can call `$this->databaseTool->withDatabaseCacheEnabled(false)->loadFixtures(…)` to disable the cache on-demand
-
- `setPurgeMode()` accept `true` or `false` to disable purging the database
- you can call `$this->databaseTool->withPurgeMode(false)->loadFixtures(…)` to disable the purging on-demand
diff --git a/doc/events.md b/doc/events.md
index c66e7d31..db129e0b 100644
--- a/doc/events.md
+++ b/doc/events.md
@@ -15,7 +15,6 @@ declare(strict_types=1);
namespace Liip\Acme\Tests\AppConfigEvents\EventListener;
-use Liip\TestFixturesBundle\Event\PreFixtureBackupRestoreEvent;
use Liip\TestFixturesBundle\LiipTestFixturesEvents;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
diff --git a/src/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php
index e3615792..08c8ce33 100644
--- a/src/DependencyInjection/Configuration.php
+++ b/src/DependencyInjection/Configuration.php
@@ -28,15 +28,6 @@ public function getConfigTreeBuilder(): TreeBuilder
$rootNode
->children()
- ->arrayNode('cache_db')
- ->addDefaultsIfNotSet()
- ->ignoreExtraKeys(false)
- ->children()
- ->scalarNode('sqlite')
- ->defaultNull()
- ->end()
- ->end()
- ->end()
->booleanNode('keep_database_and_schema')->defaultFalse()->end()
->booleanNode('cache_metadata')->defaultTrue()->end()
;
diff --git a/src/DependencyInjection/LiipTestFixturesExtension.php b/src/DependencyInjection/LiipTestFixturesExtension.php
index 44bd5332..fee565ab 100644
--- a/src/DependencyInjection/LiipTestFixturesExtension.php
+++ b/src/DependencyInjection/LiipTestFixturesExtension.php
@@ -31,20 +31,7 @@ public function load(array $configs, ContainerBuilder $container): void
$loader->load('database_tools.xml');
foreach ($config as $key => $value) {
- // If the node is an array,
- // e.g. "liip_test_fixtures.cache_db.mysql",
- // set the value as
- // "liip_test_fixtures.cache_db.mysql"
- // instead of an array "liip_test_fixtures.cache_db"
- // with a "mysql" key.
- if (\is_array($value)) {
- foreach ($value as $key2 => $value2) {
- $container->setParameter($this->getAlias().'.'.$key.
- '.'.$key2, $value2);
- }
- } else {
- $container->setParameter($this->getAlias().'.'.$key, $value);
- }
+ $container->setParameter($this->getAlias().'.'.$key, $value);
}
}
}
diff --git a/src/Resources/config/database_tools.xml b/src/Resources/config/database_tools.xml
index a289f9fd..fc18818c 100644
--- a/src/Resources/config/database_tools.xml
+++ b/src/Resources/config/database_tools.xml
@@ -14,21 +14,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/tests/AppConfig/config.yml b/tests/AppConfig/config.yml
index b31e15b9..29aaabfc 100644
--- a/tests/AppConfig/config.yml
+++ b/tests/AppConfig/config.yml
@@ -7,10 +7,8 @@ framework:
# Define all the available parameters in this Bundle
liip_test_fixtures:
- cache_db:
- sqlite: 'Liip\TestFixturesBundle\Services\DatabaseBackup\SqliteDatabaseBackup'
- mysql: 'Liip\TestFixturesBundle\Services\DatabaseBackup\MysqlDatabaseBackup'
- mongodb: 'Liip\TestFixturesBundle\Services\DatabaseBackup\MongodbDatabaseBackup'
+ keep_database_and_schema: true
+ cache_metadata: true
services:
# HautelookAliceBundle: custom Faker provider