FOSRestBundle doesn't work in Symfony 4.1

后端 未结 4 2077
无人共我
无人共我 2021-02-20 12:52

I have problem with returning views with FOSRestBundle working under Symfony 4.1 Project.

This is code from my controller:

class NewsController extends          


        
4条回答
  •  感情败类
    2021-02-20 13:00

    You must enable the SensioFrameworkExtraBundle view annotations

    sensio_framework_extra:
        view:        { annotations: false }
    

提交回复
热议问题