Symfony 2 - How to delete a bundle?

后端 未结 2 1286
逝去的感伤
逝去的感伤 2021-01-30 13:37

So my question is how to delete bundle I created?

You create bundles with this console command:

php app/console generate:bundle --namespace=Test/BlogBund         


        
2条回答
  •  灰色年华
    2021-01-30 14:11

    It is basically the process you have outlined, only in somewhat different order.

    1. delete /src/Test/BlogBundle directory
    2. change /app/config/routing.yml file to remove the bundle routes
    3. remove your new bundle from /app/AppKernel.php
    4. clear cache (either by deleting cache/{$env} or console cache:clear)

    If this wasn't installed using a dependency manager - that should be all.

提交回复
热议问题