php - Symfony : is there a best practice about the directories' name including traits and interfaces? -


i guess can't create trait or interface directory inside bundle since keyword bring problems when used (i.e. use mybundle\trait\mytrait).

is there best practice how name these directories ?

regarding naming convention, see coding standards

regarding directory structure, don't put them in trait directory. depends on how want organize code. generally, people put trait inside package folder behaviour represents, i.e., mysql\connectiontrait


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -