Editing
Symfony Bundles Cookbook
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Bundle properties === The `generate:bundle` command without any arguments will enter into interactive mode and respond with a series of prompts for the bundle properties. Each of the prompts has a corresponding argument for the command line. * '''Namespace''' (`--namespace`) "vendor" followed by one or more optional category sub-namespaces followed by the bundle name. ** ''Vendor'' is a company name, project name, client name, etc. specific to the website and/or project ** ''Sub-namespaces'' organize related bundles ** The ''bundle'' name must end in "Bundle". ** E.g. `NorthRose/Billing/InvoiceBundle` * '''Bundle name''' (`--bundle-name`) name used to reference the bundle. Should be unique. Convention is to concatenate all of the namespace parts, e.g. `NorthRoseInvoiceBundle`. * '''Directory''' (`--dir`) Default convention is in `/src/`. * '''Configuration format''' (`--format`) e.g. `yml`, `xml`, `php`, etc. Convention is to use yml. * '''Do you want to generate the whole directory structure?''' (`--structure`) This will create a complete directory structure including empty public folders for documentation, web assets, etc. Shortcut to create skeleton structure. * There is a prompt to update the app kernel to include the new bundle. Yes. This basically registers the bundle with the app by updating `/app/AppKernel.php` * There is a prompt to update the routing to include the new bundle. This updates the default routing configuration to register the new bundle by udpating `/app/config/routing.yml`
Summary:
Please note that all contributions to Littledamien Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Littledamien Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information