# uvdesk/core-framework architecture

> Architecture diagram of the GitHub repository uvdesk/core-framework, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/uvdesk/core-framework
- Repository: https://github.com/uvdesk/core-framework

## Overview

UVDesk CoreFrameworkBundle is the core of a Symfony helpdesk. Its principal workflow turns customer inquiries—including support-mailbox messages—into trackable tickets, which agents manage and answer using ticket operations and email templates. The bundle also provides account, role, group, and team administration, plus an extensible dashboard and workflow-event infrastructure. Several links below are documented capabilities rather than sampled call paths; the graph avoids asserting unsampled controller-to-service wiring.

Main entry points: [`Services/TicketService.php`](https://github.com/uvdesk/core-framework/blob/master/Services/TicketService.php) (Ticket operations), [`Services/UserService.php`](https://github.com/uvdesk/core-framework/blob/master/Services/UserService.php) (User management), [`Controller/Customer.php`](https://github.com/uvdesk/core-framework/blob/master/Controller/Customer.php) (Inquiry intake), [`Entity/UserInstance.php`](https://github.com/uvdesk/core-framework/blob/master/Entity/UserInstance.php) (User roles)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ticketing["Ticket handling"]
  node_inquiry["Inquiry intake<br/>[Customer.php]"]
  node_ticket_service["Ticket operations<br/>[TicketService.php]"]
  node_ticket_model[("Ticket record<br/>[Ticket.php]")]
  node_ticket_repository["Ticket queries"]
end

subgraph group_identity["Users and access"]
  node_user_service["User management<br/>[UserService.php]"]
  node_user_model[("User identity<br/>[User.php]")]
  node_user_instance[("User roles<br/>[UserInstance.php]")]
  node_group_model[("Support groups<br/>[SupportGroup.php]")]
  node_team_model[("Support teams<br/>[SupportTeam.php]")]
end

subgraph group_communications["Email and integrations"]
  node_email_service["Email processing<br/>[EmailService.php]"]
  node_email_templates[("Email templates<br/>[EmailTemplates.php]")]
end

subgraph group_extensibility["Dashboard and workflows"]
  node_dashboard["Dashboard composition<br/>[Dashboard.php]"]
  node_event_dispatcher["Workflow dispatch"]
  node_event_registration["Event registration<br/>[Events.php]"]
end

node_customer(("Customer"))
node_mailbox[("Support mailbox")]
node_agent(("Support agent"))
node_mail_transport["Mail transport"]

node_customer -->|"submits inquiry"| node_inquiry
node_mailbox -->|"converts messages"| node_ticket_service
node_inquiry -->|"manages customer"| node_user_service
node_user_service -->|"creates identity"| node_user_model
node_user_service -->|"creates instance"| node_user_instance
node_user_instance -->|"associates groups"| node_group_model
node_user_instance -->|"associates teams"| node_team_model
node_ticket_service -->|"resolves users"| node_user_service
node_ticket_service -->|"updates tickets"| node_ticket_model
node_ticket_repository -->|"queries tickets"| node_ticket_model
node_agent -.->|"handles tickets"| node_ticket_service
node_ticket_service -.->|"sends updates"| node_email_service
node_email_service -->|"renders templates"| node_email_templates
node_email_service -->|"sends email"| node_mail_transport
node_event_registration -->|"registers listeners"| node_event_dispatcher
node_inquiry -->|"dispatches events"| node_event_dispatcher
node_dashboard -.->|"provides workspace"| node_agent

click node_inquiry "https://github.com/uvdesk/core-framework/blob/master/Controller/Customer.php"
click node_ticket_service "https://github.com/uvdesk/core-framework/blob/master/Services/TicketService.php"
click node_ticket_model "https://github.com/uvdesk/core-framework/blob/master/Entity/Ticket.php"
click node_ticket_repository "https://github.com/uvdesk/core-framework/blob/master/Repository/TicketRepository.php"
click node_user_service "https://github.com/uvdesk/core-framework/blob/master/Services/UserService.php"
click node_user_model "https://github.com/uvdesk/core-framework/blob/master/Entity/User.php"
click node_user_instance "https://github.com/uvdesk/core-framework/blob/master/Entity/UserInstance.php"
click node_group_model "https://github.com/uvdesk/core-framework/blob/master/Entity/SupportGroup.php"
click node_team_model "https://github.com/uvdesk/core-framework/blob/master/Entity/SupportTeam.php"
click node_email_service "https://github.com/uvdesk/core-framework/blob/master/Services/EmailService.php"
click node_email_templates "https://github.com/uvdesk/core-framework/blob/master/Entity/EmailTemplates.php"
click node_dashboard "https://github.com/uvdesk/core-framework/blob/master/Dashboard/Dashboard.php"
click node_event_dispatcher "https://github.com/uvdesk/core-framework/blob/master/Framework/EventDispatcher.php"
click node_event_registration "https://github.com/uvdesk/core-framework/blob/master/DependencyInjection/Passes/Events.php"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_inquiry,node_ticket_service,node_ticket_model,node_ticket_repository toneBlue
class node_user_service,node_user_model,node_user_instance,node_group_model,node_team_model,node_mailbox toneAmber
class node_email_service,node_email_templates toneMint
class node_dashboard,node_event_dispatcher,node_event_registration toneRose
class node_customer,node_agent,node_mail_transport toneIndigo
```

## Components

### Ticket handling

- [Inquiry intake](https://github.com/uvdesk/core-framework/blob/master/Controller/Customer.php): `Controller/Customer.php`
- [Ticket operations](https://github.com/uvdesk/core-framework/blob/master/Services/TicketService.php): `Services/TicketService.php`
- [Ticket record](https://github.com/uvdesk/core-framework/blob/master/Entity/Ticket.php): `Entity/Ticket.php`
- [Ticket queries](https://github.com/uvdesk/core-framework/blob/master/Repository/TicketRepository.php): `Repository/TicketRepository.php`

### Users and access

- [User management](https://github.com/uvdesk/core-framework/blob/master/Services/UserService.php): `Services/UserService.php`
- [User identity](https://github.com/uvdesk/core-framework/blob/master/Entity/User.php): `Entity/User.php`
- [User roles](https://github.com/uvdesk/core-framework/blob/master/Entity/UserInstance.php): `Entity/UserInstance.php`
- [Support groups](https://github.com/uvdesk/core-framework/blob/master/Entity/SupportGroup.php): `Entity/SupportGroup.php`
- [Support teams](https://github.com/uvdesk/core-framework/blob/master/Entity/SupportTeam.php): `Entity/SupportTeam.php`

### Email and integrations

- [Email processing](https://github.com/uvdesk/core-framework/blob/master/Services/EmailService.php): `Services/EmailService.php`
- [Email templates](https://github.com/uvdesk/core-framework/blob/master/Entity/EmailTemplates.php): `Entity/EmailTemplates.php`

### Dashboard and workflows

- [Dashboard composition](https://github.com/uvdesk/core-framework/blob/master/Dashboard/Dashboard.php): `Dashboard/Dashboard.php`
- [Workflow dispatch](https://github.com/uvdesk/core-framework/blob/master/Framework/EventDispatcher.php): `Framework/EventDispatcher.php`
- [Event registration](https://github.com/uvdesk/core-framework/blob/master/DependencyInjection/Passes/Events.php): `DependencyInjection/Passes/Events.php`

### Other components

- **Customer**
- **Support mailbox**
- **Support agent**
- **Mail transport**

## Connections

- Customer → Inquiry intake: submits inquiry (evidence: `README.md`)
- Support mailbox → Ticket operations: converts messages (evidence: `README.md`)
- Inquiry intake → User management: manages customer (evidence: `Controller/Customer.php`)
- User management → User identity: creates identity (evidence: `Services/UserService.php`)
- User management → User roles: creates instance (evidence: `Services/UserService.php`)
- User roles → Support groups: associates groups (evidence: `Entity/UserInstance.php`)
- User roles → Support teams: associates teams (evidence: `Entity/UserInstance.php`)
- Ticket operations → User management: resolves users (evidence: `Services/TicketService.php`)
- Ticket operations → Ticket record: updates tickets (evidence: `Services/TicketService.php`)
- Ticket queries → Ticket record: queries tickets (evidence: `Repository/TicketRepository.php`)
- Support agent → Ticket operations: handles tickets
- Ticket operations → Email processing: sends updates
- Email processing → Email templates: renders templates (evidence: `Services/EmailService.php`)
- Email processing → Mail transport: sends email (evidence: `Services/EmailService.php`)
- Event registration → Workflow dispatch: registers listeners (evidence: `DependencyInjection/Passes/Events.php`)
- Inquiry intake → Workflow dispatch: dispatches events (evidence: `Controller/Customer.php`)
- Dashboard composition → Support agent: provides workspace
