mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-10 04:59: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\:
|
App\:
|
||||||
resource: '../src/'
|
resource: '../src/'
|
||||||
exclude:
|
exclude:
|
||||||
- '../src/DataFixtures/'
|
|
||||||
- '../src/Doctrine/Purger/'
|
|
||||||
- '../src/Entity/'
|
- '../src/Entity/'
|
||||||
- '../src/Helpers/'
|
- '../src/Helpers/'
|
||||||
|
|
||||||
|
|
@ -276,21 +274,12 @@ services:
|
||||||
tags:
|
tags:
|
||||||
- { name: monolog.processor }
|
- { name: monolog.processor }
|
||||||
|
|
||||||
when@test: &test
|
|
||||||
services:
|
|
||||||
|
|
||||||
App\DataFixtures\:
|
|
||||||
resource: '../src/DataFixtures/'
|
|
||||||
autoconfigure: true
|
|
||||||
autowire: true
|
|
||||||
|
|
||||||
App\Doctrine\Purger\:
|
|
||||||
resource: '../src/Doctrine/Purger/'
|
|
||||||
|
|
||||||
App\Doctrine\Purger\ResetAutoIncrementPurgerFactory:
|
App\Doctrine\Purger\ResetAutoIncrementPurgerFactory:
|
||||||
tags:
|
tags:
|
||||||
- { name: 'doctrine.fixtures.purger_factory', alias: 'reset_autoincrement_purger' }
|
- { name: 'doctrine.fixtures.purger_factory', alias: 'reset_autoincrement_purger' }
|
||||||
|
|
||||||
|
when@test: &test
|
||||||
|
services:
|
||||||
# Decorate the doctrine fixtures load command to use our custom purger by default
|
# Decorate the doctrine fixtures load command to use our custom purger by default
|
||||||
doctrine.fixtures_load_command.custom:
|
doctrine.fixtures_load_command.custom:
|
||||||
decorates: doctrine.fixtures_load_command
|
decorates: doctrine.fixtures_load_command
|
||||||
|
|
@ -299,6 +288,3 @@ when@test: &test
|
||||||
- '@doctrine.fixtures.loader'
|
- '@doctrine.fixtures.loader'
|
||||||
- '@doctrine'
|
- '@doctrine'
|
||||||
- { default: '@App\Doctrine\Purger\DoNotUsePurgerFactory' }
|
- { default: '@App\Doctrine\Purger\DoNotUsePurgerFactory' }
|
||||||
|
|
||||||
when@dev:
|
|
||||||
*test
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue