services.yaml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Put parameters here that don't need to change on each machine where the app is deployed
  2. # https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
  3. parameters:
  4. locale: 'en'
  5. twig:
  6. form:
  7. resources:
  8. - 'GeneratorBundle::fields.html.twig'
  9. mailer_transport: smtp
  10. mailer_host: 127.0.0.1
  11. mailer_user: admin@example.com
  12. mailer_password: null
  13. url_append: ''
  14. course_info_is_not_editable: false
  15. sonata_media.cdn.host: /uploads/media
  16. services:
  17. # default configuration for services in *this* file
  18. _defaults:
  19. # automatically injects dependencies in your services
  20. autowire: true
  21. # automatically registers your services as commands, event subscribers, etc.
  22. autoconfigure: true
  23. # this means you cannot fetch services directly from the container via $container->get()
  24. # if you need to do this, you can override this setting on individual services
  25. public: false
  26. # makes classes in src/ available to be used as services
  27. # this creates a service per class whose id is the fully-qualified class name
  28. App\:
  29. resource: '../src/*'
  30. # you can exclude directories or files
  31. # but if a service is unused, it's removed anyway
  32. exclude: '../src/{Entity,Repository,Tests}'
  33. # controllers are imported separately to make sure they're public
  34. # and have a tag that allows actions to type-hint services
  35. App\Controller\:
  36. resource: '../src/Controller'
  37. public: true
  38. tags: ['controller.service_arguments']
  39. twig:
  40. form:
  41. resources:
  42. - 'GeneratorBundle::fields.html.twig'