Repository navigation
Release v0.0.11
Release version 0.0.11: Complete service auto-registration with #[AsAlias] attributes
Changelog
Added
- Complete Service Auto-Registration with
#[AsAlias]Attributes: All services now use Symfony's#[AsAlias]attribute for automatic service registration- Added
#[AsAlias]attribute to all service classes:IbanValidator-nowo_sepa_payment.validator.iban_validatorBicValidator-nowo_sepa_payment.validator.bic_validatorCreditCardValidator-nowo_sepa_payment.validator.credit_card_validatorCccConverter-nowo_sepa_payment.converter.ccc_converterRemesaParser-nowo_sepa_payment.parser.remesa_parserRemesaGenerator-nowo_sepa_payment.generator.remesa_generator(already had it)DirectDebitGenerator-nowo_sepa_payment.generator.direct_debit_generator(already had it)IdentifierGenerator-nowo_sepa_payment.generator.identifier_generator(already had it)
- Each service class now includes a
SERVICE_NAMEconstant for consistent alias naming - Services are automatically registered as public services via the
#[AsAlias]attribute
- Added
Changed
- Simplified Service Configuration: Updated
services.yamlto use resource-based service discovery- Services are now automatically discovered via
resourcedirectives for each namespace - Removed manual service definitions (now handled by
#[AsAlias]attributes) - All services are configured as public by default
- Only console commands require explicit configuration (for tags and arguments)
- This follows Symfony best practices for modern service registration
- Services are now automatically discovered via
Improved
- Code Organization: All services follow a consistent pattern with
#[AsAlias]attributes - Maintainability: Service registration is now declarative in the classes themselves rather than in configuration files
- Symfony Best Practices: Aligns with Symfony's recommended approach for service registration using attributes