feat: add CategoryImporter service and SeedCategoriesCommand for seeding category data
- Implemented CategoryImporter service to handle bulk export/import logic for categories. - Created SeedCategoriesCommand to seed category tables from JSON files in data/seed/. - Added validation and normalization for category data during import. - Ensured proper error handling and user feedback during the seeding process.
This commit is contained in:
@@ -2300,8 +2300,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"config/services.yaml": {
|
||||
"mtime": 1782749831.6264865,
|
||||
"ast_hash": "e2fbe3625e44dc10f140933838278ac1",
|
||||
"mtime": 1782843927.2499301,
|
||||
"ast_hash": "6ddd0cb49e2be3c0d29348e843166ed1",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"docs/Architecture_Audit.md": {
|
||||
@@ -3415,8 +3415,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"src/Category/Controller/CategoryImportController.php": {
|
||||
"mtime": 1782839057.0287304,
|
||||
"ast_hash": "f4d8651689e73ca956bc2a9570bba695",
|
||||
"mtime": 1782843840.4128816,
|
||||
"ast_hash": "c7d911f98ab9a98e3f8394370ebc2021",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/Category/CategoryImportTest.php": {
|
||||
@@ -3425,8 +3425,38 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"docs/api/category-import.md": {
|
||||
"mtime": 1782839220.8153825,
|
||||
"ast_hash": "da0c24b873a9f46c97cd8760ac4eeba5",
|
||||
"mtime": 1782844030.4935105,
|
||||
"ast_hash": "d7eaf7bd2002ca82b3a95e16b0eb34dd",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"data/seed/cities.json": {
|
||||
"mtime": 1782843868.7730389,
|
||||
"ast_hash": "2baadcc7287ed58538b074906b531efc",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"data/seed/doctor_services.json": {
|
||||
"mtime": 1782843868.7779899,
|
||||
"ast_hash": "4001a6181d3279c2f850e20748a33566",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"data/seed/provinces.json": {
|
||||
"mtime": 1782843868.7706103,
|
||||
"ast_hash": "24b4c89c8deb44101cedaa3006b74751",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"data/seed/specialties.json": {
|
||||
"mtime": 1782843868.7755058,
|
||||
"ast_hash": "37dc79f859896696d1f7dd74afecfabe",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"src/Category/Command/SeedCategoriesCommand.php": {
|
||||
"mtime": 1782843891.8818347,
|
||||
"ast_hash": "2aa038b0454d52de87cc30f83d8c9da0",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"src/Category/Service/CategoryImporter.php": {
|
||||
"mtime": 1782843813.8434396,
|
||||
"ast_hash": "47a348a1a7cf97da5de81caad5f026d9",
|
||||
"semantic_hash": ""
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user