Convert Moderation to a service+validator
This commit is contained in:
@@ -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'
|
||||
|
Reference in New Issue
Block a user