services.yml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. film.searcher:
  36. class: AppBundle\Service\Search
  37. public: true
  38. arguments:
  39. - "@doctrine.orm.entity_manager"
  40. film.unicite_collections:
  41. class: AppBundle\Service\UniciteCollections
  42. public: true
  43. arguments:
  44. - "@doctrine.orm.entity_manager"
  45. film.mail:
  46. class: AppBundle\Service\Mail
  47. public: true
  48. arguments:
  49. - "@mailer"
  50. - "@twig"
  51. - '%mail_from%'
  52. - '%mail_reply%'
  53. - '%mail_name%'
  54. film.mattermost:
  55. class: AppBundle\Service\Mattermost
  56. public: true
  57. arguments:
  58. - '%mattermost_url%'