- Hinzufügen der DependencyInjection-Konfiguration für das Billing-Modul. - Erstellen der Invoice-Entity mit API-Ressourcen und Berechtigungen. - Konfigurieren der Services in services.yaml für das Billing-Modul. - Implementieren von CLI-Commands zur Verwaltung von Modul-Lizenzen und zur Auflistung installierter Module. - Erstellen eines API-Controllers zur Verwaltung von Modulen und Lizenzen. - Hinzufügen eines EventListeners für das Booten von Modulen. - Definieren von Interfaces für Lizenzvalidierung und Modul-Plugins. - Implementieren der ModuleRegistry zur Verwaltung und Booten von Modulen. - Erstellen eines LicenseValidator-Services zur Validierung und Registrierung von Lizenzen.
49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
# Services für Billing-Modul
|
|
|
|
services:
|
|
_defaults:
|
|
autowire: true
|
|
autoconfigure: true
|
|
|
|
# Plugin-Klasse (wird automatisch vom Core registriert)
|
|
MyCRM\BillingModule\BillingModulePlugin:
|
|
tags: ['app.module_plugin']
|
|
|
|
# Controller
|
|
MyCRM\BillingModule\Controller\:
|
|
resource: '../src/Controller/'
|
|
tags: ['controller.service_arguments']
|
|
|
|
# Repositories
|
|
MyCRM\BillingModule\Repository\:
|
|
resource: '../src/Repository/'
|
|
|
|
# Services
|
|
MyCRM\BillingModule\Service\:
|
|
resource: '../src/Service/'
|
|
|
|
# Event Listeners
|
|
MyCRM\BillingModule\EventListener\:
|
|
resource: '../src/EventListener/'
|
|
|
|
# Voters
|
|
MyCRM\BillingModule\Security\Voter\:
|
|
resource: '../src/Security/Voter/'
|
|
tags: ['security.voter']
|
|
|
|
# PDF-Generator Service
|
|
MyCRM\BillingModule\Service\PdfGenerator:
|
|
arguments:
|
|
$templatePath: '%kernel.project_dir%/vendor/mycrm/billing-module/templates/pdf'
|
|
$pdfTemplate: '%billing.pdf_template%'
|
|
|
|
# Invoice Service
|
|
MyCRM\BillingModule\Service\InvoiceService:
|
|
arguments:
|
|
$invoicePrefix: '%billing.invoice_prefix%'
|
|
|
|
# Payment Processor
|
|
MyCRM\BillingModule\Service\PaymentProcessor:
|
|
arguments:
|
|
$gatewayConfig: '%billing.payment_gateway%'
|