Where should I put factory classes?

(Robawtic) #1

Hello, so I am a bit confused as to where I should be putting these files. I am basically creating a Tournament Module outside of the basic models I have created a few classes extending a TournamentFactory class. Right now I have these files in components folder but I am not sure if this is the correct way of doing things within yii. Basically my file structure looks like this.
















(Alexander Makarov) #2

Keep these whenever it feels good. These are not components so I’d put these and tournament type classes into “domain”.