Membuat dan mengkonfigurasi Bundle di Symfony 2.7
lihat yang saya lakukan di bundle :
yusuf@yusuf-VirtualBox:/var/www/html/learning/learning1$ app/console generate:bundle –namespace=Acme/TestBundle
Welcome to the Symfony2 bundle generator
In your code, a bundle is often referenced by its name. It can be the
concatenation of all namespace parts but it’s really up to you to come
up with a unique name (a good practice is to start with the vendor name).
Based on the namespace, we suggest AcmeTestBundle.
Bundle name [AcmeTestBundle]:
The bundle can be generated anywhere. The suggested default directory uses
the standard conventions.
Target directory [/var/www/html/learning/learning1/src]:
Determine the format to use for the generated configuration.
Configuration format (yml, xml, php, or annotation): annotation
To help you get started faster, the command can generate some
code snippets for you.
Do you want to generate the whole directory structure [no]? yes
Summary before generation
You are going to generate a “Acme\TestBundle\AcmeTestBundle” bundle
in “/var/www/html/learning/learning1/src/” using the “annotation” format.
Do you confirm generation [yes]?
Generating the bundle code: OK
Checking that the bundle is autoloaded: OK
Confirm automatic update of your Kernel [yes]? yes
Enabling the bundle inside the Kernel: OK
Confirm automatic update of the Routing [yes]?
Importing the bundle routing resource: OK
You can now start using the generated code!