/** @var list<string> $scope */
$scope =
$request->attributes->
get(PlatformRequest::ATTRIBUTE_ROUTE_SCOPE,
[]);
if (!\
in_array(ApiRouteScope::ID,
$scope, true
)) { return;
} $expectations =
$this->
checkPackages($request);
if (\
count($expectations)) { throw ApiException::
expectationFailed($expectations);
} } /**
* @return list<string>
*/
private function checkPackages(Request
$request): array
{ // swag/plugin1:~6.1,swag/plugin2:~6.1
$extensionConstraints =
array_filter(explode(',',
(string) $request->headers->
get(PlatformRequest::HEADER_EXPECT_PACKAGES
)));
if ($extensionConstraints ===
[]) {