TramwayJS

Factory

Will add a new Factory file with a placeholder for building the entity.

Example

tramway create:factory ProductFactory --add-dependency-injection --key factory.product

Options

ArgumentCommand TypeTypeDefaultRequiredComments
nameargumentstringnoneyesThe name of the Factory class
diroptionstringentitiesnoAn option to override the default folder the Factory class will be created in
versionoptionnumberlatestnoAn option to specify which version of the class to use