- Introduced new columns: owner_status, source, source_ref, managed_by, and claimed_at to the doctors table. - Created indexes for owner_status and source to optimize queries related to unclaimed doctors. feat(auth): implement SystemOwnerCommand for managing system-owner user - Added command to create, activate, and deactivate a system-owner user for IRIMC crawler. - Ensured the user has ROLE_ADMIN to access import endpoints. - Handled password setting and user status management within the command.
1 line
15 KiB
JSON
1 line
15 KiB
JSON
{"nodes": [{"id": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_auth_command_systemownercommand_php", "label": "SystemOwnerCommand.php", "file_type": "code", "source_file": "src/Auth/Command/SystemOwnerCommand.php", "source_location": "L1"}, {"id": "command_systemownercommand_systemownercommand", "label": "SystemOwnerCommand", "file_type": "code", "source_file": "src/Auth/Command/SystemOwnerCommand.php", "source_location": "L25"}, {"id": "command", "label": "Command", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "command_systemownercommand_systemownercommand_construct", "label": ".__construct()", "file_type": "code", "source_file": "src/Auth/Command/SystemOwnerCommand.php", "source_location": "L31"}, {"id": "command_systemownercommand_systemownercommand_configure", "label": ".configure()", "file_type": "code", "source_file": "src/Auth/Command/SystemOwnerCommand.php", "source_location": "L38"}, {"id": "command_systemownercommand_systemownercommand_execute", "label": ".execute()", "file_type": "code", "source_file": "src/Auth/Command/SystemOwnerCommand.php", "source_location": "L47"}, {"id": "inputinterface", "label": "InputInterface", "file_type": "code", "source_file": "src/Auth/Command/SystemOwnerCommand.php", "source_location": "L47"}, {"id": "outputinterface", "label": "OutputInterface", "file_type": "code", "source_file": "src/Auth/Command/SystemOwnerCommand.php", "source_location": "L47"}], "edges": [{"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_auth_command_systemownercommand_php", "target": "user", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Auth/Command/SystemOwnerCommand.php", "source_location": "L5", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_auth_command_systemownercommand_php", "target": "entitymanagerinterface", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Auth/Command/SystemOwnerCommand.php", "source_location": "L6", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_auth_command_systemownercommand_php", "target": "ascommand", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Auth/Command/SystemOwnerCommand.php", "source_location": "L7", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_auth_command_systemownercommand_php", "target": "command", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Auth/Command/SystemOwnerCommand.php", "source_location": "L8", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_auth_command_systemownercommand_php", "target": "inputargument", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Auth/Command/SystemOwnerCommand.php", "source_location": "L9", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_auth_command_systemownercommand_php", "target": "inputinterface", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Auth/Command/SystemOwnerCommand.php", "source_location": "L10", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_auth_command_systemownercommand_php", "target": "inputoption", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Auth/Command/SystemOwnerCommand.php", "source_location": "L11", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_auth_command_systemownercommand_php", "target": "outputinterface", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Auth/Command/SystemOwnerCommand.php", "source_location": "L12", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_auth_command_systemownercommand_php", "target": "symfonystyle", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Auth/Command/SystemOwnerCommand.php", "source_location": "L13", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_auth_command_systemownercommand_php", "target": "userpasswordhasherinterface", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Auth/Command/SystemOwnerCommand.php", "source_location": "L14", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_auth_command_systemownercommand_php", "target": "command_systemownercommand_systemownercommand", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src/Auth/Command/SystemOwnerCommand.php", "source_location": "L25", "weight": 1.0}, {"source": "command_systemownercommand_systemownercommand", "target": "command", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "src/Auth/Command/SystemOwnerCommand.php", "source_location": "L29", "weight": 1.0}, {"source": "command_systemownercommand_systemownercommand", "target": "command_systemownercommand_systemownercommand_construct", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/Auth/Command/SystemOwnerCommand.php", "source_location": "L31", "weight": 1.0}, {"source": "command_systemownercommand_systemownercommand", "target": "command_systemownercommand_systemownercommand_configure", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/Auth/Command/SystemOwnerCommand.php", "source_location": "L38", "weight": 1.0}, {"source": "command_systemownercommand_systemownercommand", "target": "command_systemownercommand_systemownercommand_execute", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/Auth/Command/SystemOwnerCommand.php", "source_location": "L47", "weight": 1.0}, {"source": "command_systemownercommand_systemownercommand_execute", "target": "inputinterface", "relation": "references", "confidence": "EXTRACTED", "source_file": "src/Auth/Command/SystemOwnerCommand.php", "source_location": "L47", "weight": 1.0, "context": "parameter_type"}, {"source": "command_systemownercommand_systemownercommand_execute", "target": "outputinterface", "relation": "references", "confidence": "EXTRACTED", "source_file": "src/Auth/Command/SystemOwnerCommand.php", "source_location": "L47", "weight": 1.0, "context": "parameter_type"}, {"source": "command_systemownercommand_systemownercommand_execute", "target": "command", "relation": "references_constant", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "src/Auth/Command/SystemOwnerCommand.php", "source_location": "L57", "weight": 1.0}], "raw_calls": [{"caller_nid": "command_systemownercommand_systemownercommand_construct", "callee": "parent", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Command/SystemOwnerCommand.php", "source_location": "L35", "receiver": null}, {"caller_nid": "command_systemownercommand_systemownercommand_configure", "callee": "addOption", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Command/SystemOwnerCommand.php", "source_location": "L40", "receiver": null}, {"caller_nid": "command_systemownercommand_systemownercommand_configure", "callee": "addOption", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Command/SystemOwnerCommand.php", "source_location": "L40", "receiver": null}, {"caller_nid": "command_systemownercommand_systemownercommand_configure", "callee": "addOption", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Command/SystemOwnerCommand.php", "source_location": "L40", "receiver": null}, {"caller_nid": "command_systemownercommand_systemownercommand_configure", "callee": "addArgument", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Command/SystemOwnerCommand.php", "source_location": "L40", "receiver": null}, {"caller_nid": "command_systemownercommand_systemownercommand_execute", "callee": "getArgument", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Command/SystemOwnerCommand.php", "source_location": "L50", "receiver": null}, {"caller_nid": "command_systemownercommand_systemownercommand_execute", "callee": "getOption", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Command/SystemOwnerCommand.php", "source_location": "L51", "receiver": null}, {"caller_nid": "command_systemownercommand_systemownercommand_execute", "callee": "getOption", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Command/SystemOwnerCommand.php", "source_location": "L52", "receiver": null}, {"caller_nid": "command_systemownercommand_systemownercommand_execute", "callee": "getOption", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Command/SystemOwnerCommand.php", "source_location": "L53", "receiver": null}, {"caller_nid": "command_systemownercommand_systemownercommand_execute", "callee": "error", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Command/SystemOwnerCommand.php", "source_location": "L56", "receiver": null}, {"caller_nid": "command_systemownercommand_systemownercommand_execute", "callee": "getRepository", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Command/SystemOwnerCommand.php", "source_location": "L60", "receiver": null}, {"caller_nid": "command_systemownercommand_systemownercommand_execute", "callee": "findOneBy", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Command/SystemOwnerCommand.php", "source_location": "L61", "receiver": null}, {"caller_nid": "command_systemownercommand_systemownercommand_execute", "callee": "setRealName", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Command/SystemOwnerCommand.php", "source_location": "L66", "receiver": null}, {"caller_nid": "command_systemownercommand_systemownercommand_execute", "callee": "error", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Command/SystemOwnerCommand.php", "source_location": "L68", "receiver": null}, {"caller_nid": "command_systemownercommand_systemownercommand_execute", "callee": "getRoles", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Command/SystemOwnerCommand.php", "source_location": "L73", "receiver": null}, {"caller_nid": "command_systemownercommand_systemownercommand_execute", "callee": "in_array", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Command/SystemOwnerCommand.php", "source_location": "L74", "receiver": null}, {"caller_nid": "command_systemownercommand_systemownercommand_execute", "callee": "setRoles", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Command/SystemOwnerCommand.php", "source_location": "L76", "receiver": null}, {"caller_nid": "command_systemownercommand_systemownercommand_execute", "callee": "array_values", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Command/SystemOwnerCommand.php", "source_location": "L76", "receiver": null}, {"caller_nid": "command_systemownercommand_systemownercommand_execute", "callee": "array_unique", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Command/SystemOwnerCommand.php", "source_location": "L76", "receiver": null}, {"caller_nid": "command_systemownercommand_systemownercommand_execute", "callee": "setPasswordHash", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Command/SystemOwnerCommand.php", "source_location": "L80", "receiver": null}, {"caller_nid": "command_systemownercommand_systemownercommand_execute", "callee": "hashPassword", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Command/SystemOwnerCommand.php", "source_location": "L80", "receiver": null}, {"caller_nid": "command_systemownercommand_systemownercommand_execute", "callee": "setStatus", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Command/SystemOwnerCommand.php", "source_location": "L85", "receiver": null}, {"caller_nid": "command_systemownercommand_systemownercommand_execute", "callee": "setStatus", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Command/SystemOwnerCommand.php", "source_location": "L87", "receiver": null}, {"caller_nid": "command_systemownercommand_systemownercommand_execute", "callee": "setStatus", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Command/SystemOwnerCommand.php", "source_location": "L89", "receiver": null}, {"caller_nid": "command_systemownercommand_systemownercommand_execute", "callee": "persist", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Command/SystemOwnerCommand.php", "source_location": "L92", "receiver": null}, {"caller_nid": "command_systemownercommand_systemownercommand_execute", "callee": "flush", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Command/SystemOwnerCommand.php", "source_location": "L93", "receiver": null}, {"caller_nid": "command_systemownercommand_systemownercommand_execute", "callee": "success", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Command/SystemOwnerCommand.php", "source_location": "L95", "receiver": null}, {"caller_nid": "command_systemownercommand_systemownercommand_execute", "callee": "sprintf", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Command/SystemOwnerCommand.php", "source_location": "L95", "receiver": null}, {"caller_nid": "command_systemownercommand_systemownercommand_execute", "callee": "getUuid", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Command/SystemOwnerCommand.php", "source_location": "L99", "receiver": null}, {"caller_nid": "command_systemownercommand_systemownercommand_execute", "callee": "getStatus", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Command/SystemOwnerCommand.php", "source_location": "L100", "receiver": null}, {"caller_nid": "command_systemownercommand_systemownercommand_execute", "callee": "implode", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Command/SystemOwnerCommand.php", "source_location": "L101", "receiver": null}, {"caller_nid": "command_systemownercommand_systemownercommand_execute", "callee": "getRoles", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Command/SystemOwnerCommand.php", "source_location": "L101", "receiver": null}]} |