Symfony controller not recognized

I loaded a new controller in my symfony web project(symfony->src->Controller) and the editor does not recognize it as a Controller

Even the code inside the controller is not recognized as private and public methods:

I removed the "Symfony" and "Data Annotations" plugins and re-added them with no success. 

 

This new controller is in the same folder as my current controllers and they are working fine in the editor. Why is phpstorm not recognizing it?

0

The fix was easier than what I hoped. I opened the controller in phpstorm and navigated to "File->Associate with file type" and selected PHP and now it is working.

0

请先登录再写评论。