How to test in symfony RequestEvent if the request is isXmlHttpRequest?

前端 未结 0 790
孤城傲影
孤城傲影 2021-02-10 21:38

I\'m trying to do this

in RequestSubscriber

public function onKernelRequest($event)
    {
        
            if($event->isXmlHttpRequest()) {
                 


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题