mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-10 13:09:30 +00:00
Removed now unnecessary workaround for fixtures
This commit is contained in:
parent
5ab31a84e4
commit
b1bf70c531
1 changed files with 4 additions and 18 deletions
|
|
@ -33,8 +33,6 @@ services:
|
|||
App\:
|
||||
resource: '../src/'
|
||||
exclude:
|
||||
- '../src/DataFixtures/'
|
||||
- '../src/Doctrine/Purger/'
|
||||
- '../src/Entity/'
|
||||
- '../src/Helpers/'
|
||||
|
||||
|
|
@ -276,21 +274,12 @@ services:
|
|||
tags:
|
||||
- { name: monolog.processor }
|
||||
|
||||
App\Doctrine\Purger\ResetAutoIncrementPurgerFactory:
|
||||
tags:
|
||||
- { name: 'doctrine.fixtures.purger_factory', alias: 'reset_autoincrement_purger' }
|
||||
|
||||
when@test: &test
|
||||
services:
|
||||
|
||||
App\DataFixtures\:
|
||||
resource: '../src/DataFixtures/'
|
||||
autoconfigure: true
|
||||
autowire: true
|
||||
|
||||
App\Doctrine\Purger\:
|
||||
resource: '../src/Doctrine/Purger/'
|
||||
|
||||
App\Doctrine\Purger\ResetAutoIncrementPurgerFactory:
|
||||
tags:
|
||||
- { name: 'doctrine.fixtures.purger_factory', alias: 'reset_autoincrement_purger' }
|
||||
|
||||
# Decorate the doctrine fixtures load command to use our custom purger by default
|
||||
doctrine.fixtures_load_command.custom:
|
||||
decorates: doctrine.fixtures_load_command
|
||||
|
|
@ -299,6 +288,3 @@ when@test: &test
|
|||
- '@doctrine.fixtures.loader'
|
||||
- '@doctrine'
|
||||
- { default: '@App\Doctrine\Purger\DoNotUsePurgerFactory' }
|
||||
|
||||
when@dev:
|
||||
*test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue