mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-04 10:14:13 +08:00
Add Process API
- Add Process entity - Add ProcessDataPersister to allow submitting process requests - Add Process Collection and Item Data providers - Add ProcessHandlerInterface to be implemented by process handlers - Add ProcessHandlerRegistry to key based access to process handlers -- Add tagged and key based service collection injection --- to auto inject services implementing the ProcessHandlerInterface --- Auto tag all services implementing the ProcessHandlerInterface - Add angular service for processes - Add Authentication check before running process - Add GQL record mutation
This commit is contained in:
parent
eb397fba2f
commit
9449fe037f
10 changed files with 635 additions and 0 deletions
|
@ -27,6 +27,9 @@ services:
|
|||
$legacyActionNameMap: '%legacy.action_name_map%'
|
||||
$menuItemMap: '%legacy.menu_item_map%'
|
||||
$legacyAssetPaths: '%legacy.asset_paths%'
|
||||
_instanceof:
|
||||
App\Service\ProcessHandlerInterface:
|
||||
tags: ['app.process.handler']
|
||||
|
||||
# makes classes in src/ available to be used as services
|
||||
# this creates a service per class whose id is the fully-qualified class name
|
||||
|
@ -51,3 +54,9 @@ services:
|
|||
App\EventListener\LegacyRedirectListener:
|
||||
# set priority of 2050 to ensure the be the first running
|
||||
tags: [{ name: kernel.event_listener, event: kernel.request, priority: 2050 }]
|
||||
|
||||
App\Service\ProcessHandlerRegistry:
|
||||
# inject all services tagged with app.process.handler as first argument
|
||||
# and use the value of the 'getProcessType' method to index the services
|
||||
arguments:
|
||||
- !tagged { tag: 'app.process.handler', default_index_method: 'getProcessType' }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue