Repository address: https://github.com/chtipepere/FindUnusedBundles
Add the bundle to your composer.json
"require-dev": {
...,
"doh/find-unused-bundles-bundle": "dev-master"
}
Add the bundle to your AppKernel
if (in_array($this->getEnvironment(), ['dev', 'test'])) {
$bundles[] = new Doh\FindUnusedBundlesBundle\DohFindUnusedBundlesBundle();
}
Scan your app
php app/console doh:unusedblundles:find
php app/console d:u:f
- n/a
- Remove and/or delete unused bundles/packages.
- Add tests