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

@ -2,31 +2,31 @@ parameters:
# cl_chill_person.example.class: Chill\PersonBundle\Example # cl_chill_person.example.class: Chill\PersonBundle\Example
services: services:
Chill\DocStoreBundle\Repository\: Chill\DocStoreBundle\Repository\:
autowire: true autowire: true
autoconfigure: true autoconfigure: true
resource: '../Repository/' resource: "../Repository/"
tags: ['doctrine.repository_service'] tags: ["doctrine.repository_service"]
Chill\DocStoreBundle\Form\DocumentCategoryType: Chill\DocStoreBundle\Form\DocumentCategoryType:
class: Chill\DocStoreBundle\Form\DocumentCategoryType class: Chill\DocStoreBundle\Form\DocumentCategoryType
arguments: ['%kernel.bundles%'] arguments: ["%kernel.bundles%"]
tags: tags:
- { name: form.type } - { name: form.type }
Chill\DocStoreBundle\Form\PersonDocumentType: Chill\DocStoreBundle\Form\PersonDocumentType:
class: Chill\DocStoreBundle\Form\PersonDocumentType class: Chill\DocStoreBundle\Form\PersonDocumentType
arguments: arguments:
- "@chill.main.helper.translatable_string" - "@chill.main.helper.translatable_string"
tags: tags:
- { name: form.type, alias: chill_docstorebundle_form_document } - { name: form.type, alias: chill_docstorebundle_form_document }
Chill\DocStoreBundle\Security\Authorization\PersonDocumentVoter: Chill\DocStoreBundle\Security\Authorization\PersonDocumentVoter:
class: Chill\DocStoreBundle\Security\Authorization\PersonDocumentVoter class: Chill\DocStoreBundle\Security\Authorization\PersonDocumentVoter
arguments: arguments:
- "@security.access.decision_manager" - "@security.access.decision_manager"
- "@chill.main.security.authorization.helper" - "@chill.main.security.authorization.helper"
- "@logger" - "@logger"
tags: tags:
- { name: security.voter } - { name: security.voter }
- { name: chill.role } - { name: chill.role }

View File

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

@ -1,6 +1,13 @@
services: services:
Chill\DocStoreBundle\Form\StoredObjectType: Chill\DocStoreBundle\Form\StoredObjectType:
arguments: arguments:
$em: '@Doctrine\ORM\EntityManagerInterface' $em: '@Doctrine\ORM\EntityManagerInterface'
tags: tags:
- { name: form.type } - { 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 }