Skip to content

Commit

Permalink
Fix di config
Browse files Browse the repository at this point in the history
  • Loading branch information
fabios committed May 16, 2014
1 parent b8ad23d commit 9bcbae8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,6 @@ public function setPlatformBackupMap(array $map)
*/
public function getPlatformBackupMap()
{
if ($this->platformBackupMap === null) {
$this->platformBackupMap = array(
'mysql' => new Backup\MysqlDumpBackup(),
'sqlite' => new Backup\SqliteCopyBackup()
);
}

return $this->platformBackupMap;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<service id="behat.doctrine_data_fixtures.service.backup_sqlite" class="%behat.doctrine_data_fixtures.service.backup_sqlite.class%"/>

<service id="behat.doctrine_data_fixtures.service.backup" class="%behat.doctrine_data_fixtures.service.backup.class%">
<call method="getPlatformBackupMap">
<call method="setPlatformBackupMap">
<argument type="collection">
<argument key="sqlite" type="service" id="behat.doctrine_data_fixtures.service.backup_sqlite"/>
<argument key="mysql" type="service" id="behat.doctrine_data_fixtures.service.backup_mysql"/>
Expand Down

0 comments on commit 9bcbae8

Please sign in to comment.