Files
clinicpro/graphify-out/cache/ast/v0.8.44/721aecace95083433388fa4205e063cb45867b202d5430f44c1b0bbb1faa4465.json
T
hamed 9eb5a03258 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.
2026-06-30 21:58:44 +03:30

1 line
13 KiB
JSON

{"nodes": [{"id": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_category_controller_categoryimportcontroller_php", "label": "CategoryImportController.php", "file_type": "code", "source_file": "src/Category/Controller/CategoryImportController.php", "source_location": "L1"}, {"id": "controller_categoryimportcontroller_categoryimportcontroller", "label": "CategoryImportController", "file_type": "code", "source_file": "src/Category/Controller/CategoryImportController.php", "source_location": "L25"}, {"id": "basecontroller", "label": "BaseController", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "controller_categoryimportcontroller_categoryimportcontroller_construct", "label": ".__construct()", "file_type": "code", "source_file": "src/Category/Controller/CategoryImportController.php", "source_location": "L29"}, {"id": "controller_categoryimportcontroller_categoryimportcontroller_export", "label": ".export()", "file_type": "code", "source_file": "src/Category/Controller/CategoryImportController.php", "source_location": "L39"}, {"id": "jsonresponse", "label": "JsonResponse", "file_type": "code", "source_file": "src/Category/Controller/CategoryImportController.php", "source_location": "L39"}, {"id": "controller_categoryimportcontroller_categoryimportcontroller_import", "label": ".import()", "file_type": "code", "source_file": "src/Category/Controller/CategoryImportController.php", "source_location": "L49"}, {"id": "request", "label": "Request", "file_type": "code", "source_file": "src/Category/Controller/CategoryImportController.php", "source_location": "L49"}], "edges": [{"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_category_controller_categoryimportcontroller_php", "target": "categoryimporter", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Category/Controller/CategoryImportController.php", "source_location": "L5", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_category_controller_categoryimportcontroller_php", "target": "basecontroller", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Category/Controller/CategoryImportController.php", "source_location": "L6", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_category_controller_categoryimportcontroller_php", "target": "jsonresponse", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Category/Controller/CategoryImportController.php", "source_location": "L7", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_category_controller_categoryimportcontroller_php", "target": "request", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Category/Controller/CategoryImportController.php", "source_location": "L8", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_category_controller_categoryimportcontroller_php", "target": "route", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Category/Controller/CategoryImportController.php", "source_location": "L9", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_category_controller_categoryimportcontroller_php", "target": "isgranted", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Category/Controller/CategoryImportController.php", "source_location": "L10", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_category_controller_categoryimportcontroller_php", "target": "attributes", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Category/Controller/CategoryImportController.php", "source_location": "L11", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_category_controller_categoryimportcontroller_php", "target": "controller_categoryimportcontroller_categoryimportcontroller", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src/Category/Controller/CategoryImportController.php", "source_location": "L25", "weight": 1.0}, {"source": "controller_categoryimportcontroller_categoryimportcontroller", "target": "basecontroller", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "src/Category/Controller/CategoryImportController.php", "source_location": "L27", "weight": 1.0}, {"source": "controller_categoryimportcontroller_categoryimportcontroller", "target": "controller_categoryimportcontroller_categoryimportcontroller_construct", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/Category/Controller/CategoryImportController.php", "source_location": "L29", "weight": 1.0}, {"source": "controller_categoryimportcontroller_categoryimportcontroller", "target": "controller_categoryimportcontroller_categoryimportcontroller_export", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/Category/Controller/CategoryImportController.php", "source_location": "L39", "weight": 1.0}, {"source": "controller_categoryimportcontroller_categoryimportcontroller_export", "target": "jsonresponse", "relation": "references", "confidence": "EXTRACTED", "source_file": "src/Category/Controller/CategoryImportController.php", "source_location": "L39", "weight": 1.0, "context": "return_type"}, {"source": "controller_categoryimportcontroller_categoryimportcontroller", "target": "controller_categoryimportcontroller_categoryimportcontroller_import", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/Category/Controller/CategoryImportController.php", "source_location": "L49", "weight": 1.0}, {"source": "controller_categoryimportcontroller_categoryimportcontroller_import", "target": "request", "relation": "references", "confidence": "EXTRACTED", "source_file": "src/Category/Controller/CategoryImportController.php", "source_location": "L49", "weight": 1.0, "context": "parameter_type"}, {"source": "controller_categoryimportcontroller_categoryimportcontroller_import", "target": "jsonresponse", "relation": "references", "confidence": "EXTRACTED", "source_file": "src/Category/Controller/CategoryImportController.php", "source_location": "L49", "weight": 1.0, "context": "return_type"}], "raw_calls": [{"caller_nid": "controller_categoryimportcontroller_categoryimportcontroller_export", "callee": "isValidBundle", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Controller/CategoryImportController.php", "source_location": "L42", "receiver": null}, {"caller_nid": "controller_categoryimportcontroller_categoryimportcontroller_export", "callee": "error", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Controller/CategoryImportController.php", "source_location": "L43", "receiver": null}, {"caller_nid": "controller_categoryimportcontroller_categoryimportcontroller_export", "callee": "success", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Controller/CategoryImportController.php", "source_location": "L46", "receiver": null}, {"caller_nid": "controller_categoryimportcontroller_categoryimportcontroller_export", "callee": "exportAll", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Controller/CategoryImportController.php", "source_location": "L46", "receiver": null}, {"caller_nid": "controller_categoryimportcontroller_categoryimportcontroller_import", "callee": "isValidBundle", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Controller/CategoryImportController.php", "source_location": "L52", "receiver": null}, {"caller_nid": "controller_categoryimportcontroller_categoryimportcontroller_import", "callee": "error", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Controller/CategoryImportController.php", "source_location": "L53", "receiver": null}, {"caller_nid": "controller_categoryimportcontroller_categoryimportcontroller_import", "callee": "json_decode", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Controller/CategoryImportController.php", "source_location": "L56", "receiver": null}, {"caller_nid": "controller_categoryimportcontroller_categoryimportcontroller_import", "callee": "getContent", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Controller/CategoryImportController.php", "source_location": "L56", "receiver": null}, {"caller_nid": "controller_categoryimportcontroller_categoryimportcontroller_import", "callee": "is_array", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Controller/CategoryImportController.php", "source_location": "L58", "receiver": null}, {"caller_nid": "controller_categoryimportcontroller_categoryimportcontroller_import", "callee": "isset", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Controller/CategoryImportController.php", "source_location": "L58", "receiver": null}, {"caller_nid": "controller_categoryimportcontroller_categoryimportcontroller_import", "callee": "is_array", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Controller/CategoryImportController.php", "source_location": "L58", "receiver": null}, {"caller_nid": "controller_categoryimportcontroller_categoryimportcontroller_import", "callee": "is_array", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Controller/CategoryImportController.php", "source_location": "L61", "receiver": null}, {"caller_nid": "controller_categoryimportcontroller_categoryimportcontroller_import", "callee": "array_keys", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Controller/CategoryImportController.php", "source_location": "L61", "receiver": null}, {"caller_nid": "controller_categoryimportcontroller_categoryimportcontroller_import", "callee": "count", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Controller/CategoryImportController.php", "source_location": "L61", "receiver": null}, {"caller_nid": "controller_categoryimportcontroller_categoryimportcontroller_import", "callee": "error", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Controller/CategoryImportController.php", "source_location": "L62", "receiver": null}, {"caller_nid": "controller_categoryimportcontroller_categoryimportcontroller_import", "callee": "count", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Controller/CategoryImportController.php", "source_location": "L64", "receiver": null}, {"caller_nid": "controller_categoryimportcontroller_categoryimportcontroller_import", "callee": "error", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Controller/CategoryImportController.php", "source_location": "L65", "receiver": null}, {"caller_nid": "controller_categoryimportcontroller_categoryimportcontroller_import", "callee": "validate", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Controller/CategoryImportController.php", "source_location": "L69", "receiver": null}, {"caller_nid": "controller_categoryimportcontroller_categoryimportcontroller_import", "callee": "replace", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Controller/CategoryImportController.php", "source_location": "L75", "receiver": null}, {"caller_nid": "controller_categoryimportcontroller_categoryimportcontroller_import", "callee": "error", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Controller/CategoryImportController.php", "source_location": "L77", "receiver": null}, {"caller_nid": "controller_categoryimportcontroller_categoryimportcontroller_import", "callee": "getMessage", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Controller/CategoryImportController.php", "source_location": "L77", "receiver": null}, {"caller_nid": "controller_categoryimportcontroller_categoryimportcontroller_import", "callee": "success", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Controller/CategoryImportController.php", "source_location": "L80", "receiver": null}, {"caller_nid": "controller_categoryimportcontroller_categoryimportcontroller_import", "callee": "count", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Controller/CategoryImportController.php", "source_location": "L80", "receiver": null}]}