services added to config files

This commit is contained in:
Julie Lenaerts 2021-09-03 12:29:51 +02:00
parent 46560da67d
commit aad0d295ef
3 changed files with 54 additions and 40 deletions

View File

@ -5,12 +5,12 @@ services:
Chill\DocStoreBundle\Repository\:
autowire: true
autoconfigure: true
resource: '../Repository/'
tags: ['doctrine.repository_service']
resource: "../Repository/"
tags: ["doctrine.repository_service"]
Chill\DocStoreBundle\Form\DocumentCategoryType:
class: Chill\DocStoreBundle\Form\DocumentCategoryType
arguments: ['%kernel.bundles%']
arguments: ["%kernel.bundles%"]
tags:
- { name: form.type }

View File

@ -1,11 +1,18 @@
services:
Chill\DocStoreBundle\Controller\:
resource: '../../Controller'
tags: ['controller.service_arguments']
resource: "../../Controller"
tags: ["controller.service_arguments"]
Chill\DocStoreBundle\Controller\DocumentPersonController:
arguments:
$translator: '@Symfony\Component\Translation\TranslatorInterface'
$eventDispatcher: '@Symfony\Component\EventDispatcher\EventDispatcherInterface'
$authorizationHelper: '@Chill\MainBundle\Security\Authorization\AuthorizationHelper'
tags: ['controller.service_arguments']
tags: ["controller.service_arguments"]
Chill\DocStoreBundle\Controller\DocumentAccompanyingCourseController:
arguments:
$translator: '@Symfony\Component\Translation\TranslatorInterface'
$eventDispatcher: '@Symfony\Component\EventDispatcher\EventDispatcherInterface'
$authorizationHelper: '@Chill\MainBundle\Security\Authorization\AuthorizationHelper'
tags: ["controller.service_arguments"]

View File

@ -4,3 +4,10 @@ services:
$em: '@Doctrine\ORM\EntityManagerInterface'
tags:
- { name: form.type }
Chill\DocStoreBundle\Form\AccompanyingCourseDocumentType:
class: Chill\DocStoreBundle\Form\AccompanyingCourseDocumentType
arguments:
- "@chill.main.helper.translatable_string"
tags:
- { name: form.type, alias: chill_docstorebundle_form_document }