/**
* Set the active theme if there is a portal.
*
* @param GetResponseEvent $event
*/
public function onKernelRequest(GetResponseEvent $event)
{
$portal = $this->requestAnalyzer->getPortal();
if (null === $portal) {
return;
}
$themeKey = $portal->getWebspace()->getTheme()->getKey();
$this->activeTheme->setName($themeKey);
}