mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
add the possibility to add a participation of a person to an event
ref #5
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
chill_event_participation_new:
|
||||
path: /new
|
||||
defaults: { _controller: ChillEventBundle:Participation:new }
|
||||
|
||||
chill_event_participation_create:
|
||||
path: /create
|
||||
defaults: { _controller: ChillEventBundle:Participation:create }
|
||||
|
@@ -6,3 +6,11 @@ services:
|
||||
tags:
|
||||
- { name: chill.role }
|
||||
- { name: security.voter }
|
||||
|
||||
chill_event.event_participation:
|
||||
class: Chill\EventBundle\Security\Authorization\ParticipationVoter
|
||||
arguments:
|
||||
- "@chill.main.security.authorization.helper"
|
||||
tags:
|
||||
- { name: chill.role }
|
||||
- { name: security.voter }
|
||||
|
@@ -14,3 +14,10 @@ services:
|
||||
- "@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 }
|
||||
|
10
Resources/config/validation.yml
Normal file
10
Resources/config/validation.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
Chill\EventBundle\Event\Participation:
|
||||
properties:
|
||||
event:
|
||||
- NotNull: ~
|
||||
status:
|
||||
- NotNull: ~
|
||||
person:
|
||||
- NotNull: ~
|
||||
constraints:
|
||||
- Callback: [isConsistent]
|
Reference in New Issue
Block a user