mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-04 05:44:58 +00:00
fix folder name
This commit is contained in:
42
src/Bundle/ChillEventBundle/config/routes.yaml
Normal file
42
src/Bundle/ChillEventBundle/config/routes.yaml
Normal 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
|
||||
|
49
src/Bundle/ChillEventBundle/config/routes/event.yaml
Normal file
49
src/Bundle/ChillEventBundle/config/routes/event.yaml
Normal 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 ]
|
35
src/Bundle/ChillEventBundle/config/routes/eventtype.yaml
Normal file
35
src/Bundle/ChillEventBundle/config/routes/eventtype.yaml
Normal 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]
|
33
src/Bundle/ChillEventBundle/config/routes/participation.yaml
Normal file
33
src/Bundle/ChillEventBundle/config/routes/participation.yaml
Normal 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 ]
|
||||
|
35
src/Bundle/ChillEventBundle/config/routes/role.yaml
Normal file
35
src/Bundle/ChillEventBundle/config/routes/role.yaml
Normal 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]
|
35
src/Bundle/ChillEventBundle/config/routes/status.yaml
Normal file
35
src/Bundle/ChillEventBundle/config/routes/status.yaml
Normal 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]
|
2
src/Bundle/ChillEventBundle/config/services.yaml
Normal file
2
src/Bundle/ChillEventBundle/config/services.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
services:
|
||||
|
@@ -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 }
|
16
src/Bundle/ChillEventBundle/config/services/controller.yaml
Normal file
16
src/Bundle/ChillEventBundle/config/services/controller.yaml
Normal 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']
|
@@ -0,0 +1,4 @@
|
||||
services:
|
||||
Chill\EventBundle\DataFixtures\ORM\:
|
||||
resource: ../../DataFixtures/ORM
|
||||
tags: [ 'doctrine.fixture.orm' ]
|
49
src/Bundle/ChillEventBundle/config/services/forms.yaml
Normal file
49
src/Bundle/ChillEventBundle/config/services/forms.yaml
Normal 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 }
|
7
src/Bundle/ChillEventBundle/config/services/menu.yaml
Normal file
7
src/Bundle/ChillEventBundle/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' }
|
@@ -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
src/Bundle/ChillEventBundle/config/services/search.yaml
Normal file
12
src/Bundle/ChillEventBundle/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
src/Bundle/ChillEventBundle/config/services/timeline.yaml
Normal file
10
src/Bundle/ChillEventBundle/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' }
|
26
src/Bundle/ChillEventBundle/config/validation.yaml
Normal file
26
src/Bundle/ChillEventBundle/config/validation.yaml
Normal 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: ~
|
Reference in New Issue
Block a user