Answer the question
In order to leave comments, you need to log in
Own folder hierarchy in Symfony?
Hello.
I want to implement my own file hierarchy:
src/
-- Migration/
-- Controller/
-- Entity/
-- EventSubscriber/
-- Module/
--- User/
---- Entity/
---- Dto/
---- Repository/
---- Controller/
---- Service/
---- etc.
Answer the question
In order to leave comments, you need to log in
1.
https ://github.com/symfony/recipes/blob/master/doc...
migrations are not code.
2. When configuring the container and routes, Kernel.php
you can disassemble the folder structure and connect everything dynamically there.
3. No. How to create an entity in a non-standard way?
FYI, my folder structure looks like this right now:
migrations/
src/
-- Controller/
---- User/
---- ModuleName/
-- Entity/
---- User/
---- ModuleName/
-- User/
--- Dto/
--- Repository/
--- Service/
-- ModuleName/
--- Dto/
--- Repository/
--- Service/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question