Symfony2 – Removing the acme demo

Lets begin

Everything in Symfony2 uses or is a bundle [a collection of code that serves a single useful purpose]. In order to use the bundle it has to be registered in some way. This “Registration” takes place in the AppKernel.php. any bundle that you create, will be registered here.

So the files we will be editing is app/AppKernel.php, app/config/routing_dev.yml and we will be removing the src/Acme folder.

The App Kernel

here we have to remove the line $bundles[] = new Acme\DemoBundle\AcmeDemoBundle();

 The routing_dev.yml

any route prefixed with _demo and _welcome can be removed

 Deleting the Acme Directory

Now the only thing left to do is delete the src/Acme folder, and that’s  it!


Tagged with: , , , ,
Posted in PHP, symfony2

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">