0

I am pretty new on symfony2 (just reading its own pdf book) and I am curious that is it must to use namespace name as namespace Acme\HelloBundle\Controller;?

It is too long name and can I make it shorter with any other name or do I need to follow the directory path convention to name the namespace of the controller?

1 Answer 1

2

It has to match the directory structure. You can view the namespace standard here:

https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.