Skip to content

Refactor data source#155

Open
frwg wants to merge 4 commits intodevelopfrom
refactorDataSource
Open

Refactor data source#155
frwg wants to merge 4 commits intodevelopfrom
refactorDataSource

Conversation

@frwg
Copy link
Contributor

@frwg frwg commented Feb 27, 2026

Refactor: DataSourceBundle — remove eval-based EventProcessor
Simplifies the architecture by removing the multi-database-driver abstraction and the EventProcessor (which executed arbitrary PHP via eval() from YAML config — a security risk).

Breaking: Oracle/SQLite spatial support dropped, EventProcessor hooks removed (see EVENT-MIGRATION.md), deprecated DataStoreService/FeatureTypeService removed.

frwg added 4 commits February 27, 2026 11:18
…s in Doctrine

- Added MapbenderDataSourceExtension to automatically register PostGIS types (geometry, geography, box2d, box3d) as string in Doctrine's DBAL configuration.
- Removed deprecated eval-based event system, replacing it with safer alternatives using Symfony EventDispatcher and PostgreSQL triggers.
- Updated DataItem and Feature entities by removing author annotations.
- Deleted unused BaseXmlLoaderExtension and associated XML service configurations.
- Removed legacy Twig templates for form fields and associated tests.
- Updated services configuration to remove references to the old event processor.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant