Symfony2 AcmeDemoBundleを削除する
Symfonyインストール時にデフォルトで入るAcmeDemoBundleは不要なので削除する
ディレクトリ移動
$ cd /path/to/Symfony
不要なソースを削除
$ rm -rf src/Acme $ rm -rf web/bundles/acmedemo
AcmeDemoBundle の ルーティングを削除
$ vim app/config/routing_dev.yml : # AcmeDemoBundle routes (to be removed) _acme_demo: resource: "@AcmeDemoBundle/Resources/config/routing.yml"
AppKernel.php から AcmeDemoBundleを削除
$ vim app/AppKernel.php <?php : if (in_array($this->getEnvironment(), array('dev', 'test'))) { $bundles[] = new Acme\DemoBundle\AcmeDemoBundle(); # <= 削除する $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle(); $bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle(); $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle(); } :
config.yml 修正 (security.ymlのimportsをコメント)
$ vim app/config/config.yml imports: - { resource: parameters.yml } # - { resource: security.yml } :