-
Notifications
You must be signed in to change notification settings - Fork 1
/
services.yml
37 lines (34 loc) · 1.29 KB
/
services.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
services:
# menu generation
eone.menu.builder:
class: Eone\MenuBundle\Menu\MenuBuilder
arguments: ["@knp_menu.factory", "@doctrine.orm.entity_manager"]
eone.menu.menu.main:
class: Knp\Menu\MenuItem
factory_service: eone.menu.builder
factory_method: createMenuByAlias
arguments: ["main", "@request"]
scope: request
tags:
- { name: knp_menu.menu, alias: main }
- { name: eone_menu.menu, alias: main }
# menu admin
eone.admin.menu.node:
class: Eone\MenuBundle\Admin\MenuNodeAdmin
tags:
- { name: sonata.admin, manager_type: orm, group: Cms, label: "Menu nodes", icon: "<i class='fa fa-pencil'></i>" }
arguments:
- ~
- Eone\MenuBundle\Entity\MenuNode
- 'EoneMenuBundle:MenuNodeAdmin'
calls:
- [setRouter, ["@router"]]
- [addChild, ["@eone.admin.menu.nodei18n"]]
eone.admin.menu.nodei18n:
class: Eone\MenuBundle\Admin\MenuNodeI18nAdmin
tags:
- { name: sonata.admin, manager_type: orm, show_in_dashboard: false }
arguments:
- ~
- Eone\MenuBundle\Entity\MenuNodeI18n
- 'EoneSonataCustomizationBundle:TranslatingAdmin'