routeMatch = $route_match; } /** * {@inheritdoc} */ public function check(Response $response, Request $request) { if ($this->routeMatch->getRouteName() === 'image.style_private') { return static::DENY; } } }