Thursday, March 29, 2012

Remove AcmeDemoBundle from Symfony2

Remove AcmeDemoBundle from Symfony2 » IDEwerks Development Blog



           Delete src/Acme folder
 
  >       Delete following line from // app/AppKernel.php
$bundles[] = new Acme\DemoBundle\AcmeDemoBundle();
 
  >       Delete following from app/config/routing_dev.php
# app/config/routing_dev.yml
_welcome:
    pattern: /
    defaults: { _controller: AcmeDemoBundle:Welcome:index }
 
_demo_secured:
    resource: "@AcmeDemoBundle/Controller/SecuredController.php"
    type: annotation
 
_demo:
    resource: "@AcmeDemoBundle/Controller/DemoController.php"
    type: annotation
    prefix: /demo
 
  >      Clear your cache:
php app/console cache:clear


More than 3 requests, I'll translate this to Chinese.
超过3个请求,我就会把这篇文章翻译成中文。

No comments: