checkPackages example

if (!$request->attributes->has(PlatformRequest::ATTRIBUTE_ROUTE_SCOPE)) {
            return;
        }

        /** @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
    {
        
Home | Imprint | This part of the site doesn't use cookies.