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:
2016-01-02 16:44:30 +01:00
parent 876a656bd2
commit b40b85527a
16 changed files with 1070 additions and 16 deletions

View File

@@ -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

View 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]

View File

@@ -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 }