1. AppKernel.php > AppBundle\Appbundle() 제거
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = [
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\SecurityBundle(),
new Symfony\Bundle\TwigBundle\TwigBundle(),
new Symfony\Bundle\MonologBundle\MonologBundle(),
new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
// new AppBundle\AppBundle(),
new LF\CommonBundle\LFCommonBundle(),
new LF\GuriBundle\LFGuriBundle(),
];
2. services.yml > AppBundle 제거
AppBundle\:
resource: '../../src/AppBundle/*'
# you can exclude directories or files
# but if a service is unused, it's removed anyway
exclude: '../../src/AppBundle/{Entity,Repository,Tests}'
# controllers are imported separately to make sure they're public
# and have a tag that allows actions to type-hint services
AppBundle\Controller\:
resource: '../../src/AppBundle/Controller'
public: true
tags: ['controller.service_arguments']
3. routing.yml > AppBundle 제거
app:
resource: '@AppBundle/Controller/'
type: annotation
'Develop > Symfony' 카테고리의 다른 글
Symfony generate bundle (0) | 2017.07.24 |
---|---|
Symfony encore (0) | 2017.07.24 |
Symfony 프로젝트 생성 (0) | 2017.07.24 |
Symfony 설치 (0) | 2017.07.24 |