public function onKernelResponse(FilterResponseEvent $event)
    {
        if ($this->getParameter('nyroDev_utility.setContentLanguageResponse') && $event->getResponse() && $event->getResponse()->headers && $event->getRequest()->getLocale()) {
            $event->getResponse()->headers->set('Content-Language', $event->getRequest()->getLocale());
        }
    }
public function onKernelResponse(FilterResponseEvent $event)
    {
        if ($this->getParameter('nyroDev_utility.setContentLanguageResponse') && $event->getResponse() && $event->getResponse()->headers && $event->getRequest()->getLocale()) {
            $event->getResponse()->headers->set('Content-Language', $event->getRequest()->getLocale());
        }
    }
public function onKernelResponse ( FilterResponseEvent $ event ) { if ( $ this -> getParameter ( 'nyroDev_utility.setContentLanguageResponse' ) && $ event -> getResponse ( ) && $ event -> getResponse ( ) -> headers && $ event -> getRequest ( ) -> getLocale ( ) ) { $ event -> getResponse ( ) -> headers -> set ( 'Content-Language' , $ event -> getRequest ( ) -> getLocale ( ) ) ; } }
Kernel response listener to add content-language if configured.

@param FilterResponseEvent $event Kernel response event
Kernel response listener to add content - language if configured .