services.yml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. # Learn more about services, parameters and containers at
  2. # https://symfony.com/doc/current/service_container.html
  3. parameters:
  4. #parameter_name: value
  5. services:
  6. # default configuration for services in *this* file
  7. _defaults:
  8. # automatically injects dependencies in your services
  9. autowire: true
  10. # automatically registers your services as commands, event subscribers, etc.
  11. autoconfigure: true
  12. # this means you cannot fetch services directly from the container via $container->get()
  13. # if you need to do this, you can override this setting on individual services
  14. public: false
  15. # makes classes in src/AppBundle available to be used as services
  16. # this creates a service per class whose id is the fully-qualified class name
  17. AppBundle\:
  18. resource: '../../src/AppBundle/*'
  19. # you can exclude directories or files
  20. # but if a service is unused, it's removed anyway
  21. exclude: '../../src/AppBundle/{Entity,Repository,Tests}'
  22. # controllers are imported separately to make sure they're public
  23. # and have a tag that allows actions to type-hint services
  24. AppBundle\Controller\:
  25. resource: '../../src/AppBundle/Controller'
  26. public: true
  27. tags: ['controller.service_arguments']
  28. # add more services, or override services that need manual wiring
  29. # AppBundle\Service\ExampleService:
  30. # arguments:
  31. # $someArgument: 'some_value'
  32. AppBundle\Service\ActivityListener:
  33. tags:
  34. - { name: 'kernel.event_listener', event: 'kernel.controller', method: onCoreController }
  35. AppBundle\Service\Search:
  36. arguments:
  37. - "@doctrine.orm.entity_manager"
  38. AppBundle\Service\UniciteCollections:
  39. arguments:
  40. - "@doctrine.orm.entity_manager"
  41. AppBundle\Service\Mail:
  42. arguments:
  43. - "@mailer"
  44. - "@twig"
  45. - '%mail_from%'
  46. - '%mail_reply%'
  47. - '%mail_name%'
  48. AppBundle\Service\Mattermost:
  49. arguments:
  50. $url: '%mattermost_url%'
  51. AppBundle\Service\UserManager:
  52. arguments:
  53. - "@doctrine.orm.entity_manager"
  54. - "@security.password_encoder"
  55. AppBundle\Service\FilmCreationListener:
  56. arguments:
  57. - "@AppBundle\\Service\\Mattermost"
  58. - "@session"
  59. tags:
  60. - { name: doctrine.event_listener, event: postPersist }
  61. AppBundle\Service\NoteListener:
  62. arguments:
  63. - "@AppBundle\\Service\\NoteMoyenne"
  64. tags:
  65. - { name: doctrine.event_listener, event: postPersist }
  66. - { name: doctrine.event_listener, event: postUpdate }
  67. - { name: doctrine.event_listener, event: postRemove }