mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-22 18:24:23 +00:00
We use the new widget api to add a widget "add a person" on homepage. The homepage menu is deprecated.
13 lines
523 B
YAML
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 } |