mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-04 22:04:59 +00:00
sf4, setting new path for all config yaml files, and replace 'controller' path syntax in routes definitions
This commit is contained in:
@@ -1,33 +0,0 @@
|
||||
chill_event_event:
|
||||
resource: "@ChillEventBundle/Resources/config/routing/event.yml"
|
||||
prefix: /{_locale}/event/event
|
||||
|
||||
chill_event_participation:
|
||||
resource: "@ChillEventBundle/Resources/config/routing/participation.yml"
|
||||
prefix: /{_locale}/event/participation
|
||||
|
||||
|
||||
## ADMIN
|
||||
|
||||
chill_event_admin:
|
||||
path: /{_locale}/admin/event
|
||||
defaults: { _controller: "ChillEventBundle:Admin:index" }
|
||||
options:
|
||||
menus:
|
||||
admin_section:
|
||||
order: 1000
|
||||
label: "Events configuration"
|
||||
icons: ['calendar']
|
||||
|
||||
chill_event_admin_status:
|
||||
resource: "@ChillEventBundle/Resources/config/routing/status.yml"
|
||||
prefix: /{_locale}/admin/event/status
|
||||
|
||||
chill_event_admin_role:
|
||||
resource: "@ChillEventBundle/Resources/config/routing/role.yml"
|
||||
prefix: /{_locale}/admin/event/role
|
||||
|
||||
chill_event_admin_event_type:
|
||||
resource: "@ChillEventBundle/Resources/config/routing/eventtype.yml"
|
||||
prefix: /{_locale}/admin/event/event_type
|
||||
|
@@ -1,49 +0,0 @@
|
||||
chill_event_list_most_recent:
|
||||
path: most_recent
|
||||
defaults: { _controller: "ChillEventBundle:Event:mostRecentIndex" }
|
||||
options:
|
||||
menus:
|
||||
section:
|
||||
order: 90
|
||||
label: Events
|
||||
icons: [calendar]
|
||||
|
||||
chill_event__event_show:
|
||||
path: /{event_id}/show
|
||||
defaults: { _controller: "ChillEventBundle:Event:show" }
|
||||
|
||||
chill_event__event_new_pickcenter:
|
||||
path: /new/pick-center
|
||||
defaults: { _controller: "ChillEventBundle:Event:newPickCenter" }
|
||||
options:
|
||||
menus:
|
||||
section:
|
||||
order: 11
|
||||
label: Add an event
|
||||
icons: [plus, calendar-o]
|
||||
|
||||
chill_event__event_new:
|
||||
path: /new
|
||||
defaults: { _controller: "ChillEventBundle:Event:new" }
|
||||
methods: [ GET, POST ]
|
||||
|
||||
chill_event__event_edit:
|
||||
path: /{event_id}/edit
|
||||
defaults: { _controller: "ChillEventBundle:Event:edit" }
|
||||
|
||||
chill_event__event_update:
|
||||
path: /{event_id}/update
|
||||
defaults: { _controller: "ChillEventBundle:Event:update" }
|
||||
methods: [POST, PUT]
|
||||
|
||||
chill_event__list_by_person:
|
||||
path: /{person_id}/list
|
||||
defaults: { _controller: "ChillEventBundle:Event:listByPerson" }
|
||||
methods: [ GET ]
|
||||
|
||||
chill_event__event_delete:
|
||||
path: /{event_id}/delete
|
||||
requirements:
|
||||
event_id: \d+
|
||||
defaults: { _controller: "ChillEventBundle:Event:delete" }
|
||||
methods: [ GET, DELETE ]
|
@@ -1,35 +0,0 @@
|
||||
chill_eventtype_admin:
|
||||
path: /
|
||||
defaults: { _controller: "ChillEventBundle:EventType:index" }
|
||||
options:
|
||||
menus:
|
||||
admin_events:
|
||||
order: 90
|
||||
label: "Event types"
|
||||
|
||||
chill_eventtype_admin_show:
|
||||
path: /{id}/show
|
||||
defaults: { _controller: "ChillEventBundle:EventType:show" }
|
||||
|
||||
chill_eventtype_admin_new:
|
||||
path: /new
|
||||
defaults: { _controller: "ChillEventBundle:EventType:new" }
|
||||
|
||||
chill_eventtype_admin_create:
|
||||
path: /create
|
||||
defaults: { _controller: "ChillEventBundle:EventType:create" }
|
||||
methods: POST
|
||||
|
||||
chill_eventtype_admin_edit:
|
||||
path: /{id}/edit
|
||||
defaults: { _controller: "ChillEventBundle:EventType:edit" }
|
||||
|
||||
chill_eventtype_admin_update:
|
||||
path: /{id}/update
|
||||
defaults: { _controller: "ChillEventBundle:EventType:update" }
|
||||
methods: [POST, PUT]
|
||||
|
||||
chill_eventtype_admin_delete:
|
||||
path: /{id}/delete
|
||||
defaults: { _controller: "ChillEventBundle:EventType:delete" }
|
||||
methods: [POST, DELETE]
|
@@ -1,33 +0,0 @@
|
||||
chill_event_participation_new:
|
||||
path: /new
|
||||
defaults: { _controller: ChillEventBundle:Participation:new }
|
||||
|
||||
chill_event_participation_create:
|
||||
path: /create
|
||||
defaults: { _controller: ChillEventBundle:Participation:create }
|
||||
|
||||
chill_event_participation_edit:
|
||||
path: /{participation_id}/edit
|
||||
defaults: { _controller: ChillEventBundle:Participation:edit }
|
||||
|
||||
chill_event_participation_update:
|
||||
path: /{participation_id}/update
|
||||
defaults: { _controller: ChillEventBundle:Participation:update }
|
||||
methods: [POST]
|
||||
|
||||
chill_event_participation_edit_multiple:
|
||||
path: /{event_id}/edit_multiple
|
||||
defaults: { _controller: ChillEventBundle:Participation:editMultiple }
|
||||
|
||||
chill_event_participation_update_multiple:
|
||||
path: /{event_id}/update_multiple
|
||||
defaults: { _controller: ChillEventBundle:Participation:updateMultiple }
|
||||
methods: [POST]
|
||||
|
||||
chill_event_participation_delete:
|
||||
path: /{participation_id}/delete
|
||||
requirements:
|
||||
participation_id: \d+
|
||||
defaults: { _controller: ChillEventBundle:Participation:delete }
|
||||
methods: [ GET, DELETE ]
|
||||
|
@@ -1,35 +0,0 @@
|
||||
chill_event_admin_role:
|
||||
path: /
|
||||
defaults: { _controller: "ChillEventBundle:Role:index" }
|
||||
options:
|
||||
menus:
|
||||
admin_events:
|
||||
order: 110
|
||||
label: "Event roles"
|
||||
|
||||
chill_event_admin_role_show:
|
||||
path: /{id}/show
|
||||
defaults: { _controller: "ChillEventBundle:Role:show" }
|
||||
|
||||
chill_event_admin_role_new:
|
||||
path: /new
|
||||
defaults: { _controller: "ChillEventBundle:Role:new" }
|
||||
|
||||
chill_event_admin_role_create:
|
||||
path: /create
|
||||
defaults: { _controller: "ChillEventBundle:Role:create" }
|
||||
methods: POST
|
||||
|
||||
chill_event_admin_role_edit:
|
||||
path: /{id}/edit
|
||||
defaults: { _controller: "ChillEventBundle:Role:edit" }
|
||||
|
||||
chill_event_admin_role_update:
|
||||
path: /{id}/update
|
||||
defaults: { _controller: "ChillEventBundle:Role:update" }
|
||||
methods: [POST, PUT]
|
||||
|
||||
chill_event_admin_role_delete:
|
||||
path: /{id}/delete
|
||||
defaults: { _controller: "ChillEventBundle:Role:delete" }
|
||||
methods: [POST, DELETE]
|
@@ -1,35 +0,0 @@
|
||||
chill_event_admin_status:
|
||||
path: /
|
||||
defaults: { _controller: "ChillEventBundle:Status:index" }
|
||||
options:
|
||||
menus:
|
||||
admin_events:
|
||||
order: 100
|
||||
label: "Event status"
|
||||
|
||||
chill_event_admin_status_show:
|
||||
path: /{id}/show
|
||||
defaults: { _controller: "ChillEventBundle:Status:show" }
|
||||
|
||||
chill_event_admin_status_new:
|
||||
path: /new
|
||||
defaults: { _controller: "ChillEventBundle:Status:new" }
|
||||
|
||||
chill_event_admin_status_create:
|
||||
path: /create
|
||||
defaults: { _controller: "ChillEventBundle:Status:create" }
|
||||
methods: POST
|
||||
|
||||
chill_event_admin_status_edit:
|
||||
path: /{id}/edit
|
||||
defaults: { _controller: "ChillEventBundle:Status:edit" }
|
||||
|
||||
chill_event_admin_status_update:
|
||||
path: /{id}/update
|
||||
defaults: { _controller: "ChillEventBundle:Status:update" }
|
||||
methods: [POST, PUT]
|
||||
|
||||
chill_event_admin_status_delete:
|
||||
path: /{id}/delete
|
||||
defaults: { _controller: "ChillEventBundle:Status:delete" }
|
||||
methods: [POST, DELETE]
|
@@ -1,4 +0,0 @@
|
||||
services:
|
||||
Chill\EventBundle\:
|
||||
resource: '../../*'
|
||||
exclude: '../../{Entity,Resources/migrations,Resources/test}'
|
@@ -1,20 +0,0 @@
|
||||
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 }
|
@@ -1,10 +0,0 @@
|
||||
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
|
||||
|
@@ -1,4 +0,0 @@
|
||||
services:
|
||||
Chill\EventBundle\DataFixtures\ORM\:
|
||||
resource: ../../../DataFixtures/ORM
|
||||
tags: [ 'doctrine.fixture.orm' ]
|
@@ -1,58 +0,0 @@
|
||||
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 }
|
@@ -1,7 +0,0 @@
|
||||
services:
|
||||
Chill\EventBundle\Menu\PersonMenuBuilder:
|
||||
arguments:
|
||||
$authorizationChecker: '@Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface'
|
||||
$translator: '@Symfony\Component\Translation\TranslatorInterface'
|
||||
tags:
|
||||
- { name: 'chill.menu_builder' }
|
@@ -1,25 +0,0 @@
|
||||
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'
|
@@ -1,12 +0,0 @@
|
||||
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' }
|
||||
|
@@ -1,10 +0,0 @@
|
||||
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' }
|
@@ -1,26 +0,0 @@
|
||||
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