sf4, setting new path for all config yaml files, and replace 'controller' path syntax in routes definitions

This commit is contained in:
2020-08-04 12:20:16 +02:00
parent f94fb0efc1
commit d4948b176f
17 changed files with 54 additions and 54 deletions

View File

@@ -0,0 +1,20 @@
services:
chill_event.event_voter:
class: Chill\EventBundle\Security\Authorization\EventVoter
arguments:
- "@security.access.decision_manager"
- "@chill.main.security.authorization.helper"
- "@logger"
tags:
- { name: chill.role }
- { name: security.voter }
chill_event.event_participation:
class: Chill\EventBundle\Security\Authorization\ParticipationVoter
arguments:
- "@security.access.decision_manager"
- "@chill.main.security.authorization.helper"
- "@logger"
tags:
- { name: chill.role }
- { name: security.voter }

View File

@@ -0,0 +1,10 @@
services:
Chill\EventBundle\Controller\EventController:
arguments:
$eventDispatcher: '@Symfony\Component\EventDispatcher\EventDispatcherInterface'
$authorizationHelper: '@Chill\MainBundle\Security\Authorization\AuthorizationHelper'
$formFactoryInterface: '@Symfony\Component\Form\FormFactoryInterface'
$translator: '@Symfony\Component\Translation\TranslatorInterface'
public: true

View File

@@ -0,0 +1,4 @@
services:
Chill\EventBundle\DataFixtures\ORM\:
resource: ../../DataFixtures/ORM
tags: [ 'doctrine.fixture.orm' ]

View File

@@ -0,0 +1,58 @@
services:
chill.event.form.type.pick_event_type:
class: Chill\EventBundle\Form\Type\PickEventTypeType
arguments:
- "@chill.main.helper.translatable_string"
tags:
- { name: form.type }
chill.event.form.event_type_test:
class: Chill\EventBundle\Form\EventType
arguments:
- "@security.token_storage"
- "@chill.main.security.authorization.helper"
- "@chill.main.helper.translatable_string"
tags:
- { name: form.type }
chill.event.form.participation_type:
class: Chill\EventBundle\Form\ParticipationType
arguments:
- "@chill.main.helper.translatable_string"
tags:
- { name: form.type }
chill.event.form.pick_role_type:
class: Chill\EventBundle\Form\Type\PickRoleType
arguments:
- "@chill.main.helper.translatable_string"
- "@translator"
- "@chill_event.repository.role"
tags:
- { name: form.type }
chill.event.form.pick_status_type:
class: Chill\EventBundle\Form\Type\PickStatusType
arguments:
- "@chill.main.helper.translatable_string"
- "@translator"
- "@chill_event.repository.status"
tags:
- { name: form.type }
chill.event.form.role_type:
class: Chill\EventBundle\Form\RoleType
arguments:
- "@chill.main.helper.translatable_string"
tags:
- { name: form.type }
Chill\EventBundle\Form\Type\PickEventType:
arguments:
$eventRepository: "@chill_event.repository.event"
$tokenStorage: "@security.token_storage"
$authorizationHelper: "@chill.main.security.authorization.helper"
$urlGenerator: '@Symfony\Component\Routing\Generator\UrlGeneratorInterface'
$translator: '@Symfony\Component\Translation\TranslatorInterface'
tags:
- { name: form.type }

View File

@@ -0,0 +1,7 @@
services:
Chill\EventBundle\Menu\PersonMenuBuilder:
arguments:
$authorizationChecker: '@Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface'
$translator: '@Symfony\Component\Translation\TranslatorInterface'
tags:
- { name: 'chill.menu_builder' }

View File

@@ -0,0 +1,25 @@
services:
chill_event.repository.event:
class: Chill\EventBundle\Repository\EventRepository
factory: ['@doctrine.orm.entity_manager', getRepository]
arguments:
- 'Chill\EventBundle\Entity\Event'
chill_event.repository.participation:
class: Chill\EventBundle\Repository\ParticipationRepository
factory: ['@doctrine.orm.entity_manager', getRepository]
arguments:
- 'Chill\EventBundle\Entity\Participation'
chill_event.repository.role:
class: Doctrine\ORM\EntityRepository
factory: ['@doctrine.orm.entity_manager', getRepository]
arguments:
- 'Chill\EventBundle\Entity\Role'
chill_event.repository.status:
class: Doctrine\ORM\EntityRepository
factory: ['@doctrine.orm.entity_manager', getRepository]
arguments:
- 'Chill\EventBundle\Entity\Status'

View File

@@ -0,0 +1,12 @@
services:
chill_event.search_events:
class: Chill\EventBundle\Search\EventSearch
arguments:
- "@security.token_storage"
- "@chill_event.repository.event"
- "@chill.main.security.authorization.helper"
- "@templating"
- "@chill_main.paginator_factory"
tags:
- { name: chill.search, alias: 'event_regular' }

View File

@@ -0,0 +1,10 @@
services:
chill.event.timeline:
class: Chill\EventBundle\Timeline\TimelineEventProvider
arguments:
- '@doctrine.orm.entity_manager'
- '@chill.main.security.authorization.helper'
- '@security.token_storage'
public: true
tags:
- { name: chill.timeline, context: 'person' }