mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 14:25:00 +00:00
sf4, setting new path for all config yaml files, and replace 'controller' path syntax in routes definitions
This commit is contained in:
20
config/services/authorization.yaml
Normal file
20
config/services/authorization.yaml
Normal 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 }
|
10
config/services/controller.yaml
Normal file
10
config/services/controller.yaml
Normal 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
|
||||
|
4
config/services/fixtures.yaml
Normal file
4
config/services/fixtures.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
services:
|
||||
Chill\EventBundle\DataFixtures\ORM\:
|
||||
resource: ../../DataFixtures/ORM
|
||||
tags: [ 'doctrine.fixture.orm' ]
|
58
config/services/forms.yaml
Normal file
58
config/services/forms.yaml
Normal 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 }
|
7
config/services/menu.yaml
Normal file
7
config/services/menu.yaml
Normal 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' }
|
25
config/services/repositories.yaml
Normal file
25
config/services/repositories.yaml
Normal 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'
|
12
config/services/search.yaml
Normal file
12
config/services/search.yaml
Normal 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' }
|
||||
|
10
config/services/timeline.yaml
Normal file
10
config/services/timeline.yaml
Normal 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' }
|
Reference in New Issue
Block a user