1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| services: # default configuration for services in *this* file
_defaults:
autowire: true # Automatically injects dependencies in your services.
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
public: false # Allows optimizing the container by removing unused services; this also means
# fetching services directly from the container via $container->get() won't work.
# The best practice is to be explicit about your dependencies anyway.
App\Service\FileUploader:
arguments:
$targetDirectory: '%logos_directory%'
App\EventListener\LogoUploadListener:
tags:
- { name: doctrine.event_listener, event: prePersist }
- { name: doctrine.event_listener, event: preUpdate } |
Partager