- 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.
1 line
10 KiB
JSON
1 line
10 KiB
JSON
{"nodes": [{"id": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_category_command_seedcategoriescommand_php", "label": "SeedCategoriesCommand.php", "file_type": "code", "source_file": "src/Category/Command/SeedCategoriesCommand.php", "source_location": "L1"}, {"id": "command_seedcategoriescommand_seedcategoriescommand", "label": "SeedCategoriesCommand", "file_type": "code", "source_file": "src/Category/Command/SeedCategoriesCommand.php", "source_location": "L22"}, {"id": "command", "label": "Command", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "command_seedcategoriescommand_seedcategoriescommand_construct", "label": ".__construct()", "file_type": "code", "source_file": "src/Category/Command/SeedCategoriesCommand.php", "source_location": "L28"}, {"id": "command_seedcategoriescommand_seedcategoriescommand_execute", "label": ".execute()", "file_type": "code", "source_file": "src/Category/Command/SeedCategoriesCommand.php", "source_location": "L35"}, {"id": "inputinterface", "label": "InputInterface", "file_type": "code", "source_file": "src/Category/Command/SeedCategoriesCommand.php", "source_location": "L35"}, {"id": "outputinterface", "label": "OutputInterface", "file_type": "code", "source_file": "src/Category/Command/SeedCategoriesCommand.php", "source_location": "L35"}], "edges": [{"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_category_command_seedcategoriescommand_php", "target": "categoryimporter", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Category/Command/SeedCategoriesCommand.php", "source_location": "L5", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_category_command_seedcategoriescommand_php", "target": "ascommand", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Category/Command/SeedCategoriesCommand.php", "source_location": "L6", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_category_command_seedcategoriescommand_php", "target": "command", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Category/Command/SeedCategoriesCommand.php", "source_location": "L7", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_category_command_seedcategoriescommand_php", "target": "inputinterface", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Category/Command/SeedCategoriesCommand.php", "source_location": "L8", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_category_command_seedcategoriescommand_php", "target": "outputinterface", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Category/Command/SeedCategoriesCommand.php", "source_location": "L9", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_category_command_seedcategoriescommand_php", "target": "symfonystyle", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Category/Command/SeedCategoriesCommand.php", "source_location": "L10", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_category_command_seedcategoriescommand_php", "target": "command_seedcategoriescommand_seedcategoriescommand", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src/Category/Command/SeedCategoriesCommand.php", "source_location": "L22", "weight": 1.0}, {"source": "command_seedcategoriescommand_seedcategoriescommand", "target": "command", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "src/Category/Command/SeedCategoriesCommand.php", "source_location": "L23", "weight": 1.0}, {"source": "command_seedcategoriescommand_seedcategoriescommand", "target": "command_seedcategoriescommand_seedcategoriescommand_construct", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/Category/Command/SeedCategoriesCommand.php", "source_location": "L28", "weight": 1.0}, {"source": "command_seedcategoriescommand_seedcategoriescommand", "target": "command_seedcategoriescommand_seedcategoriescommand_execute", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/Category/Command/SeedCategoriesCommand.php", "source_location": "L35", "weight": 1.0}, {"source": "command_seedcategoriescommand_seedcategoriescommand_execute", "target": "inputinterface", "relation": "references", "confidence": "EXTRACTED", "source_file": "src/Category/Command/SeedCategoriesCommand.php", "source_location": "L35", "weight": 1.0, "context": "parameter_type"}, {"source": "command_seedcategoriescommand_seedcategoriescommand_execute", "target": "outputinterface", "relation": "references", "confidence": "EXTRACTED", "source_file": "src/Category/Command/SeedCategoriesCommand.php", "source_location": "L35", "weight": 1.0, "context": "parameter_type"}, {"source": "command_seedcategoriescommand_seedcategoriescommand_execute", "target": "command", "relation": "references_constant", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "src/Category/Command/SeedCategoriesCommand.php", "source_location": "L44", "weight": 1.0}], "raw_calls": [{"caller_nid": "command_seedcategoriescommand_seedcategoriescommand_construct", "callee": "parent", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Command/SeedCategoriesCommand.php", "source_location": "L32", "receiver": null}, {"caller_nid": "command_seedcategoriescommand_seedcategoriescommand_execute", "callee": "is_file", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Command/SeedCategoriesCommand.php", "source_location": "L42", "receiver": null}, {"caller_nid": "command_seedcategoriescommand_seedcategoriescommand_execute", "callee": "error", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Command/SeedCategoriesCommand.php", "source_location": "L43", "receiver": null}, {"caller_nid": "command_seedcategoriescommand_seedcategoriescommand_execute", "callee": "json_decode", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Command/SeedCategoriesCommand.php", "source_location": "L47", "receiver": null}, {"caller_nid": "command_seedcategoriescommand_seedcategoriescommand_execute", "callee": "file_get_contents", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Command/SeedCategoriesCommand.php", "source_location": "L47", "receiver": null}, {"caller_nid": "command_seedcategoriescommand_seedcategoriescommand_execute", "callee": "is_array", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Command/SeedCategoriesCommand.php", "source_location": "L48", "receiver": null}, {"caller_nid": "command_seedcategoriescommand_seedcategoriescommand_execute", "callee": "array_keys", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Command/SeedCategoriesCommand.php", "source_location": "L48", "receiver": null}, {"caller_nid": "command_seedcategoriescommand_seedcategoriescommand_execute", "callee": "count", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Command/SeedCategoriesCommand.php", "source_location": "L48", "receiver": null}, {"caller_nid": "command_seedcategoriescommand_seedcategoriescommand_execute", "callee": "error", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Command/SeedCategoriesCommand.php", "source_location": "L49", "receiver": null}, {"caller_nid": "command_seedcategoriescommand_seedcategoriescommand_execute", "callee": "validate", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Command/SeedCategoriesCommand.php", "source_location": "L54", "receiver": null}, {"caller_nid": "command_seedcategoriescommand_seedcategoriescommand_execute", "callee": "error", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Command/SeedCategoriesCommand.php", "source_location": "L56", "receiver": null}, {"caller_nid": "command_seedcategoriescommand_seedcategoriescommand_execute", "callee": "count", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Command/SeedCategoriesCommand.php", "source_location": "L56", "receiver": null}, {"caller_nid": "command_seedcategoriescommand_seedcategoriescommand_execute", "callee": "array_slice", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Command/SeedCategoriesCommand.php", "source_location": "L57", "receiver": null}, {"caller_nid": "command_seedcategoriescommand_seedcategoriescommand_execute", "callee": "writeln", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Command/SeedCategoriesCommand.php", "source_location": "L58", "receiver": null}, {"caller_nid": "command_seedcategoriescommand_seedcategoriescommand_execute", "callee": "replace", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Command/SeedCategoriesCommand.php", "source_location": "L63", "receiver": null}, {"caller_nid": "command_seedcategoriescommand_seedcategoriescommand_execute", "callee": "success", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Command/SeedCategoriesCommand.php", "source_location": "L64", "receiver": null}, {"caller_nid": "command_seedcategoriescommand_seedcategoriescommand_execute", "callee": "sprintf", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Command/SeedCategoriesCommand.php", "source_location": "L64", "receiver": null}, {"caller_nid": "command_seedcategoriescommand_seedcategoriescommand_execute", "callee": "count", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Category/Command/SeedCategoriesCommand.php", "source_location": "L64", "receiver": null}]} |