Advertisement
Guest User

Untitled

a guest
May 23rd, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. parameters:
  2. locale: 'pl'
  3.  
  4. services:
  5. # default configuration for services in *this* file
  6. _defaults:
  7. autowire: true # Automatically injects dependencies in your services.
  8. autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
  9. public: false # Allows optimizing the container by removing unused services; this also means
  10. # fetching services directly from the container via $container->get() won't work.
  11. # The best practice is to be explicit about your dependencies anyway.
  12.  
  13. App\:
  14. resource: '../src/*'
  15. exclude: '../src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php}'
  16.  
  17. # controllers are imported separately to make sure services can be injected
  18. # as action arguments even if you don't extend any base controller class
  19. App\Controller\:
  20. resource: '../src/Controller'
  21. tags: ['controller.service_arguments']
  22.  
  23. # add more service definitions when explicit configuration is needed
  24. # please note that last definitions always *replace* previous ones
  25.  
  26. admin.offer:
  27. class: App\Admin\OfferAdmin
  28. arguments: [~, App\Entity\Offer, ~]
  29. tags:
  30. - { name: sonata.admin, manager_type: orm, label: Oferty }
  31.  
  32. admin.blogpost:
  33. class: App\Admin\BlogAdmin
  34. arguments: [~, App\Entity\Blog, ~]
  35. tags:
  36. - { name: sonata.admin, manager_type: orm, label: Posty }
  37.  
  38. admin.lead:
  39. class: App\Admin\LeadAdmin
  40. arguments: [~, App\Entity\Lead, ~]
  41. tags:
  42. - { name: sonata.admin, manager_type: orm, label: Leady }
  43.  
  44. admin.user:
  45. class: App\Admin\UserAdmin
  46. arguments: [~, App\Entity\User, ~]
  47. tags:
  48. - { name: sonata.admin, manager_type: orm, label: Użytkownicy }\
  49.  
  50. app.service.salesmenago_service:
  51. class: App\Service\SalesmenagoService
  52. arguments: ['%env(string:SALESMENAGO_CLIENT_ID)%', '%env(string:SALESMENAGO_ENDPOINT)%', '%env(string:SALESMENAGO_SECRET)%', '%env(string:SALESMENAGO_EMAIL)%',]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement