I guess I can't create a Trait
or Interface
directory inside my bundle since this is a keyword that would bring problems when used (i.e. use MyBundle\trait\MyTrait
).
Is there a best practice about how to name these directories ?
Symfony specific: Put your traits in Util folder. In terms of the interfaces; e.g. you have a service class called Hello and HelloInterface then they both should go to Service folder or if you have some kind of class called Yow and YowInterface then you can put them Util folder as well. As simple as that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With