Convert Moderation to a service+validator

This commit is contained in:
2024-06-12 20:37:24 +02:00
parent 32e0774302
commit b0f09a8217
12 changed files with 126 additions and 53 deletions

View File

@@ -6,7 +6,6 @@
parameters:
trusted_proxies: '%env(TRUSTED_PROXIES)%'
env(TRUSTED_PROXIES): 127.0.0.1
app.API_KEY_SIGHT_ENGINE: '%env(API_KEY_SIGHT_ENGINE)%'
services:
# default configuration for services in *this* file
@@ -27,5 +26,11 @@ services:
bind:
$processor: '@api_platform.doctrine.orm.state.persist_processor'
App\Service\ImageSafetyServiceInterface: '@App\Service\DummyImageSafetyService'
# add more service definitions when explicit configuration is needed
# please note that last definitions always *replace* previous ones
when@prod:
services:
App\Service\ImageSafetyServiceInterface: '@App\Service\SightEngineImageSafetyService'