public function onKernelRequest(GetResponseEvent $event)
    {
        $request = $event->getRequest();
        $route = $this->router->getRouteCollection()->get(
            $request->attributes->get('_route')
        );
        if (!$route || !$themeOptions = $route->getOption('synapse_theme')) {
            return;
        }

        $request->attributes->set('synapse_theme', $this->match(
            $themeOptions,
            new ThemeMatchingContext(array(
                'host' => $request->server->get('HTTP_HOST'),
            ))
        ));
    }