티스토리 뷰

Develop/Symfony

Symfony AppBundle 제거

GuriZzang 2017. 7. 24. 16:15

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 AppBundle 제거  (0) 2017.07.24
Symfony generate bundle  (0) 2017.07.24
Symfony encore  (0) 2017.07.24
Symfony 프로젝트 생성  (0) 2017.07.24
Symfony 설치  (0) 2017.07.24
댓글
댓글쓰기 폼
공지사항
Total
51,684
Today
5
Yesterday
37
링크
«   2020/10   »
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
글 보관함