T
T
tukreb2021-11-30 01:34:58
symfony
tukreb, 2021-11-30 01:34:58

How to bypass directory depth limit for Symfony budle?

In general, judging by https://symfony.com/doc/current/bundles/best_pract...
"The depth of subdirectories should be kept to a minimum for the most used classes and files. Two levels is the maximum."
In general, how can you get around this limitation in order to scatter your classes in a more convenient way?
Because if you follow the best practices, it turns out that dozens of classes will scatter across different folders, almost unrelated to each other, and you will need to constantly jump between folders.
for example, how to use such a structure in a bundle to organize your code?

├── src/
│   ├── UseCases/
│   │   ├── BlaBla/
│   │   │   ├── SomeAction/
│   │   │   │   ├── Dto.php
│   │   │   │   ├── Handle.php

Here the depth of the directories is already equal to 4, and maybe more.
I do not want to shove all this into the controller.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question