fix folder name

This commit is contained in:
2021-03-18 13:37:13 +01:00
parent a2f6773f5a
commit eaa0ad925f
1578 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
chill_event_event:
resource: "@ChillEventBundle/config/routes/event.yaml"
prefix: /{_locale}/event/event
chill_event_participation:
resource: "@ChillEventBundle/config/routes/participation.yaml"
prefix: /{_locale}/event/participation
## ADMIN
chill_event_admin:
path: /{_locale}/admin/event
controller: Chill\EventBundle\Controller\AdminController::indexAction
options:
menus:
admin_section:
order: 2100
label: "Events"
icons: ['calendar']
chill_event_admin_redirect_to_admin_index:
path: /{_locale}/admin/event_redirect_to_main
controller: Chill\EventBundle\Controller\AdminController::redirectToAdminIndexAction
options:
menus:
admin_events:
order: 0
label: Main admin menu
chill_event_admin_status:
resource: "@ChillEventBundle/config/routes/status.yaml"
prefix: /{_locale}/admin/event/status
chill_event_admin_role:
resource: "@ChillEventBundle/config/routes/role.yaml"
prefix: /{_locale}/admin/event/role
chill_event_admin_event_type:
resource: "@ChillEventBundle/config/routes/eventtype.yaml"
prefix: /{_locale}/admin/event/event_type

View File

@@ -0,0 +1,49 @@
chill_event_list_most_recent:
path: most_recent
controller: Chill\EventBundle\Controller\EventController::mostRecentIndexAction
options:
menus:
section:
order: 90
label: Events
icons: [calendar]
chill_event__event_show:
path: /{event_id}/show
controller: Chill\EventBundle\Controller\EventController::showAction
chill_event__event_new_pickcenter:
path: /new/pick-center
controller: Chill\EventBundle\Controller\EventController::newPickCenterAction
options:
menus:
section:
order: 11
label: Add an event
icons: [plus, calendar-o]
chill_event__event_new:
path: /new
controller: Chill\EventBundle\Controller\EventController::newAction
methods: [ GET, POST ]
chill_event__event_edit:
path: /{event_id}/edit
controller: Chill\EventBundle\Controller\EventController::editAction
chill_event__event_update:
path: /{event_id}/update
controller: Chill\EventBundle\Controller\EventController::updateAction
methods: [POST, PUT]
chill_event__list_by_person:
path: /{person_id}/list
controller: Chill\EventBundle\Controller\EventController::listByPersonAction
methods: [ GET ]
chill_event__event_delete:
path: /{event_id}/delete
requirements:
event_id: \d+
controller: Chill\EventBundle\Controller\EventController::deleteAction
methods: [ GET, DELETE ]

View File

@@ -0,0 +1,35 @@
chill_eventtype_admin:
path: /
controller: Chill\EventBundle\Controller\EventTypeController::indexAction
options:
menus:
admin_events:
order: 90
label: "Event types"
chill_eventtype_admin_show:
path: /{id}/show
controller: Chill\EventBundle\Controller\EventTypeController::showAction
chill_eventtype_admin_new:
path: /new
controller: Chill\EventBundle\Controller\EventTypeController::newAction
chill_eventtype_admin_create:
path: /create
controller: Chill\EventBundle\Controller\EventTypeController::createAction
methods: POST
chill_eventtype_admin_edit:
path: /{id}/edit
controller: Chill\EventBundle\Controller\EventTypeController::editAction
chill_eventtype_admin_update:
path: /{id}/update
controller: Chill\EventBundle\Controller\EventTypeController::updateAction
methods: [POST, PUT]
chill_eventtype_admin_delete:
path: /{id}/delete
controller: Chill\EventBundle\Controller\EventTypeController::deleteAction
methods: [POST, DELETE]

View File

