Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- parameters:
- locale: 'pl'
- services:
- # default configuration for services in *this* file
- _defaults:
- autowire: true # Automatically injects dependencies in your services.
- autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
- public: false # Allows optimizing the container by removing unused services; this also means
- # fetching services directly from the container via $container->get() won't work.
- # The best practice is to be explicit about your dependencies anyway.
- App\:
- resource: '../src/*'
- exclude: '../src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php}'
- # controllers are imported separately to make sure services can be injected
- # as action arguments even if you don't extend any base controller class
- App\Controller\:
- resource: '../src/Controller'
- tags: ['controller.service_arguments']
- # add more service definitions when explicit configuration is needed
- # please note that last definitions always *replace* previous ones
- admin.offer:
- class: App\Admin\OfferAdmin
- arguments: [~, App\Entity\Offer, ~]
- tags:
- - { name: sonata.admin, manager_type: orm, label: Oferty }
- admin.blogpost:
- class: App\Admin\BlogAdmin
- arguments: [~, App\Entity\Blog, ~]
- tags:
- - { name: sonata.admin, manager_type: orm, label: Posty }
- admin.lead:
- class: App\Admin\LeadAdmin
- arguments: [~, App\Entity\Lead, ~]
- tags:
- - { name: sonata.admin, manager_type: orm, label: Leady }
- admin.user:
- class: App\Admin\UserAdmin
- arguments: [~, App\Entity\User, ~]
- tags:
- - { name: sonata.admin, manager_type: orm, label: Użytkownicy }\
- app.service.salesmenago_service:
- class: App\Service\SalesmenagoService
- 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