Add MassUpdate to view definitions

- Add Mass update definition provider interface and legacy handler
- Add mass update definitions to ViewDefinition entity
- Inject mass update into view definitions call
This commit is contained in:
Clemente Raposo 2021-06-11 13:09:35 +01:00 committed by c.raposo
parent dbeee8c0e3
commit 85bc0c2f32
9 changed files with 553 additions and 5 deletions

View file

@ -37,6 +37,7 @@ services:
$recordViewActionLimits: '%module.recordview.actions_limits%'
$groupedFieldsTypeMap: '%record.fields.grouped_fields_type_map%'
$legacyToFrontEndFieldsMap: '%record.fields.legacy_to_frontend_fields_map%'
$massupdate: '%massupdate%'
$uiConfigs: '%ui%'
$extensions: '%extensions%'
$upgradeConfig: '%upgrades%'
@ -66,6 +67,8 @@ services:
shared: false
App\Install\Service\Upgrade\UpgradeStepInterface:
tags: [ 'app.upgrade.step' ]
App\ViewDefinitions\Service\MassUpdateDefinitionMapperInterface:
tags: [ 'massupdate.definition.mapper' ]

# makes classes in src/ available to be used as services
# this creates a service per class whose id is the fully-qualified class name
@ -205,6 +208,11 @@ services:
decorates: Doctrine\Migrations\Version\DbalMigrationFactory
arguments: ['@App\Install\Service\Migrations\MigrationFactoryDecorator.inner', '@service_container']

App\ViewDefinitions\Service\MassUpdateDefinitionMappers:
# inject all services tagged with massupdate.definition.mapper as first argument
arguments:
- !tagged { tag: 'massupdate.definition.mapper' }

App\Process\Service\ActionNameMapperInterface: '@App\Engine\LegacyHandler\ActionNameMapperHandler'
App\Process\Service\BulkActionDefinitionProviderInterface: '@App\Process\Service\BulkActionDefinitionProvider'
App\FieldDefinitions\Service\FieldDefinitionsProviderInterface: '@App\FieldDefinitions\LegacyHandler\FieldDefinitionsHandler'