What are the rules to create methods within the controller in Symfony?
There are four general rules need to be followed to create methods within the controller in Symfony, which are as following:
- Only action methods should be public
- “Action” suffix must be included in action methods
- Controller methods should be short
- A valid response object should be fixed for action methods