SuiteCRM-Core/config/core_services.yaml
Dillon-Brown a8e3dbf784 Update core service declarations
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:40 +01:00

191 lines
8.8 KiB
YAML

services:
# default configuration for services in *this* file
_defaults:
autowire: true # Automatically injects dependencies in your services.
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
public: false # Allows optimizing the container by removing unused services.
bind:
$projectDir: '%kernel.project_dir%'
$legacyDir: '%legacy.dir%'
$legacyPath: '%legacy.path%'
$legacySessionName: '%legacy.session_name%'
$defaultSessionName: '%default_session_name%'
$moduleRouting: '%legacy.module_routing%'
$exposedSystemConfigs: '%legacy.exposed_system_configs%'
$systemConfigKeyMap: '%legacy.system_config_key_map%'
$menuItemMap: '%legacy.menu_item_map%'
$legacyAssetPaths: '%legacy.asset_paths%'
$legacyApiPaths: '%legacy.api_paths%'
$exposedUserPreferences: '%legacy.exposed_user_preferences%'
$userPreferencesKeyMap: '%legacy.user_preferences_key_map%'
$themeImagePaths: '%themes.image_paths%'
$themeImageSupportedTypes: '%themes.image_supported_types%'
$frontendExcludedModules: '%legacy.frontend_excluded_modules%'
$datetimeFormatMap: '%legacy.datetime_format_map%'
$filterOperatorMap: '%legacy.filter_operator_map%'
$cacheResetActions: '%legacy.cache_reset_actions%'
$navigationTabLimits: '%themes.navigation_tab_limits%'
$listViewBulkActions: '%module.listview.bulk_action%'
$listViewLineActions: '%module.listview.line_action%'
$listViewSidebarWidgets: '%module.listview.sidebar_widgets%'
$listViewColumnLimits: '%module.listview.column_limits%'
$listViewSettingsLimits: '%module.listview.settings_limits%'
$listViewActionsLimits: '%module.listview.actions_limits%'
$recordViewActions: '%module.recordview.actions%'
$recordViewActionLimits: '%module.recordview.actions_limits%'
$groupedFieldsTypeMap: '%record.fields.grouped_fields_type_map%'
$uiConfigs: '%ui%'
_instanceof:
App\Service\ProcessHandlerInterface:
tags: [ 'app.process.handler' ]
App\Legacy\UserPreferences\UserPreferencesMapperInterface:
tags: [ 'user.preferences.mapper' ]
App\Legacy\SystemConfig\SystemConfigMapperInterface:
tags: [ 'system.config.mapper' ]
App\Legacy\FieldDefinitions\FieldDefinitionMapperInterface:
tags: [ 'field.definition.mapper' ]
App\Legacy\ViewDefinitions\ViewDefinitionMapperInterface:
tags: [ 'view.definition.mapper' ]
App\Legacy\Data\PresetListDataHandlerInterface:
tags: [ 'app.data.preset.handler' ]
App\Legacy\Data\FilterMapper\FilterMapperInterface:
tags: [ 'app.data.filter.mapper' ]
App\Service\StatisticsProviderInterface:
tags: [ 'app.data.statistics.handler' ]
\App\Legacy\ViewDefinitions\SubpanelButtonMapperInterface:
tags: [ 'subpanel.button.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
App\:
resource: '../core/src/*'
exclude: '../core/src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php}'
# makes classes in legacy/ available to be used as services
# this creates a service per class whose id is the fully-qualified class name
App\Legacy\:
resource: '../core/legacy/*'
# makes classes in extensions/ available to be used as services
# this creates a service per class whose id is the fully-qualified class name
App\Extension\:
resource: '../extensions/*'
exclude: '../extensions/{DependencyInjection,Entity,Migrations,Tests,Kernel.php}'
# controllers are imported separately to make sure services can be injected
# as action arguments even if you don't extend any base controller class
App\Controller\:
resource: '../core/src/Controller/*'
tags: [ 'controller.service_arguments' ]
# add more service definitions when explicit configuration is needed
# please note that last definitions always *replace* previous ones
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' }
App\Security\LegacySessionDenyAccessListener:
decorates: 'api_platform.security.listener.request.deny_access'
App\Security\LegacySessionSecurityStage:
decorates: 'api_platform.graphql.resolver.stage.security'
App\Security\LegacySessionLogoutHandler:
tags:
- name: 'kernel.event_listener'
event: 'Symfony\Component\Security\Http\Event\LogoutEvent'
dispatcher: security.event_dispatcher.main
App\Security\RouteMatcher:
class: App\Security\RouteMatcher
public: false
App\Security\CSRFTokenManager:
class: App\Security\CSRFTokenManager
public: false
arguments:
$tokenId: 'angular'
App\Security\CSRFCookieListener:
tags: [ { name: kernel.event_listener, event: kernel.response, method: onKernelResponse } ]
arguments:
$routes: [ '^/' ]
$cookieName: 'XSRF-TOKEN'
$cookieExpire: 0
$cookiePath: /
$cookieDomain: ~
$cookieSecure: false
App\Security\CSRFValidationListener:
tags: [ { name: kernel.event_listener, event: kernel.request, method: onKernelRequest, priority: 12 } ]
arguments:
$routes: [ ]
$headerName: 'X-XSRF-TOKEN'
App\Legacy\UserPreferences\UserPreferencesMappers:
# inject all services tagged with user.preferences.mapper as first argument
arguments:
- !tagged { tag: 'user.preferences.mapper' }
App\Legacy\SystemConfig\SystemConfigMappers:
# inject all services tagged with system.config.mapper as first argument
arguments:
- !tagged { tag: 'system.config.mapper' }
App\Legacy\FieldDefinitions\FieldDefinitionMappers:
# inject all services tagged with field.definition.mapper as first argument
arguments:
- !tagged { tag: 'field.definition.mapper' }
App\Legacy\ViewDefinitions\ViewDefinitionMappers:
# inject all services tagged with view.definition.mapper as first argument
arguments:
- !tagged { tag: 'view.definition.mapper' }
App\Legacy\Data\PresetListDataHandlers:
# inject all services tagged with app.data.preset.handler as first argument
arguments:
- !tagged { tag: 'app.data.preset.handler' }
App\Service\StatisticsProviderRegistry:
# inject all services tagged with app.data.statistics.handler as first argument
arguments:
- !tagged { tag: 'app.data.statistics.handler' }
App\Legacy\Data\FilterMapper\FilterMappers:
# inject all services tagged with app.data.filter.mapper as first argument
arguments:
- !tagged { tag: 'app.data.filter.mapper' }
App\Legacy\ViewDefinitions\SubpanelButtonMappers:
# inject all services tagged with subpanel.button.definition.mapper as first argument
arguments:
- !tagged { tag: 'subpanel.button.definition.mapper' }
App\Service\ActionNameMapperInterface: '@App\Legacy\ActionNameMapperHandler'
App\Service\BulkActionDefinitionProviderInterface: '@App\Service\BulkActionDefinitionProvider'
App\Service\FieldDefinitionsProviderInterface: '@App\Legacy\FieldDefinitionsHandler'
App\Service\FilterDefinitionProviderInterface: '@App\Service\FilterDefinitionProvider'
App\Service\LineActionDefinitionProviderInterface: '@App\Service\LineActionDefinitionProvider'
App\Service\ListViewSidebarWidgetDefinitionProviderInterface: '@App\Service\ListViewSidebarWidgetDefinitionProvider'
App\Service\ModuleNameMapperInterface: '@App\Legacy\ModuleNameMapperHandler'
App\Service\ModuleRegistryInterface: '@App\Legacy\ModuleRegistryHandler'
App\Service\NavigationProviderInterface: '@App\Legacy\NavbarHandler'
App\Service\ProcessHandlerInterface: '@App\Legacy\ResetPasswordHandler'
App\Service\RecordActionDefinitionProviderInterface: '@App\Service\RecordActionDefinitionProvider'
App\Service\RecordDeletionServiceInterface: '@App\Legacy\RecordDeletionHandler'
App\Service\RecordListProviderInterface: '@App\Legacy\RecordListHandler'
App\Service\RecordProviderInterface: '@App\Legacy\RecordHandler'
App\Service\RouteConverterInterface: '@App\Legacy\RouteConverterHandler'
App\Service\StatisticsProviderInterface: '@App\Legacy\Statistics\SubpanelDefault'
App\Service\SubPanelDefinitionProviderInterface: '@App\Legacy\ViewDefinitions\SubPanelDefinitionHandler'
App\Service\SystemConfigProviderInterface: '@App\Legacy\SystemConfigHandler'
App\Service\UserPreferencesProviderInterface: '@App\Legacy\UserPreferenceHandler'
App\Service\ViewDefinitionsProviderInterface: '@App\Legacy\ViewDefinitionsHandler'