$request =
$event->
getRequest();
if (!
$request->attributes->
get('auth_required', true
)) { return;
} if (!
$this->
isRequestScoped($request, ApiContextRouteScopeDependant::
class)) { return;
} $psr7Request =
$this->psrHttpFactory->
createRequest($event->
getRequest());
$psr7Request =
$this->resourceServer->
validateAuthenticatedRequest($psr7Request);
$request->attributes->
add($psr7Request->
getAttributes());
} protected function getScopeRegistry(): RouteScopeRegistry
{ return $this->routeScopeRegistry;
}}