- Created migration to add representation_cities table and domain, is_global fields to representations. - Implemented SiteContextController to resolve domain to site context (city | representation | unknown). - Developed DomainContext and DomainContextResolver services for domain mapping. - Added tests for DomainContextResolver and commission logic based on domain ownership.
1 line
10 KiB
JSON
1 line
10 KiB
JSON
{"nodes": [{"id": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_location_repository_cityrepository_php", "label": "CityRepository.php", "file_type": "code", "source_file": "src/Location/Repository/CityRepository.php", "source_location": "L1"}, {"id": "repository_cityrepository_cityrepository", "label": "CityRepository", "file_type": "code", "source_file": "src/Location/Repository/CityRepository.php", "source_location": "L9"}, {"id": "serviceentityrepository", "label": "ServiceEntityRepository", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "repository_cityrepository_cityrepository_construct", "label": ".__construct()", "file_type": "code", "source_file": "src/Location/Repository/CityRepository.php", "source_location": "L11"}, {"id": "managerregistry", "label": "ManagerRegistry", "file_type": "code", "source_file": "src/Location/Repository/CityRepository.php", "source_location": "L11"}, {"id": "repository_cityrepository_cityrepository_findactive", "label": ".findActive()", "file_type": "code", "source_file": "src/Location/Repository/CityRepository.php", "source_location": "L17"}, {"id": "repository_cityrepository_cityrepository_findbydomain", "label": ".findByDomain()", "file_type": "code", "source_file": "src/Location/Repository/CityRepository.php", "source_location": "L31"}, {"id": "city", "label": "City", "file_type": "code", "source_file": "src/Location/Repository/CityRepository.php", "source_location": "L31"}, {"id": "repository_cityrepository_cityrepository_save", "label": ".save()", "file_type": "code", "source_file": "src/Location/Repository/CityRepository.php", "source_location": "L36"}, {"id": "repository_cityrepository_cityrepository_remove", "label": ".remove()", "file_type": "code", "source_file": "src/Location/Repository/CityRepository.php", "source_location": "L42"}], "edges": [{"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_location_repository_cityrepository_php", "target": "city", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Location/Repository/CityRepository.php", "source_location": "L5", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_location_repository_cityrepository_php", "target": "serviceentityrepository", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Location/Repository/CityRepository.php", "source_location": "L6", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_location_repository_cityrepository_php", "target": "managerregistry", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Location/Repository/CityRepository.php", "source_location": "L7", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_location_repository_cityrepository_php", "target": "repository_cityrepository_cityrepository", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src/Location/Repository/CityRepository.php", "source_location": "L9", "weight": 1.0}, {"source": "repository_cityrepository_cityrepository", "target": "serviceentityrepository", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "src/Location/Repository/CityRepository.php", "source_location": "L9", "weight": 1.0}, {"source": "repository_cityrepository_cityrepository", "target": "repository_cityrepository_cityrepository_construct", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/Location/Repository/CityRepository.php", "source_location": "L11", "weight": 1.0}, {"source": "repository_cityrepository_cityrepository_construct", "target": "managerregistry", "relation": "references", "confidence": "EXTRACTED", "source_file": "src/Location/Repository/CityRepository.php", "source_location": "L11", "weight": 1.0, "context": "parameter_type"}, {"source": "repository_cityrepository_cityrepository", "target": "repository_cityrepository_cityrepository_findactive", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/Location/Repository/CityRepository.php", "source_location": "L17", "weight": 1.0}, {"source": "repository_cityrepository_cityrepository", "target": "repository_cityrepository_cityrepository_findbydomain", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/Location/Repository/CityRepository.php", "source_location": "L31", "weight": 1.0}, {"source": "repository_cityrepository_cityrepository_findbydomain", "target": "city", "relation": "references", "confidence": "EXTRACTED", "source_file": "src/Location/Repository/CityRepository.php", "source_location": "L31", "weight": 1.0, "context": "return_type"}, {"source": "repository_cityrepository_cityrepository", "target": "repository_cityrepository_cityrepository_save", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/Location/Repository/CityRepository.php", "source_location": "L36", "weight": 1.0}, {"source": "repository_cityrepository_cityrepository_save", "target": "city", "relation": "references", "confidence": "EXTRACTED", "source_file": "src/Location/Repository/CityRepository.php", "source_location": "L36", "weight": 1.0, "context": "parameter_type"}, {"source": "repository_cityrepository_cityrepository", "target": "repository_cityrepository_cityrepository_remove", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/Location/Repository/CityRepository.php", "source_location": "L42", "weight": 1.0}, {"source": "repository_cityrepository_cityrepository_remove", "target": "city", "relation": "references", "confidence": "EXTRACTED", "source_file": "src/Location/Repository/CityRepository.php", "source_location": "L42", "weight": 1.0, "context": "parameter_type"}, {"source": "repository_cityrepository_cityrepository_construct", "target": "city", "relation": "references_constant", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "src/Location/Repository/CityRepository.php", "source_location": "L13", "weight": 1.0}], "raw_calls": [{"caller_nid": "repository_cityrepository_cityrepository_construct", "callee": "parent", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Location/Repository/CityRepository.php", "source_location": "L13", "receiver": null}, {"caller_nid": "repository_cityrepository_cityrepository_findactive", "callee": "addOrderBy", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Location/Repository/CityRepository.php", "source_location": "L19", "receiver": null}, {"caller_nid": "repository_cityrepository_cityrepository_findactive", "callee": "orderBy", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Location/Repository/CityRepository.php", "source_location": "L19", "receiver": null}, {"caller_nid": "repository_cityrepository_cityrepository_findactive", "callee": "where", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Location/Repository/CityRepository.php", "source_location": "L19", "receiver": null}, {"caller_nid": "repository_cityrepository_cityrepository_findactive", "callee": "createQueryBuilder", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Location/Repository/CityRepository.php", "source_location": "L19", "receiver": null}, {"caller_nid": "repository_cityrepository_cityrepository_findactive", "callee": "setParameter", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Location/Repository/CityRepository.php", "source_location": "L25", "receiver": null}, {"caller_nid": "repository_cityrepository_cityrepository_findactive", "callee": "andWhere", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Location/Repository/CityRepository.php", "source_location": "L25", "receiver": null}, {"caller_nid": "repository_cityrepository_cityrepository_findactive", "callee": "getResult", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Location/Repository/CityRepository.php", "source_location": "L28", "receiver": null}, {"caller_nid": "repository_cityrepository_cityrepository_findactive", "callee": "getQuery", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Location/Repository/CityRepository.php", "source_location": "L28", "receiver": null}, {"caller_nid": "repository_cityrepository_cityrepository_findbydomain", "callee": "findOneBy", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Location/Repository/CityRepository.php", "source_location": "L33", "receiver": null}, {"caller_nid": "repository_cityrepository_cityrepository_save", "callee": "persist", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Location/Repository/CityRepository.php", "source_location": "L38", "receiver": null}, {"caller_nid": "repository_cityrepository_cityrepository_save", "callee": "getEntityManager", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Location/Repository/CityRepository.php", "source_location": "L38", "receiver": null}, {"caller_nid": "repository_cityrepository_cityrepository_save", "callee": "flush", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Location/Repository/CityRepository.php", "source_location": "L39", "receiver": null}, {"caller_nid": "repository_cityrepository_cityrepository_save", "callee": "getEntityManager", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Location/Repository/CityRepository.php", "source_location": "L39", "receiver": null}, {"caller_nid": "repository_cityrepository_cityrepository_remove", "callee": "getEntityManager", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Location/Repository/CityRepository.php", "source_location": "L44", "receiver": null}, {"caller_nid": "repository_cityrepository_cityrepository_remove", "callee": "flush", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Location/Repository/CityRepository.php", "source_location": "L45", "receiver": null}, {"caller_nid": "repository_cityrepository_cityrepository_remove", "callee": "getEntityManager", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Location/Repository/CityRepository.php", "source_location": "L45", "receiver": null}]} |