How hakazoki/bdd-symfony works
This Symfony application is a restaurant directory and review site. Visitors browse restaurants, optionally filter by city, and view ratings and comments; signed-in users can register, add restaurants, comment, and reply. The domain also supports region/city administration and restaurant edit/delete authorization. Controllers coordinate forms and persistence, while Doctrine entities and repositories model and query the domain. The graph reflects the sampled controllers and entities; unsampled routes, templates, and configuration are not expanded into unverified connections.
Main entry points: RestaurantController.php Restaurant workflows · Restaurant.php Restaurant entity · Commentaire.php Comment entity · User.php User entity
Components 24
Web workflows
- Restaurant workflows
src/Controller/RestaurantController.php - Comment workflows
src/Controller/CommentaireController.php - Restaurant form
src/Form/RestaurantType.php - Comment form
src/Form/CommentaireType.php
Identity and access
- Registration workflow
src/Controller/RegistrationController.php - Login workflow
src/Controller/SecurityController.php - Registration form
src/Form/RegistrationFormType.php - Restaurant voter
src/Security/Voter/RestaurantVoter.php
Location catalog
- Region workflows
src/Controller/RegionController.php - City workflows
src/Controller/VilleController.php - Region form
src/Form/RegionType.php - City form
src/Form/VilleType.php
Domain and persistence
- Restaurant entity
src/Entity/Restaurant.php - Comment entity
src/Entity/Commentaire.php - User entity
src/Entity/User.php - Region entity
src/Entity/Region.php - City entity
src/Entity/Ville.php - Restaurant repository
src/Repository/RestaurantRepository.php - Comment repository
src/Repository/CommentaireRepository.php - User repository
src/Repository/UserRepository.php - Region repository
src/Repository/RegionRepository.php - City repository
src/Repository/VilleRepository.php
Other components
- Visitor
- Signed-in member
Connections 33
- Visitor → Restaurant workflows: browses
src/Controller/RestaurantController.php - Signed-in member → Restaurant workflows: manages
src/Controller/RestaurantController.php - Signed-in member → Comment workflows: reviews
src/Controller/CommentaireController.php - Signed-in member → Registration workflow: registers
- Visitor → Login workflow: signs in
- Restaurant workflows → Restaurant form: creates via
src/Controller/RestaurantController.php - Restaurant workflows → Restaurant entity: persists
src/Controller/RestaurantController.php - Restaurant workflows → Restaurant repository: queries
src/Controller/RestaurantController.php - Restaurant workflows → City repository: lists cities
src/Controller/RestaurantController.php - Restaurant workflows → Restaurant voter: checks access
src/Controller/RestaurantController.php - Comment workflows → Comment form: creates via
src/Controller/CommentaireController.php - Comment workflows → Comment entity: persists
src/Controller/CommentaireController.php - Registration workflow → Registration form: creates via
src/Controller/RegistrationController.php - Registration workflow → User entity: creates
src/Controller/RegistrationController.php - Region workflows → Region form: creates via
src/Controller/RegionController.php - Region workflows → Region entity: manages
src/Controller/RegionController.php - Region workflows → Region repository: queries
src/Controller/RegionController.php - City workflows → City form: creates via
src/Controller/VilleController.php - City workflows → City entity: manages
src/Controller/VilleController.php - City workflows → City repository: queries
src/Controller/VilleController.php - Restaurant entity → Restaurant repository: uses repository
src/Entity/Restaurant.php - Comment entity → Comment repository: uses repository
src/Entity/Commentaire.php - User entity → User repository: uses repository
src/Entity/User.php - Region entity → Region repository: uses repository
src/Entity/Region.php - City entity → City repository: uses repository
src/Entity/Ville.php - Restaurant entity → City entity: belongs to
src/Entity/Restaurant.php - Restaurant entity → User entity: owned by
src/Entity/Restaurant.php - Restaurant entity → Comment entity: has reviews
src/Entity/Restaurant.php - Comment entity → User entity: authored by
src/Entity/Commentaire.php - Comment entity → Comment entity: replies to
src/Entity/Commentaire.php - City entity → Region entity: belongs to
src/Entity/Ville.php - Restaurant voter → Restaurant entity: authorizes
src/Security/Voter/RestaurantVoter.php - Restaurant voter → User entity: checks user
src/Security/Voter/RestaurantVoter.php