Create new bundle using commands:
Run the following command to create new bundle:
# php app/console generate:bundle
Following are some options which need to fill after running the above command:
Welcome to the Symfony bundle generator!
- Are you planning on sharing this bundle across multiple applications? [no]: yes
- Bundle namespace: BundleName(provide bundle name)
- Target Directory [src/]: leave blank for default
- What format do you want to use for your generated configuration?
Configuration format (annotation, yml, xml, php) [xml]: yml
Following are the structure of bundle folder and files to change:
Bundle location: symfony/src/App/BundleName
Bundle is created with all the basic files and entries. You can change the bundle files as per your requirement.
0 Comment(s)