public function validate(RequestAttributes $attributes) { if (null === $attributes->getAttribute('portalInformation')) { throw new UrlMatchNotFoundException($attributes->getAttribute('requestUri')); } return true; }