Julien Fastré 38df9bb91d adding a widget "add a person" on homepage, replacing the homepage menu
We use the new widget api to add a widget "add a person" on homepage. The homepage menu is deprecated.
2016-09-23 12:29:46 +02:00

13 lines
523 B
YAML

services:
chill_person.widget.person_list:
class: Chill\PersonBundle\Widget\PersonListWidget
arguments:
- "@chill.person.repository.person"
- "@chill.main.security.authorization.helper"
- "@security.token_storage"
# this widget is defined by the PersonListWidgetFactory
chill_person.widget.add_person:
class: Chill\PersonBundle\Widget\AddAPersonWidget
tags:
- { name: chill_widget, alias: add_person, place: homepage }