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
Post a Comment