# alejandro-yakovlev/symfony-docker architecture

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

- Interactive diagram: https://gitdiagram.com/alejandro-yakovlev/symfony-docker
- Repository: https://github.com/alejandro-yakovlev/symfony-docker

## Overview

This is a Symfony clean-architecture monolith with CQRS and domain-oriented Skills, Testing, and Users modules. Users query or administer skills and specialities, create tests and testing sessions, and retrieve user information; the shared layer supplies buses, security, and domain-event support. The tree identifies these capabilities, but the excerpts only confirm several query-handler interactions, so other runtime links are omitted rather than inferred.

Main entry points: [`src/Skills/Application/UseCase/Query`](https://github.com/alejandro-yakovlev/symfony-docker/tree/master/src/Skills/Application/UseCase/Query) (Skill queries), [`src/Shared/Infrastructure/Bus/QueryBus.php`](https://github.com/alejandro-yakovlev/symfony-docker/blob/master/src/Shared/Infrastructure/Bus/QueryBus.php) (Query bus), [`src/Shared/Infrastructure/Bus/CommandBus.php`](https://github.com/alejandro-yakovlev/symfony-docker/blob/master/src/Shared/Infrastructure/Bus/CommandBus.php) (Command bus), [`src/Skills/Application/UseCase/Command`](https://github.com/alejandro-yakovlev/symfony-docker/tree/master/src/Skills/Application/UseCase/Command) (Skill commands)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shared["Shared infrastructure"]
  node_query_bus["Query bus<br/>[QueryBus.php]"]
  node_command_bus["Command bus<br/>[CommandBus.php]"]
  node_event_support["Domain events"]
  node_user_fetcher["Current user<br/>[UserFetcher.php]"]
end

subgraph group_skills["Skills domain"]
  node_skills_api["Skills API<br/>[SkillsApi.php]"]
  node_skill_queries["Skill queries"]
  node_skill_commands["Skill commands"]
  node_skill_domain["Skills model"]
  node_speciality_domain["Specialities"]
  node_skill_repos[("Skills repositories")]
  node_skill_dtos["Skills DTOs"]
end

subgraph group_testing["Testing domain"]
  node_testing_commands["Test commands"]
  node_testing_queries["Test queries"]
  node_testing_domain["Testing sessions"]
  node_testing_repos[("Testing repositories")]
  node_skills_adapter["Skills adapter<br/>[SkillsAdapter.php]"]
end

subgraph group_users["User accounts"]
  node_users_commands["User creation"]
  node_users_queries["User queries"]
  node_users_model["User model<br/>[User.php]"]
  node_users_repo[("User repository<br/>[UserRepository.php]")]
end

node_client(("API client"))

node_client -.->|"requests"| node_skills_api
node_skill_queries -->|"queries"| node_skill_repos
node_skill_queries -->|"transforms"| node_skill_dtos
node_skill_queries -->|"gets user"| node_user_fetcher
node_skill_queries -->|"queries"| node_skill_repos
node_skill_queries -->|"transforms"| node_skill_dtos
node_skill_commands -.->|"changes"| node_skill_domain
node_skill_commands -.->|"changes"| node_speciality_domain
node_testing_queries -->|"queries"| node_testing_repos
node_testing_commands -.->|"changes"| node_testing_domain
node_testing_queries -.->|"reads"| node_testing_domain
node_testing_commands -.->|"checks skills"| node_skills_adapter
node_users_queries -->|"queries"| node_users_repo
node_users_queries -->|"gets user"| node_user_fetcher
node_users_commands -.->|"stores user"| node_users_repo
node_users_commands -.->|"creates"| node_users_model
node_query_bus -.->|"dispatches"| node_skill_queries
node_query_bus -.->|"dispatches"| node_testing_queries
node_query_bus -.->|"dispatches"| node_users_queries
node_command_bus -.->|"dispatches"| node_skill_commands
node_command_bus -.->|"dispatches"| node_testing_commands
node_command_bus -.->|"dispatches"| node_users_commands

click node_skills_api "https://github.com/alejandro-yakovlev/symfony-docker/blob/master/src/Skills/Infrastructure/Api/SkillsApi.php"
click node_skill_queries "https://github.com/alejandro-yakovlev/symfony-docker/tree/master/src/Skills/Application/UseCase/Query"
click node_skill_commands "https://github.com/alejandro-yakovlev/symfony-docker/tree/master/src/Skills/Application/UseCase/Command"
click node_skill_domain "https://github.com/alejandro-yakovlev/symfony-docker/tree/master/src/Skills/Domain/Aggregate/Skill"
click node_speciality_domain "https://github.com/alejandro-yakovlev/symfony-docker/tree/master/src/Skills/Domain/Aggregate/Speciality"
click node_skill_repos "https://github.com/alejandro-yakovlev/symfony-docker/tree/master/src/Skills/Infrastructure/Repository"
click node_skill_dtos "https://github.com/alejandro-yakovlev/symfony-docker/tree/master/src/Skills/Application/DTO"
click node_testing_commands "https://github.com/alejandro-yakovlev/symfony-docker/tree/master/src/Testing/Application/Command"
click node_testing_queries "https://github.com/alejandro-yakovlev/symfony-docker/tree/master/src/Testing/Application/Query"
click node_testing_domain "https://github.com/alejandro-yakovlev/symfony-docker/tree/master/src/Testing/Domain/Aggregate/TestingSession"
click node_testing_repos "https://github.com/alejandro-yakovlev/symfony-docker/tree/master/src/Testing/Infrastructure/Repository"
click node_skills_adapter "https://github.com/alejandro-yakovlev/symfony-docker/blob/master/src/Testing/Infrastructure/Adapter/SkillsAdapter.php"
click node_users_commands "https://github.com/alejandro-yakovlev/symfony-docker/blob/master/src/Users/Application/UseCase/Command/CreateUser/CreateUserCommandHandler.php"
click node_users_queries "https://github.com/alejandro-yakovlev/symfony-docker/tree/master/src/Users/Application/UseCase/Query"
click node_users_model "https://github.com/alejandro-yakovlev/symfony-docker/blob/master/src/Users/Domain/Entity/User.php"
click node_users_repo "https://github.com/alejandro-yakovlev/symfony-docker/blob/master/src/Users/Infrastructure/Repository/UserRepository.php"
click node_query_bus "https://github.com/alejandro-yakovlev/symfony-docker/blob/master/src/Shared/Infrastructure/Bus/QueryBus.php"
click node_command_bus "https://github.com/alejandro-yakovlev/symfony-docker/blob/master/src/Shared/Infrastructure/Bus/CommandBus.php"
click node_event_support "https://github.com/alejandro-yakovlev/symfony-docker/blob/master/src/Shared/Infrastructure/EventListener/Doctrine/PublishDomainEventsOnFlushListener.php"
click node_user_fetcher "https://github.com/alejandro-yakovlev/symfony-docker/blob/master/src/Shared/Infrastructure/Security/UserFetcher.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_query_bus,node_command_bus,node_event_support,node_user_fetcher,node_client toneBlue
class node_skills_api,node_skill_queries,node_skill_commands,node_skill_domain,node_speciality_domain,node_skill_repos,node_skill_dtos toneAmber
class node_testing_commands,node_testing_queries,node_testing_domain,node_testing_repos,node_skills_adapter toneMint
class node_users_commands,node_users_queries,node_users_model,node_users_repo toneRose
```

## Components

### Shared infrastructure

- [Query bus](https://github.com/alejandro-yakovlev/symfony-docker/blob/master/src/Shared/Infrastructure/Bus/QueryBus.php): `src/Shared/Infrastructure/Bus/QueryBus.php`
- [Command bus](https://github.com/alejandro-yakovlev/symfony-docker/blob/master/src/Shared/Infrastructure/Bus/CommandBus.php): `src/Shared/Infrastructure/Bus/CommandBus.php`
- [Domain events](https://github.com/alejandro-yakovlev/symfony-docker/blob/master/src/Shared/Infrastructure/EventListener/Doctrine/PublishDomainEventsOnFlushListener.php): `src/Shared/Infrastructure/EventListener/Doctrine/PublishDomainEventsOnFlushListener.php`
- [Current user](https://github.com/alejandro-yakovlev/symfony-docker/blob/master/src/Shared/Infrastructure/Security/UserFetcher.php): `src/Shared/Infrastructure/Security/UserFetcher.php`

### Skills domain

- [Skills API](https://github.com/alejandro-yakovlev/symfony-docker/blob/master/src/Skills/Infrastructure/Api/SkillsApi.php): `src/Skills/Infrastructure/Api/SkillsApi.php`
- [Skill queries](https://github.com/alejandro-yakovlev/symfony-docker/tree/master/src/Skills/Application/UseCase/Query): `src/Skills/Application/UseCase/Query`
- [Skill commands](https://github.com/alejandro-yakovlev/symfony-docker/tree/master/src/Skills/Application/UseCase/Command): `src/Skills/Application/UseCase/Command`
- [Skills model](https://github.com/alejandro-yakovlev/symfony-docker/tree/master/src/Skills/Domain/Aggregate/Skill): `src/Skills/Domain/Aggregate/Skill`
- [Specialities](https://github.com/alejandro-yakovlev/symfony-docker/tree/master/src/Skills/Domain/Aggregate/Speciality): `src/Skills/Domain/Aggregate/Speciality`
- [Skills repositories](https://github.com/alejandro-yakovlev/symfony-docker/tree/master/src/Skills/Infrastructure/Repository): `src/Skills/Infrastructure/Repository`
- [Skills DTOs](https://github.com/alejandro-yakovlev/symfony-docker/tree/master/src/Skills/Application/DTO): `src/Skills/Application/DTO`

### Testing domain

- [Test commands](https://github.com/alejandro-yakovlev/symfony-docker/tree/master/src/Testing/Application/Command): `src/Testing/Application/Command`
- [Test queries](https://github.com/alejandro-yakovlev/symfony-docker/tree/master/src/Testing/Application/Query): `src/Testing/Application/Query`
- [Testing sessions](https://github.com/alejandro-yakovlev/symfony-docker/tree/master/src/Testing/Domain/Aggregate/TestingSession): `src/Testing/Domain/Aggregate/TestingSession`
- [Testing repositories](https://github.com/alejandro-yakovlev/symfony-docker/tree/master/src/Testing/Infrastructure/Repository): `src/Testing/Infrastructure/Repository`
- [Skills adapter](https://github.com/alejandro-yakovlev/symfony-docker/blob/master/src/Testing/Infrastructure/Adapter/SkillsAdapter.php): `src/Testing/Infrastructure/Adapter/SkillsAdapter.php`

### User accounts

- [User creation](https://github.com/alejandro-yakovlev/symfony-docker/blob/master/src/Users/Application/UseCase/Command/CreateUser/CreateUserCommandHandler.php): `src/Users/Application/UseCase/Command/CreateUser/CreateUserCommandHandler.php`
- [User queries](https://github.com/alejandro-yakovlev/symfony-docker/tree/master/src/Users/Application/UseCase/Query): `src/Users/Application/UseCase/Query`
- [User model](https://github.com/alejandro-yakovlev/symfony-docker/blob/master/src/Users/Domain/Entity/User.php): `src/Users/Domain/Entity/User.php`
- [User repository](https://github.com/alejandro-yakovlev/symfony-docker/blob/master/src/Users/Infrastructure/Repository/UserRepository.php): `src/Users/Infrastructure/Repository/UserRepository.php`

### Other components

- **API client**

## Connections

- API client → Skills API: requests
- Skill queries → Skills repositories: queries (evidence: `src/Skills/Application/UseCase/Query/GetPagedSpecialities/GetPagedSpecialitiesQueryHandler.php`)
- Skill queries → Skills DTOs: transforms (evidence: `src/Skills/Application/UseCase/Query/GetPagedSpecialities/GetPagedSpecialitiesQueryHandler.php`)
- Skill queries → Current user: gets user (evidence: `src/Skills/Application/UseCase/Query/GetMyPagedSpecialities/GetMyPagedSpecialitiesQueryHandler.php`)
- Skill queries → Skills repositories: queries (evidence: `src/Skills/Application/UseCase/Query/GetMyPagedSpecialities/GetMyPagedSpecialitiesQueryHandler.php`)
- Skill queries → Skills DTOs: transforms (evidence: `src/Skills/Application/UseCase/Query/GetMyPagedSpecialities/GetMyPagedSpecialitiesQueryHandler.php`)
- Skill commands → Skills model: changes
- Skill commands → Specialities: changes
- Test queries → Testing repositories: queries (evidence: `src/Testing/Application/Query/FindAnswerOption/FindAnswerOptionQueryHandler.php`)
- Test commands → Testing sessions: changes
- Test queries → Testing sessions: reads
- Test commands → Skills adapter: checks skills
- User queries → User repository: queries (evidence: `src/Users/Application/UseCase/Query/GetMe/GetMeQueryHandler.php`)
- User queries → Current user: gets user (evidence: `src/Users/Application/UseCase/Query/GetMe/GetMeQueryHandler.php`)
- User creation → User repository: stores user
- User creation → User model: creates
- Query bus → Skill queries: dispatches
- Query bus → Test queries: dispatches
- Query bus → User queries: dispatches
- Command bus → Skill commands: dispatches
- Command bus → Test commands: dispatches
- Command bus → User creation: dispatches
