gdprcookieconsent/config/services.yml
Walz 1b27d03c4d refactor to composer api
Non working state
2025-04-08 16:08:09 +02:00

34 lines
1.3 KiB
YAML

services:
_defaults:
public: true
autowire: true
autoconfigure: true
# Form Type
prestashop.module.gdprcookieconsent.form.type.gdpr_configuration:
class: 'PrestaShop\Module\GdprCookieConsent\Form\GdprConfigurationFormType'
parent: 'form.type.translatable.aware'
public: true
tags:
- { name: form.type }
# Data Configuration
prestashop.module.gdprcookieconsent.form.gdpr_configuration_data_configuration:
class: PrestaShop\Module\GdprCookieConsent\Form\GdprConfigurationDataConfiguration
arguments: ['@prestashop.adapter.legacy.configuration']
# Form Data Provider
prestashop.module.gdprcookieconsent.form.gdpr_configuration_form_data_provider:
class: 'PrestaShop\Module\GdprCookieConsent\Form\GdprConfigurationFormDataProvider'
arguments:
- '@prestashop.module.gdprcookieconsent.form.gdpr_configuration_data_configuration'
# Form Handler
prestashop.module.gdprcookieconsent.form.gdpr_configuration_form_data_handler:
class: 'PrestaShop\PrestaShop\Core\Form\Handler'
arguments:
- '@form.factory'
- '@prestashop.core.hook.dispatcher'
- '@prestashop.module.gdprcookieconsent.form.gdpr_configuration_form_data_provider'
- 'PrestaShop\Module\GdprCookieConsent\Form\GdprConfigurationFormType'
- 'Configuration'