# พื้นฐาน Symfony (Symfony) > การติดตั้ง โครงสร้างโปรเจกต์ bundle environment การกำหนดค่า routing controller - 25 คำถามสัมภาษณ์ - Junior - [คำถามสัมภาษณ์: Symfony](https://sharpskill.dev/th/technologies/symfony/interview-questions.md) ## 1. คำสั่งใดที่สร้างโปรเจกต์ Symfony ใหม่พร้อมการพึ่งพาทั้งหมดสำหรับเว็บแอปพลิเคชัน? **คำตอบ** คำสั่ง symfony new --webapp สร้างโปรเจกต์ Symfony ที่สมบูรณ์พร้อมการพึ่งพาทั้งหมดที่จำเป็นสำหรับเว็บแอปพลิเคชัน (Twig, Doctrine, Security ฯลฯ) ส่วนรูปแบบ symfony new ที่ไม่มี --webapp จะสร้างโปรเจกต์แบบขั้นต่ำ Composer create-project เป็นทางเลือกที่ใช้ได้ แต่แนะนำให้ใช้ symfony new เพราะกำหนดค่าการตั้งค่าที่เหมาะสมที่สุดโดยอัตโนมัติ ## 2. โฟลเดอร์ใดที่เก็บ controller ในโปรเจกต์ Symfony 7? **คำตอบ** controller จะถูกวางไว้ในโฟลเดอร์ src/Controller/ ตามโครงสร้างมาตรฐานของ Symfony namespace ที่สอดคล้องกันคือ App\Controller ข้อกำหนดนี้ช่วยให้สามารถทำ autowiring อัตโนมัติและทำให้การจัดระเบียบโค้ดง่ายขึ้น โฟลเดอร์อื่นที่กล่าวถึงไม่มีอยู่ในโครงสร้างมาตรฐานของ Symfony ## 3. Bundle ใน Symfony คืออะไร? **คำตอบ** Bundle คือแพ็กเกจที่นำกลับมาใช้ใหม่ได้ ซึ่งจัดกลุ่มโค้ดและทรัพยากร (controller, เทมเพลต, การกำหนดค่า) รอบ ๆ ฟีเจอร์เฉพาะอย่างหนึ่ง สามารถแชร์ระหว่างหลายโปรเจกต์ Symfony ได้ bundle ของบุคคลที่สามจะถูกติดตั้งผ่าน Composer และลงทะเบียนใน config/bundles.php ใน Symfony สมัยใหม่ bundle ถูกใช้สำหรับไลบรารีของบุคคลที่สามเป็นหลัก ## มีอีก 22 คำถาม - ไฟล์ใดที่เก็บรายการ bundle ที่เปิดใช้งานในโปรเจกต์ Symfony? - สามสภาพแวดล้อมเริ่มต้นใน Symfony คืออะไร? สมัครฟรี: https://sharpskill.dev/th/login ## หัวข้อสัมภาษณ์ Symfony อื่นๆ - [PHP สมัยใหม่ (8.1+)](https://sharpskill.dev/th/technologies/symfony/interview-questions/php-modern-features.md): 20 คำถาม, Junior - [Routing & Controllers](https://sharpskill.dev/th/technologies/symfony/interview-questions/routing-controllers.md): 20 คำถาม, Junior - [Twig & Templates](https://sharpskill.dev/th/technologies/symfony/interview-questions/twig-templates.md): 20 คำถาม, Junior - [พื้นฐาน Doctrine ORM](https://sharpskill.dev/th/technologies/symfony/interview-questions/doctrine-orm-basics.md): 25 คำถาม, Junior - [ฟอร์ม Symfony](https://sharpskill.dev/th/technologies/symfony/interview-questions/forms.md): 22 คำถาม, Junior - [การตรวจสอบความถูกต้องของข้อมูล](https://sharpskill.dev/th/technologies/symfony/interview-questions/validation.md): 18 คำถาม, Junior - [Dependency Injection & Services](https://sharpskill.dev/th/technologies/symfony/interview-questions/dependency-injection.md): 24 คำถาม, Mid-Level - [Security & Authentication](https://sharpskill.dev/th/technologies/symfony/interview-questions/security-authentication.md): 26 คำถาม, Mid-Level - [Doctrine ขั้นสูง](https://sharpskill.dev/th/technologies/symfony/interview-questions/doctrine-advanced.md): 24 คำถาม, Mid-Level - [API Platform](https://sharpskill.dev/th/technologies/symfony/interview-questions/api-platform.md): 22 คำถาม, Mid-Level - [Serializer Component](https://sharpskill.dev/th/technologies/symfony/interview-questions/serializer.md): 20 คำถาม, Mid-Level - [Events & Event Subscribers](https://sharpskill.dev/th/technologies/symfony/interview-questions/events-subscribers.md): 20 คำถาม, Mid-Level - [Console & Commands](https://sharpskill.dev/th/technologies/symfony/interview-questions/console-commands.md): 18 คำถาม, Mid-Level - [Messenger Component](https://sharpskill.dev/th/technologies/symfony/interview-questions/messenger.md): 22 คำถาม, Mid-Level - [HTTP Client](https://sharpskill.dev/th/technologies/symfony/interview-questions/http-client.md): 18 คำถาม, Mid-Level - [Cache & ประสิทธิภาพ](https://sharpskill.dev/th/technologies/symfony/interview-questions/cache.md): 20 คำถาม, Mid-Level - [Workflow Component](https://sharpskill.dev/th/technologies/symfony/interview-questions/workflow.md): 18 คำถาม, Mid-Level - [Testing Symfony](https://sharpskill.dev/th/technologies/symfony/interview-questions/testing.md): 22 คำถาม, Mid-Level - [Mailer Component](https://sharpskill.dev/th/technologies/symfony/interview-questions/mailer.md): 16 คำถาม, Mid-Level - [การแปลและ i18n](https://sharpskill.dev/th/technologies/symfony/interview-questions/translations.md): 16 คำถาม, Mid-Level - [EasyAdmin Bundle](https://sharpskill.dev/th/technologies/symfony/interview-questions/easyadmin.md): 18 คำถาม, Mid-Level - [สถาปัตยกรรม Symfony](https://sharpskill.dev/th/technologies/symfony/interview-questions/architecture-patterns.md): 24 คำถาม, Senior - [ประสิทธิภาพและการเพิ่มประสิทธิภาพ](https://sharpskill.dev/th/technologies/symfony/interview-questions/performance-optimization.md): 22 คำถาม, Senior - [ความปลอดภัยขั้นสูง](https://sharpskill.dev/th/technologies/symfony/interview-questions/security-advanced.md): 22 คำถาม, Senior - [Custom Bundles](https://sharpskill.dev/th/technologies/symfony/interview-questions/custom-bundles.md): 20 คำถาม, Senior - [Microservices ด้วย Symfony](https://sharpskill.dev/th/technologies/symfony/interview-questions/microservices.md): 22 คำถาม, Senior - [Real-time & WebSockets](https://sharpskill.dev/th/technologies/symfony/interview-questions/real-time.md): 18 คำถาม, Senior - [Deployment & DevOps](https://sharpskill.dev/th/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/th/technologies/symfony/interview-questions/symfony-basics