@@ -0,0 +1,33 @@
chill_event_participation_new:
path: /new
controller: Chill\EventBundle\Controller\ParticipationController::newAction
chill_event_participation_create:
path: /create
controller: Chill\EventBundle\Controller\ParticipationController::createAction
chill_event_participation_edit:
path: /{participation_id}/edit
controller: Chill\EventBundle\Controller\ParticipationController::editAction
chill_event_participation_update:
path: /{participation_id}/update
controller: Chill\EventBundle\Controller\ParticipationController::updateAction
methods: [POST]
chill_event_participation_edit_multiple:
path: /{event_id}/edit_multiple
controller: Chill\EventBundle\Controller\ParticipationController::editMultipleAction
chill_event_participation_update_multiple:
path: /{event_id}/update_multiple
controller: Chill\EventBundle\Controller\ParticipationController::updateMultipleAction
methods: [POST]
chill_event_participation_delete:
path: /{participation_id}/delete
requirements:
participation_id: \d+
controller: Chill\EventBundle\Controller\ParticipationController::deleteAction
methods: [ GET, DELETE ]

View File

@@ -0,0 +1,35 @@
chill_event_admin_role:
path: /
controller: Chill\EventBundle\Controller\RoleController::indexAction
options:
menus:
admin_events:
order: 110
label: "Event roles"
chill_event_admin_role_show:
path: /{id}/show
controller: Chill\EventBundle\Controller\RoleController::showAction
chill_event_admin_role_new:
path: /new
controller: Chill\EventBundle\Controller\RoleController::newAction
chill_event_admin_role_create:
path: /create
controller: Chill\EventBundle\Controller\RoleController::createAction
methods: POST
chill_event_admin_role_edit:
path: /{id}/edit
controller: Chill\EventBundle\Controller\RoleController::editAction
chill_event_admin_role_update:
path: /{id}/update
controller: Chill\EventBundle\Controller\RoleController::updateAction
methods: [POST, PUT]
chill_event_admin_role_delete:
path: /{id}/delete
controller: Chill\EventBundle\Controller\RoleController::deleteAction
methods: [POST, DELETE]

View File

@@ -0,0 +1,35 @@
chill_event_admin_status:
path: /
controller: Chill\EventBundle\Controller\StatusController::indexAction
options:
menus:
admin_events:
order: 100
label: "Event status"
chill_event_admin_status_show:
path: /{id}/show
controller: Chill\EventBundle\Controller\StatusController::showAction
chill_event_admin_status_new:
path: /new
controller: Chill\EventBundle\Controller\StatusController::newAction
chill_event_admin_status_create:
path: /create
controller: Chill\EventBundle\Controller\StatusController::createAction
methods: POST
chill_event_admin_status_edit:
path: /{id}/edit
controller: Chill\EventBundle\Controller\StatusController::editAction
chill_event_admin_status_update:
path: /{id}/update
controller: Chill\EventBundle\Controller\StatusController::updateAction
methods: [POST, PUT]
chill_event_admin_status_delete:
path: /{id}/delete
controller: Chill\EventBundle\Controller\StatusController::deleteAction
methods: [POST, DELETE]

View File

@@ -0,0 +1,2 @@
services:

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,16 @@
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'
$paginator: '@chill_main.paginator_factory'
public: true
tags: ['controller.service_arguments']
Chill\EventBundle\Controller\ParticipationController:
arguments:
$logger: '@Psr\Log\LoggerInterface'
tags: ['controller.service_arguments']

View File

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

View File

@@ -0,0 +1,49 @@
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.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' }

View File

@@ -0,0 +1,26 @@
Chill\EventBundle\Entity\Participation:
properties:
event:
- NotNull: ~
status:
- NotNull: ~
person:
- NotNull: ~
constraints:
- Callback: isConsistent
Chill\EventBundle\Entity\Event:
properties:
name:
- Length:
min: 3
max: 75
minMessage: The event name must have at least {{ limit }} characters.
maxMessage: The event name must have maximum {{ limit }} characters.
type:
- NotNull: ~
circle:
- NotNull: ~
center:
- NotNull: ~