mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-16 10:12:49 +00:00
subscribe a person since listByPerson context (issue #19)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
Chill\EventBundle\Entity\Event:
|
||||
type: entity
|
||||
table: chill_event_event
|
||||
repositoryClass: Chill\EventBundle\Repository\EventRepository
|
||||
id:
|
||||
id:
|
||||
type: integer
|
||||
|
@@ -39,3 +39,4 @@ chill_event__event_update:
|
||||
chill_event__list_by_person:
|
||||
path: /{person_id}/list
|
||||
defaults: { _controller: "ChillEventBundle:Event:listByPerson" }
|
||||
methods: [ GET ]
|
||||
|
@@ -46,3 +46,13 @@ services:
|
||||
- "@chill.main.helper.translatable_string"
|
||||
tags:
|
||||
- { name: form.type }
|
||||
|
||||
Chill\EventBundle\Form\Type\PickSubscriptionType:
|
||||
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,6 +1,7 @@
|
||||
services:
|
||||
|
||||
chill_event.repository.event:
|
||||
class: Doctrine\ORM\EntityRepository
|
||||
class: Chill\EventBundle\Repository\EventRepository
|
||||
factory: ['@doctrine.orm.entity_manager', getRepository]
|
||||
arguments:
|
||||
- 'Chill\EventBundle\Entity\Event'
|
||||
@@ -15,4 +16,4 @@ services:
|
||||
class: Doctrine\ORM\EntityRepository
|
||||
factory: ['@doctrine.orm.entity_manager', getRepository]
|
||||
arguments:
|
||||
- 'Chill\EventBundle\Entity\Status'
|
||||
- 'Chill\EventBundle\Entity\Status'
|
||||
|
Reference in New Issue
Block a user