How giregls/php_symfony works
This Symfony application supports restaurant discovery and community reviews: visitors browse restaurants, filter by city, and view details; authenticated users can add restaurants, cities, and comments, while administrators can delete records. Controllers handle requests, bind Symfony forms, and persist domain entities through Doctrine. Registration and login provide the user-account path. A separate article CRUD area appears to be a smaller demonstration feature. The source excerpts show comment dispatch and its handler, but not transport configuration or the rendered templates, so those details are omitted.
Main entry points: RestaurantController.php Restaurant actions · BddController.php Bdd actions · RegistrationController.php Registration · Restaurant.php Restaurant
Components 26
Web requests
- Restaurant actions
src/Controller/RestaurantController.php - Bdd actions
src/Controller/BddController.php - Greeting action
src/Controller/HellcontrollerController.php - Article form
src/Form/ArticleType.php - Article
src/Entity/Article.php - Article repository
src/Repository/ArticleRepository.php
Accounts
- Login and logout
src/Controller/SecurityController.php - Registration
src/Controller/RegistrationController.php - Registration form
src/Form/RegistrationFormType.php - User account
src/Entity/User.php - User repository
src/Repository/UserRepository.php - Legacy user record
src/Entity/Utilisateur.php - Legacy user repository
src/Repository/UtilisateurRepository.php
Restaurant domain
- Restaurant form
src/Form/RestaurantType.php - City form
src/Form/VilleType.php - Comment form
src/Form/CommentaireType.php - Restaurant
src/Entity/Restaurant.php - Restaurant repository
src/Repository/RestaurantRepository.php - City
src/Entity/Ville.php - City repository
src/Repository/VilleRepository.php - Review comment
src/Entity/Commentaire.php - Comment repository
src/Repository/CommentaireRepository.php - Legacy comment repository
src/Repository/CommentaireRepository.php
Comment processing
- New-comment message
src/Message/NouveauCommentaire.php - Comment handler
src/MessageHandler/NouveauCommentaireHandler.php
Other components
- Visitor
Connections 27
- Visitor → Restaurant actions: requests restaurants
- Visitor → Registration: registers
- Visitor → Login and logout: signs in
- Visitor → Bdd actions: requests articles
- Registration → Registration form: binds form
src/Controller/RegistrationController.php - Registration → User account: creates account
src/Controller/RegistrationController.php - Registration → Visitor: redirects after registration
src/Controller/RegistrationController.php - User repository → User account: upgrades password
src/Repository/UserRepository.php - Restaurant actions → Restaurant repository: queries restaurants
src/Controller/RestaurantController.php - Restaurant actions → City repository: queries cities
src/Controller/RestaurantController.php - Restaurant actions → Restaurant form: binds form
src/Controller/RestaurantController.php - Restaurant actions → City form: binds form
src/Controller/RestaurantController.php - Restaurant actions → Comment form: binds form
src/Controller/RestaurantController.php - Restaurant actions → Restaurant: persists restaurant
src/Controller/RestaurantController.php - Restaurant actions → City: persists city
src/Controller/RestaurantController.php - Restaurant actions → Review comment: persists comment
src/Controller/RestaurantController.php - Restaurant actions → User account: assigns owner
src/Controller/RestaurantController.php - Restaurant actions → New-comment message: dispatches message
src/Controller/RestaurantController.php - Comment handler → New-comment message: handles message
src/MessageHandler/NouveauCommentaireHandler.php - Comment handler → Comment repository: loads comment
src/MessageHandler/NouveauCommentaireHandler.php - Restaurant → City: references city
src/Entity/Restaurant.php - Restaurant → Review comment: owns comments
src/Entity/Restaurant.php - Review comment → User account: references author
src/Entity/Commentaire.php - Bdd actions → Article form: binds form
src/Controller/BddController.php - Bdd actions → Article: persists article
src/Controller/BddController.php - Bdd actions → Article repository: receives repository
src/Controller/BddController.php - Bdd actions → Restaurant: persists restaurant
src/Controller/BddController.php