mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
deprecated, new syntax service definition (export_manager)
This commit is contained in:
parent
455e1f21c4
commit
b03fc3558e
@ -41,13 +41,13 @@ class ExportsCompilerPass implements CompilerPassInterface
|
|||||||
|
|
||||||
public function process(ContainerBuilder $container)
|
public function process(ContainerBuilder $container)
|
||||||
{
|
{
|
||||||
if (!$container->hasDefinition('chill.main.export_manager')) {
|
if (!$container->has('Chill\MainBundle\Export\ExportManager')) {
|
||||||
throw new \LogicException('service chill.main.export_manager '
|
throw new \LogicException('service Chill\MainBundle\Export\ExportManager '
|
||||||
. 'is not defined. It is required by ExportsCompilerPass');
|
. 'is not defined. It is required by ExportsCompilerPass');
|
||||||
}
|
}
|
||||||
|
|
||||||
$chillManagerDefinition = $container->getDefinition(
|
$chillManagerDefinition = $container->findDefinition(
|
||||||
'chill.main.export_manager'
|
'Chill\MainBundle\Export\ExportManager'
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->compileExports($chillManagerDefinition, $container);
|
$this->compileExports($chillManagerDefinition, $container);
|
||||||
|
@ -42,7 +42,7 @@ services:
|
|||||||
- "@doctrine.orm.entity_manager"
|
- "@doctrine.orm.entity_manager"
|
||||||
calls:
|
calls:
|
||||||
- [ setContainer, ["@service_container"]]
|
- [ setContainer, ["@service_container"]]
|
||||||
|
|
||||||
chill.main.validator.role_scope_scope_presence:
|
chill.main.validator.role_scope_scope_presence:
|
||||||
class: Chill\MainBundle\Validation\Validator\RoleScopeScopePresence
|
class: Chill\MainBundle\Validation\Validator\RoleScopeScopePresence
|
||||||
arguments:
|
arguments:
|
||||||
@ -52,8 +52,7 @@ services:
|
|||||||
tags:
|
tags:
|
||||||
- { name: validator.constraint_validator, alias: 'role_scope_scope_presence' }
|
- { name: validator.constraint_validator, alias: 'role_scope_scope_presence' }
|
||||||
|
|
||||||
chill.main.export_manager:
|
Chill\MainBundle\Export\ExportManager:
|
||||||
class: Chill\MainBundle\Export\ExportManager
|
|
||||||
arguments:
|
arguments:
|
||||||
- "@logger"
|
- "@logger"
|
||||||
- "@doctrine.orm.entity_manager"
|
- "@doctrine.orm.entity_manager"
|
||||||
|
@ -9,7 +9,6 @@ services:
|
|||||||
# class: Chill\MainBundle\Export\Formatter\CSVFormatter
|
# class: Chill\MainBundle\Export\Formatter\CSVFormatter
|
||||||
# arguments:
|
# arguments:
|
||||||
# - "@translator"
|
# - "@translator"
|
||||||
# - "@chill.main.export_manager"
|
|
||||||
# tags:
|
# tags:
|
||||||
# - { name: chill.export_formatter, alias: 'csv' }
|
# - { name: chill.export_formatter, alias: 'csv' }
|
||||||
|
|
||||||
@ -17,7 +16,6 @@ services:
|
|||||||
class: Chill\MainBundle\Export\Formatter\SpreadSheetFormatter
|
class: Chill\MainBundle\Export\Formatter\SpreadSheetFormatter
|
||||||
arguments:
|
arguments:
|
||||||
- "@translator"
|
- "@translator"
|
||||||
- "@chill.main.export_manager"
|
|
||||||
tags:
|
tags:
|
||||||
- { name: chill.export_formatter, alias: 'spreadsheet' }
|
- { name: chill.export_formatter, alias: 'spreadsheet' }
|
||||||
|
|
||||||
@ -25,7 +23,6 @@ services:
|
|||||||
class: Chill\MainBundle\Export\Formatter\CSVListFormatter
|
class: Chill\MainBundle\Export\Formatter\CSVListFormatter
|
||||||
arguments:
|
arguments:
|
||||||
- "@translator"
|
- "@translator"
|
||||||
- "@chill.main.export_manager"
|
|
||||||
tags:
|
tags:
|
||||||
- { name: chill.export_formatter, alias: 'csvlist' }
|
- { name: chill.export_formatter, alias: 'csvlist' }
|
||||||
|
|
||||||
@ -33,7 +30,6 @@ services:
|
|||||||
class: Chill\MainBundle\Export\Formatter\SpreadsheetListFormatter
|
class: Chill\MainBundle\Export\Formatter\SpreadsheetListFormatter
|
||||||
arguments:
|
arguments:
|
||||||
- "@translator"
|
- "@translator"
|
||||||
- "@chill.main.export_manager"
|
|
||||||
tags:
|
tags:
|
||||||
- { name: chill.export_formatter, alias: 'spreadlist' }
|
- { name: chill.export_formatter, alias: 'spreadlist' }
|
||||||
|
|
||||||
@ -41,7 +37,6 @@ services:
|
|||||||
class: Chill\MainBundle\Export\Formatter\CSVPivotedListFormatter
|
class: Chill\MainBundle\Export\Formatter\CSVPivotedListFormatter
|
||||||
arguments:
|
arguments:
|
||||||
- "@translator"
|
- "@translator"
|
||||||
- "@chill.main.export_manager"
|
|
||||||
tags:
|
tags:
|
||||||
- { name: chill.export_formatter, alias: 'csv_pivoted_list' }
|
- { name: chill.export_formatter, alias: 'csv_pivoted_list' }
|
||||||
|
|
@ -68,15 +68,11 @@ services:
|
|||||||
|
|
||||||
chill.main.form.type.export:
|
chill.main.form.type.export:
|
||||||
class: Chill\MainBundle\Form\Type\Export\ExportType
|
class: Chill\MainBundle\Form\Type\Export\ExportType
|
||||||
arguments:
|
|
||||||
- "@chill.main.export_manager"
|
|
||||||
tags:
|
tags:
|
||||||
- { name: form.type }
|
- { name: form.type }
|
||||||
|
|
||||||
chill.main.form.pick_formatter_type:
|
chill.main.form.pick_formatter_type:
|
||||||
class: Chill\MainBundle\Form\Type\Export\PickFormatterType
|
class: Chill\MainBundle\Form\Type\Export\PickFormatterType
|
||||||
arguments:
|
|
||||||
- "@chill.main.export_manager"
|
|
||||||
tags:
|
tags:
|
||||||
- { name: form.type }
|
- { name: form.type }
|
||||||
|
|
||||||
@ -84,15 +80,12 @@ services:
|
|||||||
class: Chill\MainBundle\Form\Type\Export\PickCenterType
|
class: Chill\MainBundle\Form\Type\Export\PickCenterType
|
||||||
arguments:
|
arguments:
|
||||||
- "@security.token_storage"
|
- "@security.token_storage"
|
||||||
- "@chill.main.export_manager"
|
|
||||||
- "@chill.main.security.authorization.helper"
|
- "@chill.main.security.authorization.helper"
|
||||||
tags:
|
tags:
|
||||||
- { name: form.type }
|
- { name: form.type }
|
||||||
|
|
||||||
chill.main.form.formatter_type:
|
chill.main.form.formatter_type:
|
||||||
class: Chill\MainBundle\Form\Type\Export\FormatterType
|
class: Chill\MainBundle\Form\Type\Export\FormatterType
|
||||||
arguments:
|
|
||||||
- "@chill.main.export_manager"
|
|
||||||
tags:
|
tags:
|
||||||
- { name: form.type }
|
- { name: form.type }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user