How to delete a bundle in Symfony 2

×

Error message

Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in _menu_load_objects() (line 569 of /homepages/46/d762693627/htdocs/dc/includes/menu.inc).
How to delete a bundle in Symfony 2

First of all, you need to remove the bundle folder. But this is not enough.

You need to remove related code in registerBundle() from 

/app/AppKernel.php

Also you need to delete some related route code from 

/app/config/routing.yml

 

blog tag: