# pmassereyes/poc-authentification architecture

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

- Interactive diagram: https://gitdiagram.com/pmassereyes/poc-authentification
- Repository: https://github.com/pmassereyes/poc-authentification

## Overview

This is a Symfony web application scaffold centered on user accounts: visitors enter through the HTTP front controller, use home or login pages, and the repository includes registration form, user persistence, and email-verification components. The sampled registration controller is absent, so registration-to-verification connections are shown only as unverified dashed links. The source excerpts establish the login/home rendering, form-to-user mapping, and repository persistence behavior; broader route and database wiring was not inspected.

Main entry points: [`src/Security/EmailVerifier.php`](https://github.com/pmassereyes/poc-authentification/blob/master/src/Security/EmailVerifier.php) (Email verification), [`src/Controller`](https://github.com/pmassereyes/poc-authentification/tree/master/src/Controller) (Registration handling), [`src/Entity/User.php`](https://github.com/pmassereyes/poc-authentification/blob/master/src/Entity/User.php) (User account), [`src/Repository/UserRepository.php`](https://github.com/pmassereyes/poc-authentification/blob/master/src/Repository/UserRepository.php) (User repository)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web interface"]
  node_front["HTTP entry<br/>[index.php]"]
  node_kernel["Symfony kernel<br/>[Kernel.php]"]
  node_home["Home controller<br/>[HomeController.php]"]
  node_homeview["Home view<br/>[index.html.twig]"]
  node_security["Login controller"]
  node_loginview["Login view<br/>[login.html.twig]"]
  node_registration["Registration handling"]
  node_registerview["Registration view<br/>[register.html.twig]"]
end

subgraph group_accounts["Account domain"]
  node_registerform["Registration form"]
  node_confirmview["Confirmation email view"]
  node_verifier["Email verification<br/>[EmailVerifier.php]"]
  node_user["User account<br/>[User.php]"]
end

subgraph group_persistence["Persistence"]
  node_userrepo["User repository<br/>[UserRepository.php]"]
  node_database[("Doctrine database")]
end

node_visitor(("Visitor"))
node_mailer["Mail transport"]
node_verifyservice["Verification signer"]

node_visitor -->|"sends request"| node_front
node_front -->|"creates"| node_kernel
node_home -->|"renders"| node_homeview
node_security -->|"renders"| node_loginview
node_registerform -->|"maps data"| node_user
node_userrepo -->|"persists"| node_user
node_userrepo -.->|"reads and writes"| node_database
node_verifier -->|"updates verification"| node_user
node_verifier -->|"sends email"| node_mailer
node_verifier -->|"signs and validates"| node_verifyservice
node_registration -.->|"uses form"| node_registerform
node_registration -.->|"renders"| node_registerview
node_registration -.->|"requests confirmation"| node_verifier
node_verifier -.->|"uses template"| node_confirmview

click node_front "https://github.com/pmassereyes/poc-authentification/blob/master/public/index.php"
click node_kernel "https://github.com/pmassereyes/poc-authentification/blob/master/src/Kernel.php"
click node_home "https://github.com/pmassereyes/poc-authentification/blob/master/src/Controller/HomeController.php"
click node_homeview "https://github.com/pmassereyes/poc-authentification/blob/master/templates/home/index.html.twig"
click node_security "https://github.com/pmassereyes/poc-authentification/blob/master/src/Controller/SecurityController.php"
click node_loginview "https://github.com/pmassereyes/poc-authentification/blob/master/templates/security/login.html.twig"
click node_registration "https://github.com/pmassereyes/poc-authentification/tree/master/src/Controller"
click node_registerform "https://github.com/pmassereyes/poc-authentification/blob/master/src/Form/RegistrationFormType.php"
click node_registerview "https://github.com/pmassereyes/poc-authentification/blob/master/templates/registration/register.html.twig"
click node_confirmview "https://github.com/pmassereyes/poc-authentification/blob/master/templates/registration/confirmation_email.html.twig"
click node_verifier "https://github.com/pmassereyes/poc-authentification/blob/master/src/Security/EmailVerifier.php"
click node_user "https://github.com/pmassereyes/poc-authentification/blob/master/src/Entity/User.php"
click node_userrepo "https://github.com/pmassereyes/poc-authentification/blob/master/src/Repository/UserRepository.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_front,node_kernel,node_home,node_homeview,node_security,node_loginview,node_registration,node_registerview toneBlue
class node_registerform,node_confirmview,node_verifier,node_user toneAmber
class node_userrepo,node_database toneMint
class node_visitor,node_mailer,node_verifyservice toneIndigo
```

## Components

### Web interface

- [HTTP entry](https://github.com/pmassereyes/poc-authentification/blob/master/public/index.php): `public/index.php`
- [Symfony kernel](https://github.com/pmassereyes/poc-authentification/blob/master/src/Kernel.php): `src/Kernel.php`
- [Home controller](https://github.com/pmassereyes/poc-authentification/blob/master/src/Controller/HomeController.php): `src/Controller/HomeController.php`
- [Home view](https://github.com/pmassereyes/poc-authentification/blob/master/templates/home/index.html.twig): `templates/home/index.html.twig`
- [Login controller](https://github.com/pmassereyes/poc-authentification/blob/master/src/Controller/SecurityController.php): `src/Controller/SecurityController.php`
- [Login view](https://github.com/pmassereyes/poc-authentification/blob/master/templates/security/login.html.twig): `templates/security/login.html.twig`
- [Registration handling](https://github.com/pmassereyes/poc-authentification/tree/master/src/Controller): `src/Controller`
- [Registration view](https://github.com/pmassereyes/poc-authentification/blob/master/templates/registration/register.html.twig): `templates/registration/register.html.twig`

### Account domain

- [Registration form](https://github.com/pmassereyes/poc-authentification/blob/master/src/Form/RegistrationFormType.php): `src/Form/RegistrationFormType.php`
- [Confirmation email view](https://github.com/pmassereyes/poc-authentification/blob/master/templates/registration/confirmation_email.html.twig): `templates/registration/confirmation_email.html.twig`
- [Email verification](https://github.com/pmassereyes/poc-authentification/blob/master/src/Security/EmailVerifier.php): `src/Security/EmailVerifier.php`
- [User account](https://github.com/pmassereyes/poc-authentification/blob/master/src/Entity/User.php): `src/Entity/User.php`

### Persistence

- [User repository](https://github.com/pmassereyes/poc-authentification/blob/master/src/Repository/UserRepository.php): `src/Repository/UserRepository.php`
- **Doctrine database**

### Other components

- **Visitor**
- **Mail transport**
- **Verification signer**

## Connections

- Visitor → HTTP entry: sends request (evidence: `public/index.php`)
- HTTP entry → Symfony kernel: creates (evidence: `public/index.php`)
- Home controller → Home view: renders (evidence: `src/Controller/HomeController.php`)
- Login controller → Login view: renders (evidence: `src/Controller/SecurityController.php`)
- Registration form → User account: maps data (evidence: `src/Form/RegistrationFormType.php`)
- User repository → User account: persists (evidence: `src/Repository/UserRepository.php`)
- User repository → Doctrine database: reads and writes
- Email verification → User account: updates verification (evidence: `src/Security/EmailVerifier.php`)
- Email verification → Mail transport: sends email (evidence: `src/Security/EmailVerifier.php`)
- Email verification → Verification signer: signs and validates (evidence: `src/Security/EmailVerifier.php`)
- Registration handling → Registration form: uses form
- Registration handling → Registration view: renders
- Registration handling → Email verification: requests confirmation
- Email verification → Confirmation email view: uses template
