You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Modernize codebase with PHP 8.1+ attributes (#495)
* feat: Modernize codebase with PHP 8.1+ attributes
- Commands: Replace setName() with #[AsCommand] attributes
* ExportTranslationsCommand
* ImportTranslationsCommand
- Controllers: Replace YAML routing with #[Route] attributes
* TranslationController
* RestController
- Doctrine Entities: Migrate XML mappings to PHP attributes
* Entity/Translation, TransUnit, File
- Doctrine Models: Migrate XML mappings to PHP attributes
* Model/Translation, TransUnit, File
- Update RegisterMappingPass to support attribute driver
All changes maintain backward compatibility and follow Symfony best
practices for PHP 8.1+.
Refs: #XXX
* feat: Add file property to Translation model
- Introduced a new protected property `$file` in the Translation model.
- Added setter `setFile()` and getter `getFile()` methods for managing the file property.
This change enhances the Translation model by allowing the association of a file with each translation instance.
* feat: Configure Docker Compose for translation service
- Added a custom bridge network `lexik_translation_network` for service isolation.
- Updated `lexik_translation`, `mysql`, and `mongo` services to use the new network.
- Set environment variables for the `lexik_translation` service to enhance configuration.
These changes improve the Docker setup for the translation service, ensuring better network management and service communication.
0 commit comments