TEXT   11

services.yaml

Guest on 6th August 2021 06:31:08 PM

  1. # This file is the entry point to configure your own services.
  2. # Files in the packages/ subdirectory configure your dependencies.
  3.  
  4. # Put parameters here that don't need to change on each machine where the app is deployed
  5. # https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
  6. parameters:
  7.   locale: 'fr'
  8.   app.path.documents: /uploads/documents/
  9.  
  10. services:
  11.   # default configuration for services in *this* file
  12.   _defaults:
  13.     autowire: true      # Automatically injects dependencies in your services.
  14.     autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
  15.  
  16.   # makes classes in src/ available to be used as services
  17.   # this creates a service per class whose id is the fully-qualified class name
  18.   App\:
  19.     resource: '../src/*'
  20.     exclude: '../src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php}'
  21.  
  22.   # controllers are imported separately to make sure services can be injected
  23.   # as action arguments even if you don't extend any base controller class
  24.   App\Controller\:
  25.     resource: '../src/Controller'
  26.     tags: ['controller.service_arguments']
  27.  
  28.   App\Service\PositiveActionService:
  29.     arguments: ['@doctrine.orm.entity_manager']
  30.  
  31.  
  32.   # add more service definitions when explicit configuration is needed
  33.   # please note that last definitions always *replace* previous ones

Raw Paste


Login or Register to edit or fork this paste. It's free.