mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-24 00:23:50 +00:00
create a first set of export framework
- create interfaces - create an export manager - add a compiler pass to gather services tagged for export
This commit is contained in:
@@ -13,6 +13,10 @@ chill_main_admin_scope:
|
||||
chill_main_admin:
|
||||
resource: "@ChillMainBundle/Resources/config/routing/center.yml"
|
||||
prefix: "{_locale}/admin/center"
|
||||
|
||||
chill_main_exports:
|
||||
resource: "@ChillMainBundle/Resources/config/routing/exports.yml"
|
||||
prefix: "{_locale}/exports"
|
||||
|
||||
root:
|
||||
path: /
|
||||
@@ -35,15 +39,6 @@ chill_main_homepage:
|
||||
label: Homepage
|
||||
icons: [home]
|
||||
|
||||
chill_main_export_index:
|
||||
path: /{_locale}/export
|
||||
defaults: { _controller: ChillMainBundle:Export:index }
|
||||
options:
|
||||
menus:
|
||||
section:
|
||||
order: 20
|
||||
label: Export Menu
|
||||
icons: [upload]
|
||||
|
||||
chill_main_admin_central:
|
||||
path: /{_locale}/admin
|
||||
|
18
Resources/config/routing/exports.yml
Normal file
18
Resources/config/routing/exports.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
chill_main_export_index:
|
||||
path: /
|
||||
defaults: { _controller: ChillMainBundle:Export:index }
|
||||
options:
|
||||
menus:
|
||||
section:
|
||||
order: 20
|
||||
label: Export Menu
|
||||
icons: [upload]
|
||||
|
||||
chill_main_export_new:
|
||||
path: /new/{alias}
|
||||
defaults: { _controller: ChillMainBundle:Export:new }
|
||||
|
||||
chill_main_export_generate:
|
||||
path: /generate/{alias}
|
||||
defaults: { _controller: ChillMainBundle:Export:generate }
|
||||
methods: [GET]
|
@@ -148,3 +148,16 @@ services:
|
||||
- "@chill.main.helper.translatable_string"
|
||||
tags:
|
||||
- { name: form.type }
|
||||
|
||||
chill.main.export_manager:
|
||||
class: Chill\MainBundle\Export\ExportManager
|
||||
arguments:
|
||||
- "@logger"
|
||||
- "@doctrine.orm.entity_manager"
|
||||
|
||||
chill.main.form.type.export:
|
||||
class: Chill\MainBundle\Form\Type\Export\ExportType
|
||||
arguments:
|
||||
- "@chill.main.export_manager"
|
||||
tags:
|
||||
- { name: form.type }
|
||||
|
Reference in New Issue
Block a user