mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-14 14:19:33 +00:00
IPN-Vorschlagslogik um Konfiguration erweitert
This commit is contained in:
parent
3100c83246
commit
a2f53290f4
14 changed files with 163 additions and 51 deletions
|
|
@ -231,28 +231,16 @@ services:
|
|||
tags:
|
||||
- { name: 'doctrine.fixtures.purger_factory', alias: 'reset_autoincrement_purger' }
|
||||
|
||||
App\Controller\PartController:
|
||||
bind:
|
||||
$autocompletePartDigits: '%partdb.autocomplete_part_digits%'
|
||||
|
||||
App\Controller\TypeaheadController:
|
||||
bind:
|
||||
$autocompletePartDigits: '%partdb.autocomplete_part_digits%'
|
||||
|
||||
App\Repository\PartRepository:
|
||||
arguments:
|
||||
$translator: '@translator'
|
||||
tags: ['doctrine.repository_service']
|
||||
|
||||
App\EventSubscriber\UserSystem\PartUniqueIpnSubscriber:
|
||||
arguments:
|
||||
$enforceUniqueIpn: '%partdb.users.enforce_unique_ipn%'
|
||||
tags:
|
||||
- { name: doctrine.event_subscriber }
|
||||
|
||||
App\Validator\Constraints\UniquePartIpnValidator:
|
||||
arguments:
|
||||
$enforceUniqueIpn: '%partdb.users.enforce_unique_ipn%'
|
||||
tags: [ 'validator.constraint_validator' ]
|
||||
|
||||
# We are needing this service inside a migration, where only the container is injected. So we need to define it as public, to access it from the container.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue