# 커스텀 번들 (Symfony) > 번들 생성, 익스텐션 구성, 컴파일러 패스, 재사용 가능한 번들, 모범 사례 - 20 면접 질문 - Senior - [면접 질문: Symfony](https://sharpskill.dev/ko/technologies/symfony/interview-questions.md) ## 1. Symfony에서 메인 번들 클래스는 어떤 클래스를 상속해야 합니까? **답변** Symfony의 메인 번들 클래스는 AbstractBundle(Symfony 6.1 이상) 또는 Bundle을 상속해야 합니다. AbstractBundle은 구성을 단순화하고 configure() 메서드를 통해 번들 클래스에서 직접 구성을 정의할 수 있어 권장됩니다. Bundle은 하위 호환성을 위해 계속 제공되지만 AbstractBundle은 더 현대적인 API를 제공합니다. ## 2. Symfony 번들에서 Extension 클래스의 역할은 무엇입니까? **답변** Extension 클래스(ConfigurableExtension 또는 Extension을 상속)는 번들 구성을 로드하고 서비스를 컨테이너에 등록하는 역할을 합니다. 번들의 구성 파일을 읽고 애플리케이션 매개변수를 처리하며 ContainerBuilder를 통해 서비스를 구성합니다. 컨테이너 컴파일 중 호출되는 load() 메서드를 구현합니다. ## 3. AcmePaymentBundle이라는 이름의 번들에서 메인 클래스의 명명 규칙은 무엇입니까? **답변** Symfony 규약에 따르면 메인 번들 클래스는 번들과 동일한 이름을 가져야 합니다. AcmePaymentBundle의 경우 메인 클래스는 AcmePaymentBundle이며 해당 네임스페이스(일반적으로 Acme\PaymentBundle)에 있어야 합니다. 따라서 파일은 번들의 src/ 폴더에 있는 AcmePaymentBundle.php가 됩니다. ## 17개 추가 질문 이용 가능 - Symfony에서 Compiler Pass란 무엇이며 언제 사용해야 합니까? - 매개변수 검증을 포함한 번들의 시맨틱 구성을 어떻게 정의합니까? 무료로 가입하기: https://sharpskill.dev/ko/login ## 기타 Symfony 면접 주제 - [모던 PHP (8.1+)](https://sharpskill.dev/ko/technologies/symfony/interview-questions/php-modern-features.md): 20개 질문, Junior - [Symfony 기초](https://sharpskill.dev/ko/technologies/symfony/interview-questions/symfony-basics.md): 25개 질문, Junior - [Routing & Controllers](https://sharpskill.dev/ko/technologies/symfony/interview-questions/routing-controllers.md): 20개 질문, Junior - [Twig & Templates](https://sharpskill.dev/ko/technologies/symfony/interview-questions/twig-templates.md): 20개 질문, Junior - [Doctrine ORM 기초](https://sharpskill.dev/ko/technologies/symfony/interview-questions/doctrine-orm-basics.md): 25개 질문, Junior - [Symfony 폼](https://sharpskill.dev/ko/technologies/symfony/interview-questions/forms.md): 22개 질문, Junior - [데이터 유효성 검사](https://sharpskill.dev/ko/technologies/symfony/interview-questions/validation.md): 18개 질문, Junior - [Dependency Injection & Services](https://sharpskill.dev/ko/technologies/symfony/interview-questions/dependency-injection.md): 24개 질문, Mid-Level - [Security & Authentication](https://sharpskill.dev/ko/technologies/symfony/interview-questions/security-authentication.md): 26개 질문, Mid-Level - [Doctrine 고급](https://sharpskill.dev/ko/technologies/symfony/interview-questions/doctrine-advanced.md): 24개 질문, Mid-Level - [API Platform](https://sharpskill.dev/ko/technologies/symfony/interview-questions/api-platform.md): 22개 질문, Mid-Level - [Serializer Component](https://sharpskill.dev/ko/technologies/symfony/interview-questions/serializer.md): 20개 질문, Mid-Level - [Events & Event Subscribers](https://sharpskill.dev/ko/technologies/symfony/interview-questions/events-subscribers.md): 20개 질문, Mid-Level - [Console & Commands](https://sharpskill.dev/ko/technologies/symfony/interview-questions/console-commands.md): 18개 질문, Mid-Level - [Messenger Component](https://sharpskill.dev/ko/technologies/symfony/interview-questions/messenger.md): 22개 질문, Mid-Level - [HTTP Client](https://sharpskill.dev/ko/technologies/symfony/interview-questions/http-client.md): 18개 질문, Mid-Level - [캐시 및 성능](https://sharpskill.dev/ko/technologies/symfony/interview-questions/cache.md): 20개 질문, Mid-Level - [Workflow Component](https://sharpskill.dev/ko/technologies/symfony/interview-questions/workflow.md): 18개 질문, Mid-Level - [Testing Symfony](https://sharpskill.dev/ko/technologies/symfony/interview-questions/testing.md): 22개 질문, Mid-Level - [Mailer Component](https://sharpskill.dev/ko/technologies/symfony/interview-questions/mailer.md): 16개 질문, Mid-Level - [번역 및 i18n](https://sharpskill.dev/ko/technologies/symfony/interview-questions/translations.md): 16개 질문, Mid-Level - [EasyAdmin Bundle](https://sharpskill.dev/ko/technologies/symfony/interview-questions/easyadmin.md): 18개 질문, Mid-Level - [Symfony 아키텍처](https://sharpskill.dev/ko/technologies/symfony/interview-questions/architecture-patterns.md): 24개 질문, Senior - [성능 및 최적화](https://sharpskill.dev/ko/technologies/symfony/interview-questions/performance-optimization.md): 22개 질문, Senior - [고급 보안](https://sharpskill.dev/ko/technologies/symfony/interview-questions/security-advanced.md): 22개 질문, Senior - [Symfony를 사용한 마이크로서비스](https://sharpskill.dev/ko/technologies/symfony/interview-questions/microservices.md): 22개 질문, Senior - [Real-time & WebSockets](https://sharpskill.dev/ko/technologies/symfony/interview-questions/real-time.md): 18개 질문, Senior - [Deployment & DevOps](https://sharpskill.dev/ko/technologies/symfony/interview-questions/deployment-devops.md): 20개 질문, Senior --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/ko/technologies/symfony/interview-questions/custom-bundles