In the root of every Symfony 2 bundle is a file XXXBundle.php, where “XXX” is your bundle name. What’s that file for?
In the root of every Symfony 2 bundle is a file XXXBundle.php , where
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In short it lets Symfony2 know that the folder around this class follows certain Bundle structure convention (i.e. Symfony2 knows that it can find controller classes in /Controller). It also acts as a general go-to class for stuff like DIC configs.
For more info look into
Symfony\Component\HttpKernel\Bundle