From c5e008e7a99a0c9ffb8fcf7e1634da924c89b767 Mon Sep 17 00:00:00 2001 From: Daniel Metzner Date: Fri, 3 Jun 2022 11:16:06 +0200 Subject: [PATCH] Upgrade to Generator 6 (locally with bug fix) to allow Symfony 6 https://github.com/OpenAPITools/openapi-generator/issues/12522 --- .github/workflows/create_pull_request.yml | 9 +- .github/workflows/tests.yml | 5 +- .gitignore | 1 + .openapi-generator/FILES | 45 +- .openapi-generator/VERSION | 2 +- Api/ApiServer.php | 86 +- Api/AuthenticationApiInterface.php | 187 +- Api/MediaLibraryApiInterface.php | 144 +- Api/NotificationsApiInterface.php | 136 +- Api/ProjectsApiInterface.php | 513 +- Api/SearchApiInterface.php | 54 +- Api/UserApiInterface.php | 230 +- Api/UtilityApiInterface.php | 70 +- Controller/AuthenticationController.php | 852 +-- Controller/Controller.php | 340 +- Controller/MediaLibraryController.php | 760 +-- Controller/NotificationsController.php | 581 +- Controller/ProjectsController.php | 2760 ++++----- Controller/SearchController.php | 223 +- Controller/UserController.php | 1073 ++-- Controller/UtilityController.php | 261 +- .../Compiler/OpenAPIServerApiPass.php | 59 +- .../OpenAPIServerExtension.php | 39 +- Model/BaseUser.php | 446 +- Model/BasicUserDataResponse.php | 582 +- Model/DryRun.php | 98 +- Model/ExtendedUserDataResponse.php | 650 ++- Model/ExtendedUserDataResponseAllOf.php | 98 +- Model/ExtensionResponse.php | 158 +- Model/FeaturedProjectResponse.php | 472 +- Model/JWTResponse.php | 146 +- Model/LoginRequest.php | 182 +- Model/MediaCategoryResponse.php | 244 +- Model/MediaFileResponse.php | 688 +-- Model/MediaPackageResponse.php | 312 +- Model/NotificationContent.php | 650 ++- Model/NotificationResponse.php | 312 +- Model/NotificationsCountResponse.php | 348 +- Model/NotificationsType.php | 38 +- Model/OAuthLoginRequest.php | 158 +- Model/ProjectReportRequest.php | 94 +- Model/ProjectResponse.php | 1230 ++-- Model/ProjectsCategory.php | 248 +- Model/RefreshRequest.php | 92 +- Model/RegisterErrorResponse.php | 230 +- Model/RegisterRequest.php | 514 +- Model/ResetPasswordErrorResponse.php | 94 +- Model/ResetPasswordRequest.php | 98 +- Model/SearchResponse.php | 310 +- Model/SurveyResponse.php | 98 +- Model/TagResponse.php | 158 +- Model/UpdateProjectErrorResponse.php | 294 +- Model/UpdateProjectFailureResponse.php | 94 +- Model/UpdateProjectRequest.php | 378 +- Model/UpdateUserErrorResponse.php | 358 +- Model/UpdateUserRequest.php | 582 +- Model/UpdateUserRequestAllOf.php | 98 +- Model/UpgradeTokenRequest.php | 92 +- Model/UploadErrorResponse.php | 92 +- OpenAPIServerBundle.php | 33 +- README.md | 31 +- Resources/config/routing.yml | 78 +- Resources/config/services.yml | 14 +- .../docs/Api/AuthenticationApiInterface.md | 17 +- .../docs/Api/MediaLibraryApiInterface.md | 13 +- .../docs/Api/NotificationsApiInterface.md | 15 +- Resources/docs/Api/ProjectsApiInterface.md | 35 +- Resources/docs/Api/SearchApiInterface.md | 7 +- Resources/docs/Api/UserApiInterface.md | 19 +- Resources/docs/Api/UtilityApiInterface.md | 9 +- Service/JmsSerializer.php | 124 +- Service/SerializerInterface.php | 38 +- Service/StrictJsonDeserializationVisitor.php | 229 +- ...trictJsonDeserializationVisitorFactory.php | 33 +- Service/SymfonyValidator.php | 18 +- Service/TypeMismatchException.php | 32 +- Service/ValidatorInterface.php | 36 +- Tests/Api/AuthenticationApiInterfaceTest.php | 181 + Tests/Api/MediaLibraryApiInterfaceTest.php | 157 + Tests/Api/NotificationsApiInterfaceTest.php | 154 + Tests/Api/ProjectsApiInterfaceTest.php | 337 ++ Tests/Api/SearchApiInterfaceTest.php | 106 + Tests/Api/UserApiInterfaceTest.php | 199 + Tests/Api/UtilityApiInterfaceTest.php | 124 + Tests/AppKernel.php | 24 + Tests/Controller/ControllerTest.php | 123 + Tests/Model/BaseUserTest.php | 124 + Tests/Model/BasicUserDataResponseTest.php | 138 + Tests/Model/DryRunTest.php | 89 + .../ExtendedUserDataResponseAllOfTest.php | 89 + Tests/Model/ExtendedUserDataResponseTest.php | 145 + Tests/Model/ExtensionResponseTest.php | 96 + Tests/Model/FeaturedProjectResponseTest.php | 131 + Tests/Model/JWTResponseTest.php | 96 + Tests/Model/LoginRequestTest.php | 96 + Tests/Model/MediaCategoryResponseTest.php | 103 + Tests/Model/MediaFileResponseTest.php | 152 + Tests/Model/MediaPackageResponseTest.php | 110 + Tests/Model/NotificationContentTest.php | 145 + Tests/Model/NotificationResponseTest.php | 110 + .../Model/NotificationsCountResponseTest.php | 117 + Tests/Model/NotificationsTypeTest.php | 82 + Tests/Model/OAuthLoginRequestTest.php | 96 + Tests/Model/ProjectReportRequestTest.php | 89 + Tests/Model/ProjectResponseTest.php | 215 + Tests/Model/ProjectsCategoryTest.php | 103 + Tests/Model/RefreshRequestTest.php | 89 + Tests/Model/RegisterErrorResponseTest.php | 103 + Tests/Model/RegisterRequestTest.php | 131 + .../Model/ResetPasswordErrorResponseTest.php | 89 + Tests/Model/ResetPasswordRequestTest.php | 89 + Tests/Model/SearchResponseTest.php | 110 + Tests/Model/SurveyResponseTest.php | 89 + Tests/Model/TagResponseTest.php | 96 + .../Model/UpdateProjectErrorResponseTest.php | 110 + .../UpdateProjectFailureResponseTest.php | 89 + Tests/Model/UpdateProjectRequestTest.php | 117 + Tests/Model/UpdateUserErrorResponseTest.php | 117 + Tests/Model/UpdateUserRequestAllOfTest.php | 89 + Tests/Model/UpdateUserRequestTest.php | 138 + Tests/Model/UpgradeTokenRequestTest.php | 89 + Tests/Model/UploadErrorResponseTest.php | 89 + Tests/test_config.yml | 8 + autoload.php | 56 +- catroweb.yaml | 2 +- composer.json | 21 +- composer.lock | 5094 ++++++++++++++--- openapitools.json | 2 +- 128 files changed, 20076 insertions(+), 10419 deletions(-) mode change 100755 => 100644 Service/StrictJsonDeserializationVisitor.php create mode 100644 Tests/Api/AuthenticationApiInterfaceTest.php create mode 100644 Tests/Api/MediaLibraryApiInterfaceTest.php create mode 100644 Tests/Api/NotificationsApiInterfaceTest.php create mode 100644 Tests/Api/ProjectsApiInterfaceTest.php create mode 100644 Tests/Api/SearchApiInterfaceTest.php create mode 100644 Tests/Api/UserApiInterfaceTest.php create mode 100644 Tests/Api/UtilityApiInterfaceTest.php create mode 100644 Tests/AppKernel.php create mode 100644 Tests/Controller/ControllerTest.php create mode 100644 Tests/Model/BaseUserTest.php create mode 100644 Tests/Model/BasicUserDataResponseTest.php create mode 100644 Tests/Model/DryRunTest.php create mode 100644 Tests/Model/ExtendedUserDataResponseAllOfTest.php create mode 100644 Tests/Model/ExtendedUserDataResponseTest.php create mode 100644 Tests/Model/ExtensionResponseTest.php create mode 100644 Tests/Model/FeaturedProjectResponseTest.php create mode 100644 Tests/Model/JWTResponseTest.php create mode 100644 Tests/Model/LoginRequestTest.php create mode 100644 Tests/Model/MediaCategoryResponseTest.php create mode 100644 Tests/Model/MediaFileResponseTest.php create mode 100644 Tests/Model/MediaPackageResponseTest.php create mode 100644 Tests/Model/NotificationContentTest.php create mode 100644 Tests/Model/NotificationResponseTest.php create mode 100644 Tests/Model/NotificationsCountResponseTest.php create mode 100644 Tests/Model/NotificationsTypeTest.php create mode 100644 Tests/Model/OAuthLoginRequestTest.php create mode 100644 Tests/Model/ProjectReportRequestTest.php create mode 100644 Tests/Model/ProjectResponseTest.php create mode 100644 Tests/Model/ProjectsCategoryTest.php create mode 100644 Tests/Model/RefreshRequestTest.php create mode 100644 Tests/Model/RegisterErrorResponseTest.php create mode 100644 Tests/Model/RegisterRequestTest.php create mode 100644 Tests/Model/ResetPasswordErrorResponseTest.php create mode 100644 Tests/Model/ResetPasswordRequestTest.php create mode 100644 Tests/Model/SearchResponseTest.php create mode 100644 Tests/Model/SurveyResponseTest.php create mode 100644 Tests/Model/TagResponseTest.php create mode 100644 Tests/Model/UpdateProjectErrorResponseTest.php create mode 100644 Tests/Model/UpdateProjectFailureResponseTest.php create mode 100644 Tests/Model/UpdateProjectRequestTest.php create mode 100644 Tests/Model/UpdateUserErrorResponseTest.php create mode 100644 Tests/Model/UpdateUserRequestAllOfTest.php create mode 100644 Tests/Model/UpdateUserRequestTest.php create mode 100644 Tests/Model/UpgradeTokenRequestTest.php create mode 100644 Tests/Model/UploadErrorResponseTest.php create mode 100644 Tests/test_config.yml diff --git a/.github/workflows/create_pull_request.yml b/.github/workflows/create_pull_request.yml index 88c1b8ec..e18d85ff 100755 --- a/.github/workflows/create_pull_request.yml +++ b/.github/workflows/create_pull_request.yml @@ -22,16 +22,9 @@ jobs: - name: Open API code generation run: | npm install @openapitools/openapi-generator-cli - npx @openapitools/openapi-generator-cli version-manager set 5 +# npx @openapitools/openapi-generator-cli version-manager set 5 npx @openapitools/openapi-generator-cli generate -i catroweb.yaml -g php-symfony -p sortParamsByRequiredFlag=true -p skipFormModel=true -p variableNamingConvention=snake_case -p phpLegacySupport=false -o . - - name: Remove currently broken autogenerated tests & manually overwritten files - run: | - rm -rf Tests - git stash push Service/JmsSerializer.php - git stash push Service/StrictJsonDeserializationVisitor.php - git stash push Service/StrictJsonDeserializationVisitorFactory.php - - name: Permissions run: sudo chmod -R 777 ./ diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 40666641..03761bd7 100755 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,17 +10,16 @@ on: jobs: tests: - if: false # Disabled name: PHPUnit runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Setup PHP 7.4 + - name: Setup PHP 8.1 uses: shivammathur/setup-php@v2 with: - php-version: 7.4 + php-version: 8.1 - name: Validate composer.json and composer.lock run: composer validate diff --git a/.gitignore b/.gitignore index afaef3de..7589c227 100755 --- a/.gitignore +++ b/.gitignore @@ -43,6 +43,7 @@ # PHPUnit /app/phpunit.xml /phpunit.xml +/.phpunit.result.cache # Build data /build/ diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 39aca20b..930be1e9 100755 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -105,56 +105,13 @@ Resources/docs/Model/UploadErrorResponse.md Service/JmsSerializer.php Service/SerializerInterface.php Service/StrictJsonDeserializationVisitor.php +Service/StrictJsonDeserializationVisitorFactory.php Service/SymfonyValidator.php Service/TypeMismatchException.php Service/ValidatorInterface.php -Tests/Api/AuthenticationApiInterfaceTest.php -Tests/Api/MediaLibraryApiInterfaceTest.php -Tests/Api/NotificationsApiInterfaceTest.php -Tests/Api/ProjectsApiInterfaceTest.php -Tests/Api/SearchApiInterfaceTest.php -Tests/Api/UserApiInterfaceTest.php -Tests/Api/UtilityApiInterfaceTest.php Tests/AppKernel.php Tests/Controller/ControllerTest.php -Tests/Model/BaseUserTest.php -Tests/Model/BasicUserDataResponseTest.php -Tests/Model/DryRunTest.php -Tests/Model/ExtendedUserDataResponseAllOfTest.php -Tests/Model/ExtendedUserDataResponseTest.php -Tests/Model/ExtensionResponseTest.php -Tests/Model/FeaturedProjectResponseTest.php -Tests/Model/JWTResponseTest.php -Tests/Model/LoginRequestTest.php -Tests/Model/MediaCategoryResponseTest.php -Tests/Model/MediaFileResponseTest.php -Tests/Model/MediaPackageResponseTest.php -Tests/Model/NotificationContentTest.php -Tests/Model/NotificationResponseTest.php -Tests/Model/NotificationsCountResponseTest.php -Tests/Model/NotificationsTypeTest.php -Tests/Model/OAuthLoginRequestTest.php -Tests/Model/ProjectReportRequestTest.php -Tests/Model/ProjectResponseTest.php -Tests/Model/ProjectsCategoryTest.php -Tests/Model/RefreshRequestTest.php -Tests/Model/RegisterErrorResponseTest.php -Tests/Model/RegisterRequestTest.php -Tests/Model/ResetPasswordErrorResponseTest.php -Tests/Model/ResetPasswordRequestTest.php -Tests/Model/SearchResponseTest.php -Tests/Model/SurveyResponseTest.php -Tests/Model/TagResponseTest.php -Tests/Model/UpdateProjectErrorResponseTest.php -Tests/Model/UpdateProjectFailureResponseTest.php -Tests/Model/UpdateProjectRequestTest.php -Tests/Model/UpdateUserErrorResponseTest.php -Tests/Model/UpdateUserRequestAllOfTest.php -Tests/Model/UpdateUserRequestTest.php -Tests/Model/UpgradeTokenRequestTest.php -Tests/Model/UploadErrorResponseTest.php Tests/test_config.yml autoload.php git_push.sh phpunit.xml.dist -pom.xml diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 1e20ec35..89648de3 100755 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -5.4.0 \ No newline at end of file +6.0.1-SNAPSHOT \ No newline at end of file diff --git a/Api/ApiServer.php b/Api/ApiServer.php index 8bded9e6..ea02505e 100755 --- a/Api/ApiServer.php +++ b/Api/ApiServer.php @@ -1,24 +1,24 @@ apis[$api])) { - throw new \InvalidArgumentException('API has already a handler: '.$api); - } + /** + * @var array + */ + private $apis = array(); - $this->apis[$api] = $handler; - } + /** + * Adds an API handler to the server. + * + * @param string $api An API name of the handle + * @param mixed $handler A handler to set for the given API + */ + public function addApiHandler($api, $handler) + { + if (isset($this->apis[$api])) { + throw new \InvalidArgumentException('API has already a handler: '.$api); + } - /** - * Returns an API handler. - * - * @param string $api An API name of the handle - * - * @throws \InvalidArgumentException When no such handler exists - * - * @return mixed Returns a handler - */ - public function getApiHandler($api) - { - if (!isset($this->apis[$api])) { - throw new \InvalidArgumentException('No handler for '.$api.' implemented.'); + $this->apis[$api] = $handler; } - return $this->apis[$api]; - } + /** + * Returns an API handler. + * + * @param string $api An API name of the handle + * @return mixed Returns a handler + * @throws \InvalidArgumentException When no such handler exists + */ + public function getApiHandler($api) + { + if (!isset($this->apis[$api])) { + throw new \InvalidArgumentException('No handler for '.$api.' implemented.'); + } + + return $this->apis[$api]; + } } diff --git a/Api/AuthenticationApiInterface.php b/Api/AuthenticationApiInterface.php index 853e2a60..e5386ecb 100755 --- a/Api/AuthenticationApiInterface.php +++ b/Api/AuthenticationApiInterface.php @@ -1,23 +1,24 @@ headers->get('authorization'); - - // Read out all input parameter values into variables - $x_refresh = $request->headers->get('X-Refresh'); - - // Use the default value if no value was provided - - // Deserialize the input values that needs it - try { - $x_refresh = $this->deserialize($x_refresh, 'string', 'string'); - } catch (SerializerRuntimeException $exception) { - return $this->createBadRequestResponse($exception->getMessage()); - } - - // Validate the input values - $asserts = []; - $asserts[] = new Assert\NotNull(); - $asserts[] = new Assert\Type('string'); - $response = $this->validate($x_refresh, $asserts); - if ($response instanceof Response) { - return $response; - } - try { - $handler = $this->getApiHandler(); - - // Set authentication method 'PandaAuth' - $handler->setPandaAuth($securityPandaAuth); - - // Make the call to the business logic - $responseCode = 204; - $responseHeaders = []; - $result = $handler->authenticationDelete($x_refresh, $responseCode, $responseHeaders); - - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { + /** + * Operation authenticationDelete + * + * Expires refresh token + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function authenticationDeleteAction(Request $request) + { + // Handle authentication + // Authentication 'PandaAuth' required + // HTTP basic authentication required + $securityPandaAuth = $request->headers->get('authorization'); + + // Read out all input parameter values into variables + $x_refresh = $request->headers->get('X-Refresh'); + + // Use the default value if no value was provided + + // Deserialize the input values that needs it + try { + $x_refresh = $this->deserialize($x_refresh, 'string', 'string'); + } catch (SerializerRuntimeException $exception) { + return $this->createBadRequestResponse($exception->getMessage()); + } + + // Validate the input values + $asserts = []; + $asserts[] = new Assert\NotNull(); + $asserts[] = new Assert\Type("string"); + $response = $this->validate($x_refresh, $asserts); + if ($response instanceof Response) { + return $response; + } + + + try { + $handler = $this->getApiHandler(); + + // Set authentication method 'PandaAuth' + $handler->setPandaAuth($securityPandaAuth); + + // Make the call to the business logic + $responseCode = 204; + $responseHeaders = []; + $result = $handler->authenticationDelete($x_refresh, $responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 200: $message = 'OK'; break; @@ -118,59 +123,59 @@ public function authenticationDeleteAction(Request $request) break; } - return new Response( + return new Response( '', $responseCode, array_merge( $responseHeaders, [ - 'X-OpenAPI-Message' => $message, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } } - } - - /** - * Operation authenticationGet. - * - * Check token - * - * @param Request $request the Symfony request to handle - * - * @return Response the Symfony response - */ - public function authenticationGetAction(Request $request) - { - // Handle authentication - // Authentication 'PandaAuth' required - // HTTP basic authentication required - $securityPandaAuth = $request->headers->get('authorization'); - - // Read out all input parameter values into variables - - // Use the default value if no value was provided - - // Validate the input values - - try { - $handler = $this->getApiHandler(); - - // Set authentication method 'PandaAuth' - $handler->setPandaAuth($securityPandaAuth); - - // Make the call to the business logic - $responseCode = 204; - $responseHeaders = []; - $result = $handler->authenticationGet($responseCode, $responseHeaders); - - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { + + /** + * Operation authenticationGet + * + * Check token + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function authenticationGetAction(Request $request) + { + // Handle authentication + // Authentication 'PandaAuth' required + // HTTP basic authentication required + $securityPandaAuth = $request->headers->get('authorization'); + + // Read out all input parameter values into variables + + // Use the default value if no value was provided + + // Validate the input values + + + try { + $handler = $this->getApiHandler(); + + // Set authentication method 'PandaAuth' + $handler->setPandaAuth($securityPandaAuth); + + // Make the call to the business logic + $responseCode = 204; + $responseHeaders = []; + $result = $handler->authenticationGet($responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 200: $message = 'OK'; break; @@ -179,86 +184,87 @@ public function authenticationGetAction(Request $request) break; } - return new Response( + return new Response( '', $responseCode, array_merge( $responseHeaders, [ - 'X-OpenAPI-Message' => $message, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); - } - } - - /** - * Operation authenticationOauthPost. - * - * OAuth Login - * - * @param Request $request the Symfony request to handle - * - * @return Response the Symfony response - */ - public function authenticationOauthPostAction(Request $request) - { - // Make sure that the client is providing something that we can consume - $consumes = ['application/json']; - if (!static::isContentTypeAllowed($request, $consumes)) { - // We can't consume the content that the client is sending us - return new Response('', 415); - } - - // Figure out what data format to return to the client - $produces = ['application/json']; - // Figure out what the client accepts - $clientAccepts = $request->headers->has('Accept') ? $request->headers->get('Accept') : '*/*'; - $responseFormat = $this->getOutputFormat($clientAccepts, $produces); - if (null === $responseFormat) { - return new Response('', 406); - } - - // Handle authentication - - // Read out all input parameter values into variables - $o_auth_login_request = $request->getContent(); - - // Use the default value if no value was provided - - // Deserialize the input values that needs it - try { - $inputFormat = $request->getMimeType($request->getContentType()); - $o_auth_login_request = $this->deserialize($o_auth_login_request, 'OpenAPI\Server\Model\OAuthLoginRequest', $inputFormat); - } catch (SerializerRuntimeException $exception) { - return $this->createBadRequestResponse($exception->getMessage()); + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } } - // Validate the input values - $asserts = []; - $asserts[] = new Assert\NotNull(); - $asserts[] = new Assert\Type('OpenAPI\\Server\\Model\\OAuthLoginRequest'); - $asserts[] = new Assert\Valid(); - $response = $this->validate($o_auth_login_request, $asserts); - if ($response instanceof Response) { - return $response; - } - - try { - $handler = $this->getApiHandler(); - - // Make the call to the business logic - $responseCode = 200; - $responseHeaders = []; - $result = $handler->authenticationOauthPost($o_auth_login_request, $responseCode, $responseHeaders); - - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { + /** + * Operation authenticationOauthPost + * + * OAuth Login + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function authenticationOauthPostAction(Request $request) + { + // Make sure that the client is providing something that we can consume + $consumes = ['application/json']; + if (!static::isContentTypeAllowed($request, $consumes)) { + // We can't consume the content that the client is sending us + return new Response('', 415); + } + + // Figure out what data format to return to the client + $produces = ['application/json']; + // Figure out what the client accepts + $clientAccepts = $request->headers->has('Accept')?$request->headers->get('Accept'):'*/*'; + $responseFormat = $this->getOutputFormat($clientAccepts, $produces); + if ($responseFormat === null) { + return new Response('', 406); + } + + // Handle authentication + + // Read out all input parameter values into variables + $o_auth_login_request = $request->getContent(); + + // Use the default value if no value was provided + + // Deserialize the input values that needs it + try { + $inputFormat = $request->getMimeType($request->getContentType()); + $o_auth_login_request = $this->deserialize($o_auth_login_request, 'OpenAPI\Server\Model\OAuthLoginRequest', $inputFormat); + } catch (SerializerRuntimeException $exception) { + return $this->createBadRequestResponse($exception->getMessage()); + } + + // Validate the input values + $asserts = []; + $asserts[] = new Assert\NotNull(); + $asserts[] = new Assert\Type("OpenAPI\Server\Model\OAuthLoginRequest"); + $asserts[] = new Assert\Valid(); + $response = $this->validate($o_auth_login_request, $asserts); + if ($response instanceof Response) { + return $response; + } + + + try { + $handler = $this->getApiHandler(); + + + // Make the call to the business logic + $responseCode = 200; + $responseHeaders = []; + $result = $handler->authenticationOauthPost($o_auth_login_request, $responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 200: $message = 'OK'; break; @@ -279,93 +285,93 @@ public function authenticationOauthPostAction(Request $request) break; } - return new Response( - null !== $result ? $this->serialize($result, $responseFormat) : '', + return new Response( + $result !== null ?$this->serialize($result, $responseFormat):'', $responseCode, array_merge( $responseHeaders, [ - 'Content-Type' => $responseFormat, - 'X-OpenAPI-Message' => $message, + 'Content-Type' => $responseFormat, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); - } - } - - /** - * Operation authenticationPost. - * - * Login - * - * @param Request $request the Symfony request to handle - * - * @return Response the Symfony response - */ - public function authenticationPostAction(Request $request) - { - // Make sure that the client is providing something that we can consume - $consumes = ['application/json']; - if (!static::isContentTypeAllowed($request, $consumes)) { - // We can't consume the content that the client is sending us - return new Response('', 415); - } - - // Figure out what data format to return to the client - $produces = ['application/json']; - // Figure out what the client accepts - $clientAccepts = $request->headers->has('Accept') ? $request->headers->get('Accept') : '*/*'; - $responseFormat = $this->getOutputFormat($clientAccepts, $produces); - if (null === $responseFormat) { - return new Response('', 406); + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } } - // Handle authentication - // Authentication 'PandaAuth' required - // HTTP basic authentication required - $securityPandaAuth = $request->headers->get('authorization'); - - // Read out all input parameter values into variables - $login_request = $request->getContent(); - - // Use the default value if no value was provided - - // Deserialize the input values that needs it - try { - $inputFormat = $request->getMimeType($request->getContentType()); - $login_request = $this->deserialize($login_request, 'OpenAPI\Server\Model\LoginRequest', $inputFormat); - } catch (SerializerRuntimeException $exception) { - return $this->createBadRequestResponse($exception->getMessage()); - } - - // Validate the input values - $asserts = []; - $asserts[] = new Assert\NotNull(); - $asserts[] = new Assert\Type('OpenAPI\\Server\\Model\\LoginRequest'); - $asserts[] = new Assert\Valid(); - $response = $this->validate($login_request, $asserts); - if ($response instanceof Response) { - return $response; - } - - try { - $handler = $this->getApiHandler(); - - // Set authentication method 'PandaAuth' - $handler->setPandaAuth($securityPandaAuth); - - // Make the call to the business logic - $responseCode = 200; - $responseHeaders = []; - $result = $handler->authenticationPost($login_request, $responseCode, $responseHeaders); - - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { + /** + * Operation authenticationPost + * + * Login + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function authenticationPostAction(Request $request) + { + // Make sure that the client is providing something that we can consume + $consumes = ['application/json']; + if (!static::isContentTypeAllowed($request, $consumes)) { + // We can't consume the content that the client is sending us + return new Response('', 415); + } + + // Figure out what data format to return to the client + $produces = ['application/json']; + // Figure out what the client accepts + $clientAccepts = $request->headers->has('Accept')?$request->headers->get('Accept'):'*/*'; + $responseFormat = $this->getOutputFormat($clientAccepts, $produces); + if ($responseFormat === null) { + return new Response('', 406); + } + + // Handle authentication + // Authentication 'PandaAuth' required + // HTTP basic authentication required + $securityPandaAuth = $request->headers->get('authorization'); + + // Read out all input parameter values into variables + $login_request = $request->getContent(); + + // Use the default value if no value was provided + + // Deserialize the input values that needs it + try { + $inputFormat = $request->getMimeType($request->getContentType()); + $login_request = $this->deserialize($login_request, 'OpenAPI\Server\Model\LoginRequest', $inputFormat); + } catch (SerializerRuntimeException $exception) { + return $this->createBadRequestResponse($exception->getMessage()); + } + + // Validate the input values + $asserts = []; + $asserts[] = new Assert\NotNull(); + $asserts[] = new Assert\Type("OpenAPI\Server\Model\LoginRequest"); + $asserts[] = new Assert\Valid(); + $response = $this->validate($login_request, $asserts); + if ($response instanceof Response) { + return $response; + } + + + try { + $handler = $this->getApiHandler(); + + // Set authentication method 'PandaAuth' + $handler->setPandaAuth($securityPandaAuth); + + // Make the call to the business logic + $responseCode = 200; + $responseHeaders = []; + $result = $handler->authenticationPost($login_request, $responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 200: $message = 'OK'; break; @@ -383,93 +389,93 @@ public function authenticationPostAction(Request $request) break; } - return new Response( - null !== $result ? $this->serialize($result, $responseFormat) : '', + return new Response( + $result !== null ?$this->serialize($result, $responseFormat):'', $responseCode, array_merge( $responseHeaders, [ - 'Content-Type' => $responseFormat, - 'X-OpenAPI-Message' => $message, + 'Content-Type' => $responseFormat, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); - } - } - - /** - * Operation authenticationRefreshPost. - * - * Refresh token - * - * @param Request $request the Symfony request to handle - * - * @return Response the Symfony response - */ - public function authenticationRefreshPostAction(Request $request) - { - // Make sure that the client is providing something that we can consume - $consumes = ['application/json']; - if (!static::isContentTypeAllowed($request, $consumes)) { - // We can't consume the content that the client is sending us - return new Response('', 415); - } - - // Figure out what data format to return to the client - $produces = ['application/json']; - // Figure out what the client accepts - $clientAccepts = $request->headers->has('Accept') ? $request->headers->get('Accept') : '*/*'; - $responseFormat = $this->getOutputFormat($clientAccepts, $produces); - if (null === $responseFormat) { - return new Response('', 406); - } - - // Handle authentication - // Authentication 'PandaAuth' required - // HTTP basic authentication required - $securityPandaAuth = $request->headers->get('authorization'); - - // Read out all input parameter values into variables - $refresh_request = $request->getContent(); - - // Use the default value if no value was provided - - // Deserialize the input values that needs it - try { - $inputFormat = $request->getMimeType($request->getContentType()); - $refresh_request = $this->deserialize($refresh_request, 'OpenAPI\Server\Model\RefreshRequest', $inputFormat); - } catch (SerializerRuntimeException $exception) { - return $this->createBadRequestResponse($exception->getMessage()); - } - - // Validate the input values - $asserts = []; - $asserts[] = new Assert\NotNull(); - $asserts[] = new Assert\Type('OpenAPI\\Server\\Model\\RefreshRequest'); - $asserts[] = new Assert\Valid(); - $response = $this->validate($refresh_request, $asserts); - if ($response instanceof Response) { - return $response; + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } } - try { - $handler = $this->getApiHandler(); - - // Set authentication method 'PandaAuth' - $handler->setPandaAuth($securityPandaAuth); - - // Make the call to the business logic - $responseCode = 200; - $responseHeaders = []; - $result = $handler->authenticationRefreshPost($refresh_request, $responseCode, $responseHeaders); - - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { + /** + * Operation authenticationRefreshPost + * + * Refresh token + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function authenticationRefreshPostAction(Request $request) + { + // Make sure that the client is providing something that we can consume + $consumes = ['application/json']; + if (!static::isContentTypeAllowed($request, $consumes)) { + // We can't consume the content that the client is sending us + return new Response('', 415); + } + + // Figure out what data format to return to the client + $produces = ['application/json']; + // Figure out what the client accepts + $clientAccepts = $request->headers->has('Accept')?$request->headers->get('Accept'):'*/*'; + $responseFormat = $this->getOutputFormat($clientAccepts, $produces); + if ($responseFormat === null) { + return new Response('', 406); + } + + // Handle authentication + // Authentication 'PandaAuth' required + // HTTP basic authentication required + $securityPandaAuth = $request->headers->get('authorization'); + + // Read out all input parameter values into variables + $refresh_request = $request->getContent(); + + // Use the default value if no value was provided + + // Deserialize the input values that needs it + try { + $inputFormat = $request->getMimeType($request->getContentType()); + $refresh_request = $this->deserialize($refresh_request, 'OpenAPI\Server\Model\RefreshRequest', $inputFormat); + } catch (SerializerRuntimeException $exception) { + return $this->createBadRequestResponse($exception->getMessage()); + } + + // Validate the input values + $asserts = []; + $asserts[] = new Assert\NotNull(); + $asserts[] = new Assert\Type("OpenAPI\Server\Model\RefreshRequest"); + $asserts[] = new Assert\Valid(); + $response = $this->validate($refresh_request, $asserts); + if ($response instanceof Response) { + return $response; + } + + + try { + $handler = $this->getApiHandler(); + + // Set authentication method 'PandaAuth' + $handler->setPandaAuth($securityPandaAuth); + + // Make the call to the business logic + $responseCode = 200; + $responseHeaders = []; + $result = $handler->authenticationRefreshPost($refresh_request, $responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 200: $message = 'OK'; break; @@ -487,87 +493,88 @@ public function authenticationRefreshPostAction(Request $request) break; } - return new Response( - null !== $result ? $this->serialize($result, $responseFormat) : '', + return new Response( + $result !== null ?$this->serialize($result, $responseFormat):'', $responseCode, array_merge( $responseHeaders, [ - 'Content-Type' => $responseFormat, - 'X-OpenAPI-Message' => $message, + 'Content-Type' => $responseFormat, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); - } - } - - /** - * Operation authenticationUpgradePost. - * - * Upgrade a deprecated token to JWT - * - * @param Request $request the Symfony request to handle - * - * @return Response the Symfony response - */ - public function authenticationUpgradePostAction(Request $request) - { - // Make sure that the client is providing something that we can consume - $consumes = ['application/json']; - if (!static::isContentTypeAllowed($request, $consumes)) { - // We can't consume the content that the client is sending us - return new Response('', 415); - } - - // Figure out what data format to return to the client - $produces = ['application/json']; - // Figure out what the client accepts - $clientAccepts = $request->headers->has('Accept') ? $request->headers->get('Accept') : '*/*'; - $responseFormat = $this->getOutputFormat($clientAccepts, $produces); - if (null === $responseFormat) { - return new Response('', 406); - } - - // Handle authentication - - // Read out all input parameter values into variables - $upgrade_token_request = $request->getContent(); - - // Use the default value if no value was provided - - // Deserialize the input values that needs it - try { - $inputFormat = $request->getMimeType($request->getContentType()); - $upgrade_token_request = $this->deserialize($upgrade_token_request, 'OpenAPI\Server\Model\UpgradeTokenRequest', $inputFormat); - } catch (SerializerRuntimeException $exception) { - return $this->createBadRequestResponse($exception->getMessage()); - } - - // Validate the input values - $asserts = []; - $asserts[] = new Assert\NotNull(); - $asserts[] = new Assert\Type('OpenAPI\\Server\\Model\\UpgradeTokenRequest'); - $asserts[] = new Assert\Valid(); - $response = $this->validate($upgrade_token_request, $asserts); - if ($response instanceof Response) { - return $response; + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } } - try { - $handler = $this->getApiHandler(); - - // Make the call to the business logic - $responseCode = 200; - $responseHeaders = []; - $result = $handler->authenticationUpgradePost($upgrade_token_request, $responseCode, $responseHeaders); - - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { + /** + * Operation authenticationUpgradePost + * + * Upgrade a deprecated token to JWT + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function authenticationUpgradePostAction(Request $request) + { + // Make sure that the client is providing something that we can consume + $consumes = ['application/json']; + if (!static::isContentTypeAllowed($request, $consumes)) { + // We can't consume the content that the client is sending us + return new Response('', 415); + } + + // Figure out what data format to return to the client + $produces = ['application/json']; + // Figure out what the client accepts + $clientAccepts = $request->headers->has('Accept')?$request->headers->get('Accept'):'*/*'; + $responseFormat = $this->getOutputFormat($clientAccepts, $produces); + if ($responseFormat === null) { + return new Response('', 406); + } + + // Handle authentication + + // Read out all input parameter values into variables + $upgrade_token_request = $request->getContent(); + + // Use the default value if no value was provided + + // Deserialize the input values that needs it + try { + $inputFormat = $request->getMimeType($request->getContentType()); + $upgrade_token_request = $this->deserialize($upgrade_token_request, 'OpenAPI\Server\Model\UpgradeTokenRequest', $inputFormat); + } catch (SerializerRuntimeException $exception) { + return $this->createBadRequestResponse($exception->getMessage()); + } + + // Validate the input values + $asserts = []; + $asserts[] = new Assert\NotNull(); + $asserts[] = new Assert\Type("OpenAPI\Server\Model\UpgradeTokenRequest"); + $asserts[] = new Assert\Valid(); + $response = $this->validate($upgrade_token_request, $asserts); + if ($response instanceof Response) { + return $response; + } + + + try { + $handler = $this->getApiHandler(); + + + // Make the call to the business logic + $responseCode = 200; + $responseHeaders = []; + $result = $handler->authenticationUpgradePost($upgrade_token_request, $responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 200: $message = 'OK'; break; @@ -585,29 +592,28 @@ public function authenticationUpgradePostAction(Request $request) break; } - return new Response( - null !== $result ? $this->serialize($result, $responseFormat) : '', + return new Response( + $result !== null ?$this->serialize($result, $responseFormat):'', $responseCode, array_merge( $responseHeaders, [ - 'Content-Type' => $responseFormat, - 'X-OpenAPI-Message' => $message, + 'Content-Type' => $responseFormat, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } + } + + /** + * Returns the handler for this API controller. + * @return AuthenticationApiInterface + */ + public function getApiHandler() + { + return $this->apiServer->getApiHandler('authentication'); } - } - - /** - * Returns the handler for this API controller. - * - * @return AuthenticationApiInterface - */ - public function getApiHandler() - { - return $this->apiServer->getApiHandler('authentication'); - } } diff --git a/Controller/Controller.php b/Controller/Controller.php index f2005920..266f8884 100755 --- a/Controller/Controller.php +++ b/Controller/Controller.php @@ -1,24 +1,24 @@ validator = $validator; - } - - public function setSerializer(SerializerInterface $serializer) - { - $this->serializer = $serializer; - } - - public function setApiServer($server) - { - $this->apiServer = $server; - } - - /** - * This will return a response with code 400. Usage example: - * return $this->createBadRequestResponse('Unable to access this page!');. - * - * @param string $message A message - * - * @return Response - */ - public function createBadRequestResponse($message = 'Bad Request.') - { - return new Response($message, 400); - } - - /** - * This will return an error response. Usage example: - * return $this->createErrorResponse(new UnauthorizedHttpException());. - * - * @param HttpException $exception An HTTP exception - * - * @return Response - */ - public function createErrorResponse(HttpException $exception) - { - $statusCode = $exception->getStatusCode(); - $headers = array_merge($exception->getHeaders(), ['Content-Type' => 'application/json']); - - $json = $this->exceptionToArray($exception); - $json['statusCode'] = $statusCode; - - return new Response(json_encode($json, 15, 512), $statusCode, $headers); - } - - /** - * Serializes data to a given type format. - * - * @param mixed $data the data to serialize - * @param string $class the source data class - * @param string $format the target serialization format - * - * @return string a serialized data string - */ - protected function serialize($data, $format) - { - return $this->serializer->serialize($data, $format); - } - - /** - * Deserializes data from a given type format. - * - * @param string $data the data to deserialize - * @param string $class the target data class - * @param string $format the source serialization format - * - * @return mixed a deserialized data - */ - protected function deserialize($data, $class, $format) - { - return $this->serializer->deserialize($data, $class, $format); - } - - protected function validate($data, $asserts = null) - { - $errors = $this->validator->validate($data, $asserts); - - if (count($errors) > 0) { - $errorsString = (string) $errors; - - return $this->createBadRequestResponse($errorsString); + protected $validator; + protected $serializer; + protected $apiServer; + + public function setValidator(ValidatorInterface $validator) + { + $this->validator = $validator; + } + + public function setSerializer(SerializerInterface $serializer) + { + $this->serializer = $serializer; + } + + public function setApiServer($server) + { + $this->apiServer = $server; } - } - - /** - * Converts an exception to a serializable array. - * - * @return array - */ - private function exceptionToArray(\Exception $exception = null) - { - if (null === $exception) { - return null; + + /** + * This will return a response with code 400. Usage example: + * return $this->createBadRequestResponse('Unable to access this page!'); + * + * @param string $message A message + * + * @return Response + */ + public function createBadRequestResponse($message = 'Bad Request.') + { + return new Response($message, 400); } - if (!$this->container->get('kernel')->isDebug()) { - return [ - 'message' => $exception->getMessage(), - ]; + /** + * This will return an error response. Usage example: + * return $this->createErrorResponse(new UnauthorizedHttpException()); + * + * @param HttpException $exception An HTTP exception + * + * @return Response + */ + public function createErrorResponse(HttpException $exception) + { + $statusCode = $exception->getStatusCode(); + $headers = array_merge($exception->getHeaders(), ['Content-Type' => 'application/json']); + + $json = $this->exceptionToArray($exception); + $json['statusCode'] = $statusCode; + + return new Response(json_encode($json, 15, 512), $statusCode, $headers); } - return [ - 'message' => $exception->getMessage(), - 'type' => get_class($exception), - 'previous' => $this->exceptionToArray($exception->getPrevious()), - ]; - } - - protected function getOutputFormat($accept, array $produced) - { - // Figure out what the client accepts - $accept = preg_split('/[\\s,]+/', $accept); - - if (in_array('*/*', $accept, true) || in_array('application/*', $accept, true)) { - // Prefer JSON if the client has no preference - if (in_array('application/json', $produced, true)) { - return 'application/json'; - } - if (in_array('application/xml', $produced, true)) { - return 'application/xml'; - } + /** + * Serializes data to a given type format. + * + * @param mixed $data The data to serialize. + * @param string $class The source data class. + * @param string $format The target serialization format. + * + * @return string A serialized data string. + */ + protected function serialize($data, $format) + { + return $this->serializer->serialize($data, $format); } - if (in_array('application/json', $accept, true) && in_array('application/json', $produced, true)) { - return 'application/json'; + /** + * Deserializes data from a given type format. + * + * @param string $data The data to deserialize. + * @param string $class The target data class. + * @param string $format The source serialization format. + * + * @return mixed A deserialized data. + */ + protected function deserialize($data, $class, $format) + { + return $this->serializer->deserialize($data, $class, $format); } - if (in_array('application/xml', $accept, true) && in_array('application/xml', $produced, true)) { - return 'application/xml'; + protected function validate($data, $asserts = null) + { + $errors = $this->validator->validate($data, $asserts); + + if (count($errors) > 0) { + $errorsString = (string)$errors; + return $this->createBadRequestResponse($errorsString); + } } - // If we reach this point, we don't have a common ground between server and client - return null; - } - - /** - * Checks whether Content-Type request header presented in supported formats. - * - * @param Request $request request instance - * @param array $consumes array of supported content types - * - * @return bool returns true if Content-Type supported otherwise false - */ - public static function isContentTypeAllowed(Request $request, array $consumes = []) - { - if (!empty($consumes) && '*/*' !== $consumes[0]) { - $currentFormat = $request->getContentType(); - foreach ($consumes as $mimeType) { - // canonize mime type - if (is_string($mimeType) && false !== $pos = strpos($mimeType, ';')) { - $mimeType = trim(substr($mimeType, 0, $pos)); + /** + * Converts an exception to a serializable array. + * + * @param \Exception|null $exception + * + * @return array + */ + private function exceptionToArray(\Exception $exception = null) + { + if (null === $exception) { + return null; } - if (!$format = $request->getFormat($mimeType)) { - // add custom format to request - $format = $mimeType; - $request->setFormat($format, $format); - $currentFormat = $request->getContentType(); + if (!$this->container->get('kernel')->isDebug()) { + return [ + 'message' => $exception->getMessage(), + ]; } - if ($format === $currentFormat) { - return true; + return [ + 'message' => $exception->getMessage(), + 'type' => get_class($exception), + 'previous' => $this->exceptionToArray($exception->getPrevious()), + ]; + } + + protected function getOutputFormat($accept, array $produced) + { + // Figure out what the client accepts + $accept = preg_split("/[\s,]+/", $accept); + + if (in_array('*/*', $accept) || in_array('application/*', $accept)) { + // Prefer JSON if the client has no preference + if (in_array('application/json', $produced)) { + return 'application/json'; + } + if (in_array('application/xml', $produced)) { + return 'application/xml'; + } } - } - return false; + if (in_array('application/json', $accept) && in_array('application/json', $produced)) { + return 'application/json'; + } + + if (in_array('application/xml', $accept) && in_array('application/xml', $produced)) { + return 'application/xml'; + } + + // If we reach this point, we don't have a common ground between server and client + return null; } - return true; - } + /** + * Checks whether Content-Type request header presented in supported formats. + * + * @param Request $request Request instance. + * @param array $consumes Array of supported content types. + * + * @return bool Returns true if Content-Type supported otherwise false. + */ + public static function isContentTypeAllowed(Request $request, array $consumes = []) + { + if (!empty($consumes) && $consumes[0] !== '*/*') { + $currentFormat = $request->getContentType(); + foreach ($consumes as $mimeType) { + // canonize mime type + if (is_string($mimeType) && false !== $pos = strpos($mimeType, ';')) { + $mimeType = trim(substr($mimeType, 0, $pos)); + } + + if (!$format = $request->getFormat($mimeType)) { + // add custom format to request + $format = $mimeType; + $request->setFormat($format, $format); + $currentFormat = $request->getContentType(); + } + + if ($format === $currentFormat) { + return true; + } + } + + return false; + } + + return true; + } } diff --git a/Controller/MediaLibraryController.php b/Controller/MediaLibraryController.php index af996a98..1cfe5631 100755 --- a/Controller/MediaLibraryController.php +++ b/Controller/MediaLibraryController.php @@ -2,23 +2,23 @@ /** * MediaLibraryController - * PHP version 7.1.3. + * PHP version 8.1.1 * * @category Class - * + * @package OpenAPI\Server\Controller * @author OpenAPI Generator team - * - * @see https://github.com/openapitools/openapi-generator + * @link https://github.com/openapitools/openapi-generator */ /** - * Catroweb API. + * Catroweb API * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.1.0 + * The version of the OpenAPI document: v1.1.1 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git + * */ /** @@ -29,90 +29,91 @@ namespace OpenAPI\Server\Controller; -use Exception; +use \Exception; use JMS\Serializer\Exception\RuntimeException as SerializerRuntimeException; -use OpenAPI\Server\Api\MediaLibraryApiInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Exception\HttpException; use Symfony\Component\Validator\Constraints as Assert; +use OpenAPI\Server\Api\MediaLibraryApiInterface; +use OpenAPI\Server\Model\MediaFileResponse; /** - * MediaLibraryController Class Doc Comment. + * MediaLibraryController Class Doc Comment * * @category Class - * + * @package OpenAPI\Server\Controller * @author OpenAPI Generator team - * - * @see https://github.com/openapitools/openapi-generator + * @link https://github.com/openapitools/openapi-generator */ class MediaLibraryController extends Controller { - /** - * Operation mediaFileIdGet. - * - * Get the information of a specific media file - * - * @param Request $request the Symfony request to handle - * @param mixed $id - * - * @return Response the Symfony response - */ - public function mediaFileIdGetAction(Request $request, $id) - { - // Figure out what data format to return to the client - $produces = ['application/json']; - // Figure out what the client accepts - $clientAccepts = $request->headers->has('Accept') ? $request->headers->get('Accept') : '*/*'; - $responseFormat = $this->getOutputFormat($clientAccepts, $produces); - if (null === $responseFormat) { - return new Response('', 406); - } - - // Handle authentication - - // Read out all input parameter values into variables - $attributes = $request->query->get('attributes'); - - // Use the default value if no value was provided - - // Deserialize the input values that needs it - try { - $id = $this->deserialize($id, 'int', 'string'); - $attributes = $this->deserialize($attributes, 'string', 'string'); - } catch (SerializerRuntimeException $exception) { - return $this->createBadRequestResponse($exception->getMessage()); - } - - // Validate the input values - $asserts = []; - $asserts[] = new Assert\NotNull(); - $asserts[] = new Assert\Type('int'); - $response = $this->validate($id, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('string'); - $asserts[] = new Assert\Regex('/^[a-zA-Z0-9\\-_]+(,[a-zA-Z0-9\\-_]+)*$/'); - $response = $this->validate($attributes, $asserts); - if ($response instanceof Response) { - return $response; - } - try { - $handler = $this->getApiHandler(); - - // Make the call to the business logic - $responseCode = 200; - $responseHeaders = []; - $result = $handler->mediaFileIdGet($id, $attributes, $responseCode, $responseHeaders); - - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { + /** + * Operation mediaFileIdGet + * + * Get the information of a specific media file + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function mediaFileIdGetAction(Request $request, $id) + { + // Figure out what data format to return to the client + $produces = ['application/json']; + // Figure out what the client accepts + $clientAccepts = $request->headers->has('Accept')?$request->headers->get('Accept'):'*/*'; + $responseFormat = $this->getOutputFormat($clientAccepts, $produces); + if ($responseFormat === null) { + return new Response('', 406); + } + + // Handle authentication + + // Read out all input parameter values into variables + $attributes = $request->query->get('attributes'); + + // Use the default value if no value was provided + + // Deserialize the input values that needs it + try { + $id = $this->deserialize($id, 'int', 'string'); + $attributes = $this->deserialize($attributes, 'string', 'string'); + } catch (SerializerRuntimeException $exception) { + return $this->createBadRequestResponse($exception->getMessage()); + } + + // Validate the input values + $asserts = []; + $asserts[] = new Assert\NotNull(); + $asserts[] = new Assert\Type("int"); + $response = $this->validate($id, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("string"); + $asserts[] = new Assert\Regex("/^[a-zA-Z0-9\\-_]+(,[a-zA-Z0-9\\-_]+)*$/"); + $response = $this->validate($attributes, $asserts); + if ($response instanceof Response) { + return $response; + } + + + try { + $handler = $this->getApiHandler(); + + + // Make the call to the business logic + $responseCode = 200; + $responseHeaders = []; + $result = $handler->mediaFileIdGet($id, $attributes, $responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 200: $message = 'OK'; break; @@ -127,104 +128,105 @@ public function mediaFileIdGetAction(Request $request, $id) break; } - return new Response( - null !== $result ? $this->serialize($result, $responseFormat) : '', + return new Response( + $result !== null ?$this->serialize($result, $responseFormat):'', $responseCode, array_merge( $responseHeaders, [ - 'Content-Type' => $responseFormat, - 'X-OpenAPI-Message' => $message, + 'Content-Type' => $responseFormat, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); - } - } - - /** - * Operation mediaFilesGet. - * - * Get *all* content of the media library. - * - * @param Request $request the Symfony request to handle - * - * @return Response the Symfony response - */ - public function mediaFilesGetAction(Request $request) - { - // Figure out what data format to return to the client - $produces = ['application/json']; - // Figure out what the client accepts - $clientAccepts = $request->headers->has('Accept') ? $request->headers->get('Accept') : '*/*'; - $responseFormat = $this->getOutputFormat($clientAccepts, $produces); - if (null === $responseFormat) { - return new Response('', 406); + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } } - // Handle authentication - - // Read out all input parameter values into variables - $limit = $request->query->get('limit'); - $offset = $request->query->get('offset'); - $attributes = $request->query->get('attributes'); - $flavor = $request->query->get('flavor'); - - // Use the default value if no value was provided - - // Deserialize the input values that needs it - try { - $limit = $this->deserialize($limit, 'int', 'string'); - $offset = $this->deserialize($offset, 'int', 'string'); - $attributes = $this->deserialize($attributes, 'string', 'string'); - $flavor = $this->deserialize($flavor, 'string', 'string'); - } catch (SerializerRuntimeException $exception) { - return $this->createBadRequestResponse($exception->getMessage()); - } - - // Validate the input values - $asserts = []; - $asserts[] = new Assert\Type('int'); - $asserts[] = new Assert\GreaterThanOrEqual(0); - $response = $this->validate($limit, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('int'); - $asserts[] = new Assert\GreaterThanOrEqual(0); - $response = $this->validate($offset, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('string'); - $asserts[] = new Assert\Regex('/^[a-zA-Z0-9\\-_]+(,[a-zA-Z0-9\\-_]+)*$/'); - $response = $this->validate($attributes, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('string'); - $response = $this->validate($flavor, $asserts); - if ($response instanceof Response) { - return $response; - } - - try { - $handler = $this->getApiHandler(); - - // Make the call to the business logic - $responseCode = 200; - $responseHeaders = []; - $result = $handler->mediaFilesGet($limit, $offset, $attributes, $flavor, $responseCode, $responseHeaders); - - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { + /** + * Operation mediaFilesGet + * + * Get *all* content of the media library. + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function mediaFilesGetAction(Request $request) + { + // Figure out what data format to return to the client + $produces = ['application/json']; + // Figure out what the client accepts + $clientAccepts = $request->headers->has('Accept')?$request->headers->get('Accept'):'*/*'; + $responseFormat = $this->getOutputFormat($clientAccepts, $produces); + if ($responseFormat === null) { + return new Response('', 406); + } + + // Handle authentication + + // Read out all input parameter values into variables + $limit = $request->query->get('limit'); + $offset = $request->query->get('offset'); + $attributes = $request->query->get('attributes'); + $flavor = $request->query->get('flavor'); + + // Use the default value if no value was provided + + // Deserialize the input values that needs it + try { + $limit = $this->deserialize($limit, 'int', 'string'); + $offset = $this->deserialize($offset, 'int', 'string'); + $attributes = $this->deserialize($attributes, 'string', 'string'); + $flavor = $this->deserialize($flavor, 'string', 'string'); + } catch (SerializerRuntimeException $exception) { + return $this->createBadRequestResponse($exception->getMessage()); + } + + // Validate the input values + $asserts = []; + $asserts[] = new Assert\Type("int"); + $asserts[] = new Assert\GreaterThanOrEqual(0); + $response = $this->validate($limit, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("int"); + $asserts[] = new Assert\GreaterThanOrEqual(0); + $response = $this->validate($offset, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("string"); + $asserts[] = new Assert\Regex("/^[a-zA-Z0-9\\-_]+(,[a-zA-Z0-9\\-_]+)*$/"); + $response = $this->validate($attributes, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("string"); + $response = $this->validate($flavor, $asserts); + if ($response instanceof Response) { + return $response; + } + + + try { + $handler = $this->getApiHandler(); + + + // Make the call to the business logic + $responseCode = 200; + $responseHeaders = []; + $result = $handler->mediaFilesGet($limit, $offset, $attributes, $flavor, $responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 200: $message = 'OK'; break; @@ -236,121 +238,122 @@ public function mediaFilesGetAction(Request $request) break; } - return new Response( - null !== $result ? $this->serialize($result, $responseFormat) : '', + return new Response( + $result !== null ?$this->serialize($result, $responseFormat):'', $responseCode, array_merge( $responseHeaders, [ - 'Content-Type' => $responseFormat, - 'X-OpenAPI-Message' => $message, + 'Content-Type' => $responseFormat, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); - } - } - - /** - * Operation mediaFilesSearchGet. - * - * Search for mediafiles associated with keywords - * - * @param Request $request the Symfony request to handle - * - * @return Response the Symfony response - */ - public function mediaFilesSearchGetAction(Request $request) - { - // Figure out what data format to return to the client - $produces = ['application/json']; - // Figure out what the client accepts - $clientAccepts = $request->headers->has('Accept') ? $request->headers->get('Accept') : '*/*'; - $responseFormat = $this->getOutputFormat($clientAccepts, $produces); - if (null === $responseFormat) { - return new Response('', 406); - } - - // Handle authentication - - // Read out all input parameter values into variables - $query = $request->query->get('query'); - $limit = $request->query->get('limit'); - $offset = $request->query->get('offset'); - $attributes = $request->query->get('attributes'); - $flavor = $request->query->get('flavor'); - $package_name = $request->query->get('package_name'); - - // Use the default value if no value was provided - - // Deserialize the input values that needs it - try { - $query = $this->deserialize($query, 'string', 'string'); - $limit = $this->deserialize($limit, 'int', 'string'); - $offset = $this->deserialize($offset, 'int', 'string'); - $attributes = $this->deserialize($attributes, 'string', 'string'); - $flavor = $this->deserialize($flavor, 'string', 'string'); - $package_name = $this->deserialize($package_name, 'string', 'string'); - } catch (SerializerRuntimeException $exception) { - return $this->createBadRequestResponse($exception->getMessage()); - } - - // Validate the input values - $asserts = []; - $asserts[] = new Assert\NotNull(); - $asserts[] = new Assert\Type('string'); - $response = $this->validate($query, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('int'); - $asserts[] = new Assert\GreaterThanOrEqual(0); - $response = $this->validate($limit, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('int'); - $asserts[] = new Assert\GreaterThanOrEqual(0); - $response = $this->validate($offset, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('string'); - $asserts[] = new Assert\Regex('/^[a-zA-Z0-9\\-_]+(,[a-zA-Z0-9\\-_]+)*$/'); - $response = $this->validate($attributes, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('string'); - $response = $this->validate($flavor, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('string'); - $response = $this->validate($package_name, $asserts); - if ($response instanceof Response) { - return $response; + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } } - try { - $handler = $this->getApiHandler(); - - // Make the call to the business logic - $responseCode = 200; - $responseHeaders = []; - $result = $handler->mediaFilesSearchGet($query, $limit, $offset, $attributes, $flavor, $package_name, $responseCode, $responseHeaders); - - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { + /** + * Operation mediaFilesSearchGet + * + * Search for mediafiles associated with keywords + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function mediaFilesSearchGetAction(Request $request) + { + // Figure out what data format to return to the client + $produces = ['application/json']; + // Figure out what the client accepts + $clientAccepts = $request->headers->has('Accept')?$request->headers->get('Accept'):'*/*'; + $responseFormat = $this->getOutputFormat($clientAccepts, $produces); + if ($responseFormat === null) { + return new Response('', 406); + } + + // Handle authentication + + // Read out all input parameter values into variables + $query = $request->query->get('query'); + $limit = $request->query->get('limit'); + $offset = $request->query->get('offset'); + $attributes = $request->query->get('attributes'); + $flavor = $request->query->get('flavor'); + $package_name = $request->query->get('package_name'); + + // Use the default value if no value was provided + + // Deserialize the input values that needs it + try { + $query = $this->deserialize($query, 'string', 'string'); + $limit = $this->deserialize($limit, 'int', 'string'); + $offset = $this->deserialize($offset, 'int', 'string'); + $attributes = $this->deserialize($attributes, 'string', 'string'); + $flavor = $this->deserialize($flavor, 'string', 'string'); + $package_name = $this->deserialize($package_name, 'string', 'string'); + } catch (SerializerRuntimeException $exception) { + return $this->createBadRequestResponse($exception->getMessage()); + } + + // Validate the input values + $asserts = []; + $asserts[] = new Assert\NotNull(); + $asserts[] = new Assert\Type("string"); + $response = $this->validate($query, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("int"); + $asserts[] = new Assert\GreaterThanOrEqual(0); + $response = $this->validate($limit, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("int"); + $asserts[] = new Assert\GreaterThanOrEqual(0); + $response = $this->validate($offset, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("string"); + $asserts[] = new Assert\Regex("/^[a-zA-Z0-9\\-_]+(,[a-zA-Z0-9\\-_]+)*$/"); + $response = $this->validate($attributes, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("string"); + $response = $this->validate($flavor, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("string"); + $response = $this->validate($package_name, $asserts); + if ($response instanceof Response) { + return $response; + } + + + try { + $handler = $this->getApiHandler(); + + + // Make the call to the business logic + $responseCode = 200; + $responseHeaders = []; + $result = $handler->mediaFilesSearchGet($query, $limit, $offset, $attributes, $flavor, $package_name, $responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 200: $message = 'OK'; break; @@ -362,106 +365,106 @@ public function mediaFilesSearchGetAction(Request $request) break; } - return new Response( - null !== $result ? $this->serialize($result, $responseFormat) : '', + return new Response( + $result !== null ?$this->serialize($result, $responseFormat):'', $responseCode, array_merge( $responseHeaders, [ - 'Content-Type' => $responseFormat, - 'X-OpenAPI-Message' => $message, + 'Content-Type' => $responseFormat, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); - } - } - - /** - * Operation mediaPackageNameGet. - * - * Get media-library asstes of a named package - * - * @param Request $request the Symfony request to handle - * @param mixed $name - * - * @return Response the Symfony response - */ - public function mediaPackageNameGetAction(Request $request, $name) - { - // Figure out what data format to return to the client - $produces = ['application/json']; - // Figure out what the client accepts - $clientAccepts = $request->headers->has('Accept') ? $request->headers->get('Accept') : '*/*'; - $responseFormat = $this->getOutputFormat($clientAccepts, $produces); - if (null === $responseFormat) { - return new Response('', 406); + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } } - // Handle authentication - - // Read out all input parameter values into variables - $limit = $request->query->get('limit'); - $offset = $request->query->get('offset'); - $attributes = $request->query->get('attributes'); - - // Use the default value if no value was provided - - // Deserialize the input values that needs it - try { - $name = $this->deserialize($name, 'string', 'string'); - $limit = $this->deserialize($limit, 'int', 'string'); - $offset = $this->deserialize($offset, 'int', 'string'); - $attributes = $this->deserialize($attributes, 'string', 'string'); - } catch (SerializerRuntimeException $exception) { - return $this->createBadRequestResponse($exception->getMessage()); - } - - // Validate the input values - $asserts = []; - $asserts[] = new Assert\NotNull(); - $asserts[] = new Assert\Type('string'); - $asserts[] = new Assert\Regex('/^[a-zA-Z0-9\\-_]+$/'); - $response = $this->validate($name, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('int'); - $asserts[] = new Assert\GreaterThanOrEqual(0); - $response = $this->validate($limit, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('int'); - $asserts[] = new Assert\GreaterThanOrEqual(0); - $response = $this->validate($offset, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('string'); - $asserts[] = new Assert\Regex('/^[a-zA-Z0-9\\-_]+(,[a-zA-Z0-9\\-_]+)*$/'); - $response = $this->validate($attributes, $asserts); - if ($response instanceof Response) { - return $response; - } - - try { - $handler = $this->getApiHandler(); - - // Make the call to the business logic - $responseCode = 200; - $responseHeaders = []; - $result = $handler->mediaPackageNameGet($name, $limit, $offset, $attributes, $responseCode, $responseHeaders); - - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { + /** + * Operation mediaPackageNameGet + * + * Get media-library asstes of a named package + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function mediaPackageNameGetAction(Request $request, $name) + { + // Figure out what data format to return to the client + $produces = ['application/json']; + // Figure out what the client accepts + $clientAccepts = $request->headers->has('Accept')?$request->headers->get('Accept'):'*/*'; + $responseFormat = $this->getOutputFormat($clientAccepts, $produces); + if ($responseFormat === null) { + return new Response('', 406); + } + + // Handle authentication + + // Read out all input parameter values into variables + $limit = $request->query->get('limit'); + $offset = $request->query->get('offset'); + $attributes = $request->query->get('attributes'); + + // Use the default value if no value was provided + + // Deserialize the input values that needs it + try { + $name = $this->deserialize($name, 'string', 'string'); + $limit = $this->deserialize($limit, 'int', 'string'); + $offset = $this->deserialize($offset, 'int', 'string'); + $attributes = $this->deserialize($attributes, 'string', 'string'); + } catch (SerializerRuntimeException $exception) { + return $this->createBadRequestResponse($exception->getMessage()); + } + + // Validate the input values + $asserts = []; + $asserts[] = new Assert\NotNull(); + $asserts[] = new Assert\Type("string"); + $asserts[] = new Assert\Regex("/^[a-zA-Z0-9\\-_]+$/"); + $response = $this->validate($name, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("int"); + $asserts[] = new Assert\GreaterThanOrEqual(0); + $response = $this->validate($limit, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("int"); + $asserts[] = new Assert\GreaterThanOrEqual(0); + $response = $this->validate($offset, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("string"); + $asserts[] = new Assert\Regex("/^[a-zA-Z0-9\\-_]+(,[a-zA-Z0-9\\-_]+)*$/"); + $response = $this->validate($attributes, $asserts); + if ($response instanceof Response) { + return $response; + } + + + try { + $handler = $this->getApiHandler(); + + + // Make the call to the business logic + $responseCode = 200; + $responseHeaders = []; + $result = $handler->mediaPackageNameGet($name, $limit, $offset, $attributes, $responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 200: $message = 'OK'; break; @@ -476,29 +479,28 @@ public function mediaPackageNameGetAction(Request $request, $name) break; } - return new Response( - null !== $result ? $this->serialize($result, $responseFormat) : '', + return new Response( + $result !== null ?$this->serialize($result, $responseFormat):'', $responseCode, array_merge( $responseHeaders, [ - 'Content-Type' => $responseFormat, - 'X-OpenAPI-Message' => $message, + 'Content-Type' => $responseFormat, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } + } + + /** + * Returns the handler for this API controller. + * @return MediaLibraryApiInterface + */ + public function getApiHandler() + { + return $this->apiServer->getApiHandler('mediaLibrary'); } - } - - /** - * Returns the handler for this API controller. - * - * @return MediaLibraryApiInterface - */ - public function getApiHandler() - { - return $this->apiServer->getApiHandler('mediaLibrary'); - } } diff --git a/Controller/NotificationsController.php b/Controller/NotificationsController.php index c819a072..a6721946 100755 --- a/Controller/NotificationsController.php +++ b/Controller/NotificationsController.php @@ -2,23 +2,23 @@ /** * NotificationsController - * PHP version 7.1.3. + * PHP version 8.1.1 * * @category Class - * + * @package OpenAPI\Server\Controller * @author OpenAPI Generator team - * - * @see https://github.com/openapitools/openapi-generator + * @link https://github.com/openapitools/openapi-generator */ /** - * Catroweb API. + * Catroweb API * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.1.0 + * The version of the OpenAPI document: v1.1.1 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git + * */ /** @@ -29,87 +29,89 @@ namespace OpenAPI\Server\Controller; -use Exception; +use \Exception; use JMS\Serializer\Exception\RuntimeException as SerializerRuntimeException; -use OpenAPI\Server\Api\NotificationsApiInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Exception\HttpException; use Symfony\Component\Validator\Constraints as Assert; +use OpenAPI\Server\Api\NotificationsApiInterface; +use OpenAPI\Server\Model\NotificationResponse; +use OpenAPI\Server\Model\NotificationsCountResponse; +use OpenAPI\Server\Model\NotificationsType; /** - * NotificationsController Class Doc Comment. + * NotificationsController Class Doc Comment * * @category Class - * + * @package OpenAPI\Server\Controller * @author OpenAPI Generator team - * - * @see https://github.com/openapitools/openapi-generator + * @link https://github.com/openapitools/openapi-generator */ class NotificationsController extends Controller { - /** - * Operation notificationIdReadPut. - * - * Mark specified notification as read - * - * @param Request $request the Symfony request to handle - * @param mixed $id - * - * @return Response the Symfony response - */ - public function notificationIdReadPutAction(Request $request, $id) - { - // Handle authentication - // Authentication 'PandaAuth' required - // HTTP basic authentication required - $securityPandaAuth = $request->headers->get('authorization'); - - // Read out all input parameter values into variables - $accept_language = $request->headers->get('Accept-Language'); - - // Use the default value if no value was provided - - // Deserialize the input values that needs it - try { - $id = $this->deserialize($id, 'int', 'string'); - $accept_language = $this->deserialize($accept_language, 'string', 'string'); - } catch (SerializerRuntimeException $exception) { - return $this->createBadRequestResponse($exception->getMessage()); - } - - // Validate the input values - $asserts = []; - $asserts[] = new Assert\NotNull(); - $asserts[] = new Assert\Type('int'); - $asserts[] = new Assert\GreaterThanOrEqual(0); - $response = $this->validate($id, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('string'); - $response = $this->validate($accept_language, $asserts); - if ($response instanceof Response) { - return $response; - } - - try { - $handler = $this->getApiHandler(); - - // Set authentication method 'PandaAuth' - $handler->setPandaAuth($securityPandaAuth); - // Make the call to the business logic - $responseCode = 204; - $responseHeaders = []; - $result = $handler->notificationIdReadPut($id, $accept_language, $responseCode, $responseHeaders); - - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { + /** + * Operation notificationIdReadPut + * + * Mark specified notification as read + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function notificationIdReadPutAction(Request $request, $id) + { + // Handle authentication + // Authentication 'PandaAuth' required + // HTTP basic authentication required + $securityPandaAuth = $request->headers->get('authorization'); + + // Read out all input parameter values into variables + $accept_language = $request->headers->get('Accept-Language'); + + // Use the default value if no value was provided + + // Deserialize the input values that needs it + try { + $id = $this->deserialize($id, 'int', 'string'); + $accept_language = $this->deserialize($accept_language, 'string', 'string'); + } catch (SerializerRuntimeException $exception) { + return $this->createBadRequestResponse($exception->getMessage()); + } + + // Validate the input values + $asserts = []; + $asserts[] = new Assert\NotNull(); + $asserts[] = new Assert\Type("int"); + $asserts[] = new Assert\GreaterThanOrEqual(0); + $response = $this->validate($id, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("string"); + $response = $this->validate($accept_language, $asserts); + if ($response instanceof Response) { + return $response; + } + + + try { + $handler = $this->getApiHandler(); + + // Set authentication method 'PandaAuth' + $handler->setPandaAuth($securityPandaAuth); + + // Make the call to the business logic + $responseCode = 204; + $responseHeaders = []; + $result = $handler->notificationIdReadPut($id, $accept_language, $responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 204: $message = 'No Content'; break; @@ -121,68 +123,68 @@ public function notificationIdReadPutAction(Request $request, $id) break; } - return new Response( + return new Response( '', $responseCode, array_merge( $responseHeaders, [ - 'X-OpenAPI-Message' => $message, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); - } - } - - /** - * Operation notificationsCountGet. - * - * Count the number of unseen notifications - * - * @param Request $request the Symfony request to handle - * - * @return Response the Symfony response - */ - public function notificationsCountGetAction(Request $request) - { - // Figure out what data format to return to the client - $produces = ['application/json']; - // Figure out what the client accepts - $clientAccepts = $request->headers->has('Accept') ? $request->headers->get('Accept') : '*/*'; - $responseFormat = $this->getOutputFormat($clientAccepts, $produces); - if (null === $responseFormat) { - return new Response('', 406); + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } } - // Handle authentication - // Authentication 'PandaAuth' required - // HTTP basic authentication required - $securityPandaAuth = $request->headers->get('authorization'); - - // Read out all input parameter values into variables - - // Use the default value if no value was provided - - // Validate the input values - - try { - $handler = $this->getApiHandler(); - - // Set authentication method 'PandaAuth' - $handler->setPandaAuth($securityPandaAuth); - - // Make the call to the business logic - $responseCode = 200; - $responseHeaders = []; - $result = $handler->notificationsCountGet($responseCode, $responseHeaders); - - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { + /** + * Operation notificationsCountGet + * + * Count the number of unseen notifications + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function notificationsCountGetAction(Request $request) + { + // Figure out what data format to return to the client + $produces = ['application/json']; + // Figure out what the client accepts + $clientAccepts = $request->headers->has('Accept')?$request->headers->get('Accept'):'*/*'; + $responseFormat = $this->getOutputFormat($clientAccepts, $produces); + if ($responseFormat === null) { + return new Response('', 406); + } + + // Handle authentication + // Authentication 'PandaAuth' required + // HTTP basic authentication required + $securityPandaAuth = $request->headers->get('authorization'); + + // Read out all input parameter values into variables + + // Use the default value if no value was provided + + // Validate the input values + + + try { + $handler = $this->getApiHandler(); + + // Set authentication method 'PandaAuth' + $handler->setPandaAuth($securityPandaAuth); + + // Make the call to the business logic + $responseCode = 200; + $responseHeaders = []; + $result = $handler->notificationsCountGet($responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 200: $message = 'OK'; break; @@ -194,119 +196,119 @@ public function notificationsCountGetAction(Request $request) break; } - return new Response( - null !== $result ? $this->serialize($result, $responseFormat) : '', + return new Response( + $result !== null ?$this->serialize($result, $responseFormat):'', $responseCode, array_merge( $responseHeaders, [ - 'Content-Type' => $responseFormat, - 'X-OpenAPI-Message' => $message, + 'Content-Type' => $responseFormat, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); - } - } - - /** - * Operation notificationsGet. - * - * Get user notifications -- StatusCode: 501 - Not yet implemented - * - * @param Request $request the Symfony request to handle - * - * @return Response the Symfony response - */ - public function notificationsGetAction(Request $request) - { - // Figure out what data format to return to the client - $produces = ['application/json']; - // Figure out what the client accepts - $clientAccepts = $request->headers->has('Accept') ? $request->headers->get('Accept') : '*/*'; - $responseFormat = $this->getOutputFormat($clientAccepts, $produces); - if (null === $responseFormat) { - return new Response('', 406); + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } } - // Handle authentication - // Authentication 'PandaAuth' required - // HTTP basic authentication required - $securityPandaAuth = $request->headers->get('authorization'); - - // Read out all input parameter values into variables - $limit = $request->query->get('limit'); - $offset = $request->query->get('offset'); - $attributes = $request->query->get('attributes'); - $type = $request->query->get('type'); - $accept_language = $request->headers->get('Accept-Language'); - - // Use the default value if no value was provided - - // Deserialize the input values that needs it - try { - $accept_language = $this->deserialize($accept_language, 'string', 'string'); - $limit = $this->deserialize($limit, 'int', 'string'); - $offset = $this->deserialize($offset, 'int', 'string'); - $attributes = $this->deserialize($attributes, 'string', 'string'); - $type = $this->deserialize($type, 'OpenAPI\Server\Model\NotificationsType', 'string'); - } catch (SerializerRuntimeException $exception) { - return $this->createBadRequestResponse($exception->getMessage()); - } - - // Validate the input values - $asserts = []; - $asserts[] = new Assert\Type('string'); - $response = $this->validate($accept_language, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('int'); - $asserts[] = new Assert\GreaterThanOrEqual(0); - $response = $this->validate($limit, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('int'); - $asserts[] = new Assert\GreaterThanOrEqual(0); - $response = $this->validate($offset, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('string'); - $asserts[] = new Assert\Regex('/^[a-zA-Z0-9\\-_]+(,[a-zA-Z0-9\\-_]+)*$/'); - $response = $this->validate($attributes, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('OpenAPI\\Server\\Model\\NotificationsType'); - $asserts[] = new Assert\Valid(); - $response = $this->validate($type, $asserts); - if ($response instanceof Response) { - return $response; - } - - try { - $handler = $this->getApiHandler(); - - // Set authentication method 'PandaAuth' - $handler->setPandaAuth($securityPandaAuth); - - // Make the call to the business logic - $responseCode = 200; - $responseHeaders = []; - $result = $handler->notificationsGet($accept_language, $limit, $offset, $attributes, $type, $responseCode, $responseHeaders); - - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { + /** + * Operation notificationsGet + * + * Get user notifications -- StatusCode: 501 - Not yet implemented + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function notificationsGetAction(Request $request) + { + // Figure out what data format to return to the client + $produces = ['application/json']; + // Figure out what the client accepts + $clientAccepts = $request->headers->has('Accept')?$request->headers->get('Accept'):'*/*'; + $responseFormat = $this->getOutputFormat($clientAccepts, $produces); + if ($responseFormat === null) { + return new Response('', 406); + } + + // Handle authentication + // Authentication 'PandaAuth' required + // HTTP basic authentication required + $securityPandaAuth = $request->headers->get('authorization'); + + // Read out all input parameter values into variables + $limit = $request->query->get('limit'); + $offset = $request->query->get('offset'); + $attributes = $request->query->get('attributes'); + $type = $request->query->get('type'); + $accept_language = $request->headers->get('Accept-Language'); + + // Use the default value if no value was provided + + // Deserialize the input values that needs it + try { + $accept_language = $this->deserialize($accept_language, 'string', 'string'); + $limit = $this->deserialize($limit, 'int', 'string'); + $offset = $this->deserialize($offset, 'int', 'string'); + $attributes = $this->deserialize($attributes, 'string', 'string'); + $type = $this->deserialize($type, 'NotificationsType', 'string'); + } catch (SerializerRuntimeException $exception) { + return $this->createBadRequestResponse($exception->getMessage()); + } + + // Validate the input values + $asserts = []; + $asserts[] = new Assert\Type("string"); + $response = $this->validate($accept_language, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("int"); + $asserts[] = new Assert\GreaterThanOrEqual(0); + $response = $this->validate($limit, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("int"); + $asserts[] = new Assert\GreaterThanOrEqual(0); + $response = $this->validate($offset, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("string"); + $asserts[] = new Assert\Regex("/^[a-zA-Z0-9\\-_]+(,[a-zA-Z0-9\\-_]+)*$/"); + $response = $this->validate($attributes, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("NotificationsType"); + $asserts[] = new Assert\Valid(); + $response = $this->validate($type, $asserts); + if ($response instanceof Response) { + return $response; + } + + + try { + $handler = $this->getApiHandler(); + + // Set authentication method 'PandaAuth' + $handler->setPandaAuth($securityPandaAuth); + + // Make the call to the business logic + $responseCode = 200; + $responseHeaders = []; + $result = $handler->notificationsGet($accept_language, $limit, $offset, $attributes, $type, $responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 200: $message = 'OK'; break; @@ -318,60 +320,60 @@ public function notificationsGetAction(Request $request) break; } - return new Response( - null !== $result ? $this->serialize($result, $responseFormat) : '', + return new Response( + $result !== null ?$this->serialize($result, $responseFormat):'', $responseCode, array_merge( $responseHeaders, [ - 'Content-Type' => $responseFormat, - 'X-OpenAPI-Message' => $message, + 'Content-Type' => $responseFormat, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } } - } - - /** - * Operation notificationsReadPut. - * - * Mark all notifications as read - * - * @param Request $request the Symfony request to handle - * - * @return Response the Symfony response - */ - public function notificationsReadPutAction(Request $request) - { - // Handle authentication - // Authentication 'PandaAuth' required - // HTTP basic authentication required - $securityPandaAuth = $request->headers->get('authorization'); - - // Read out all input parameter values into variables - - // Use the default value if no value was provided - - // Validate the input values - - try { - $handler = $this->getApiHandler(); - - // Set authentication method 'PandaAuth' - $handler->setPandaAuth($securityPandaAuth); - - // Make the call to the business logic - $responseCode = 204; - $responseHeaders = []; - $result = $handler->notificationsReadPut($responseCode, $responseHeaders); - - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { + + /** + * Operation notificationsReadPut + * + * Mark all notifications as read + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function notificationsReadPutAction(Request $request) + { + // Handle authentication + // Authentication 'PandaAuth' required + // HTTP basic authentication required + $securityPandaAuth = $request->headers->get('authorization'); + + // Read out all input parameter values into variables + + // Use the default value if no value was provided + + // Validate the input values + + + try { + $handler = $this->getApiHandler(); + + // Set authentication method 'PandaAuth' + $handler->setPandaAuth($securityPandaAuth); + + // Make the call to the business logic + $responseCode = 204; + $responseHeaders = []; + $result = $handler->notificationsReadPut($responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 204: $message = 'No Content'; break; @@ -386,28 +388,27 @@ public function notificationsReadPutAction(Request $request) break; } - return new Response( + return new Response( '', $responseCode, array_merge( $responseHeaders, [ - 'X-OpenAPI-Message' => $message, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } + } + + /** + * Returns the handler for this API controller. + * @return NotificationsApiInterface + */ + public function getApiHandler() + { + return $this->apiServer->getApiHandler('notifications'); } - } - - /** - * Returns the handler for this API controller. - * - * @return NotificationsApiInterface - */ - public function getApiHandler() - { - return $this->apiServer->getApiHandler('notifications'); - } } diff --git a/Controller/ProjectsController.php b/Controller/ProjectsController.php index 6dc329ef..b61b4df1 100755 --- a/Controller/ProjectsController.php +++ b/Controller/ProjectsController.php @@ -2,23 +2,23 @@ /** * ProjectsController - * PHP version 7.1.3. + * PHP version 8.1.1 * * @category Class - * + * @package OpenAPI\Server\Controller * @author OpenAPI Generator team - * - * @see https://github.com/openapitools/openapi-generator + * @link https://github.com/openapitools/openapi-generator */ /** - * Catroweb API. + * Catroweb API * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.1.0 + * The version of the OpenAPI document: v1.1.1 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git + * */ /** @@ -29,82 +29,92 @@ namespace OpenAPI\Server\Controller; -use Exception; +use \Exception; use JMS\Serializer\Exception\RuntimeException as SerializerRuntimeException; -use OpenAPI\Server\Api\ProjectsApiInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Exception\HttpException; use Symfony\Component\Validator\Constraints as Assert; +use OpenAPI\Server\Api\ProjectsApiInterface; +use OpenAPI\Server\Model\ExtensionResponse; +use OpenAPI\Server\Model\FeaturedProjectResponse; +use OpenAPI\Server\Model\ProjectReportRequest; +use OpenAPI\Server\Model\ProjectResponse; +use OpenAPI\Server\Model\ProjectsCategory; +use OpenAPI\Server\Model\TagResponse; +use OpenAPI\Server\Model\UpdateProjectErrorResponse; +use OpenAPI\Server\Model\UpdateProjectFailureResponse; +use OpenAPI\Server\Model\UpdateProjectRequest; +use OpenAPI\Server\Model\UploadErrorResponse; /** - * ProjectsController Class Doc Comment. + * ProjectsController Class Doc Comment * * @category Class - * + * @package OpenAPI\Server\Controller * @author OpenAPI Generator team - * - * @see https://github.com/openapitools/openapi-generator + * @link https://github.com/openapitools/openapi-generator */ class ProjectsController extends Controller { - /** - * Operation projectIdCatrobatGet. - * - * Download the .catrobat (=zip) file of a project - * - * @param Request $request the Symfony request to handle - * @param mixed $id - * - * @return Response the Symfony response - */ - public function projectIdCatrobatGetAction(Request $request, $id) - { - // Figure out what data format to return to the client - $produces = ['application/zip']; - // Figure out what the client accepts - $clientAccepts = $request->headers->has('Accept') ? $request->headers->get('Accept') : '*/*'; - $responseFormat = $this->getOutputFormat($clientAccepts, $produces); - if (null === $responseFormat) { - return new Response('', 406); - } - - // Handle authentication - - // Read out all input parameter values into variables - - // Use the default value if no value was provided - - // Deserialize the input values that needs it - try { - $id = $this->deserialize($id, 'string', 'string'); - } catch (SerializerRuntimeException $exception) { - return $this->createBadRequestResponse($exception->getMessage()); - } - - // Validate the input values - $asserts = []; - $asserts[] = new Assert\NotNull(); - $asserts[] = new Assert\Type('string'); - $asserts[] = new Assert\Regex('/^[a-zA-Z0-9\\-]+$/'); - $response = $this->validate($id, $asserts); - if ($response instanceof Response) { - return $response; - } - - try { - $handler = $this->getApiHandler(); - - // Make the call to the business logic - $responseCode = 200; - $responseHeaders = []; - $result = $handler->projectIdCatrobatGet($id, $responseCode, $responseHeaders); - - // Find default response message - $message = ''; - // Find a more specific message, if available - switch ($responseCode) { + /** + * Operation projectIdCatrobatGet + * + * Download the .catrobat (=zip) file of a project + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function projectIdCatrobatGetAction(Request $request, $id) + { + // Figure out what data format to return to the client + $produces = ['application/zip']; + // Figure out what the client accepts + $clientAccepts = $request->headers->has('Accept')?$request->headers->get('Accept'):'*/*'; + $responseFormat = $this->getOutputFormat($clientAccepts, $produces); + if ($responseFormat === null) { + return new Response('', 406); + } + + // Handle authentication + + // Read out all input parameter values into variables + + // Use the default value if no value was provided + + // Deserialize the input values that needs it + try { + $id = $this->deserialize($id, 'string', 'string'); + } catch (SerializerRuntimeException $exception) { + return $this->createBadRequestResponse($exception->getMessage()); + } + + // Validate the input values + $asserts = []; + $asserts[] = new Assert\NotNull(); + $asserts[] = new Assert\Type("string"); + $asserts[] = new Assert\Regex("/^[a-zA-Z0-9\\-]+$/"); + $response = $this->validate($id, $asserts); + if ($response instanceof Response) { + return $response; + } + + + try { + $handler = $this->getApiHandler(); + + + // Make the call to the business logic + $responseCode = 200; + $responseHeaders = []; + $result = $handler->projectIdCatrobatGet($id, $responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 200: $message = '.catrobat file successfully downloaded'; break; @@ -119,76 +129,75 @@ public function projectIdCatrobatGetAction(Request $request, $id) break; } - return new Response( - null !== $result ? $this->serialize($result, $responseFormat) : '', + return new Response( + $result !== null ?$this->serialize($result, $responseFormat):'', $responseCode, array_merge( $responseHeaders, [ - 'Content-Type' => $responseFormat, - 'X-OpenAPI-Message' => $message, + 'Content-Type' => $responseFormat, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); - } - } - - /** - * Operation projectIdDelete. - * - * Delete a project - * - * @param Request $request the Symfony request to handle - * @param mixed $id - * - * @return Response the Symfony response - */ - public function projectIdDeleteAction(Request $request, $id) - { - // Handle authentication - // Authentication 'PandaAuth' required - // HTTP basic authentication required - $securityPandaAuth = $request->headers->get('authorization'); - - // Read out all input parameter values into variables - - // Use the default value if no value was provided - - // Deserialize the input values that needs it - try { - $id = $this->deserialize($id, 'string', 'string'); - } catch (SerializerRuntimeException $exception) { - return $this->createBadRequestResponse($exception->getMessage()); - } - - // Validate the input values - $asserts = []; - $asserts[] = new Assert\NotNull(); - $asserts[] = new Assert\Type('string'); - $asserts[] = new Assert\Regex('/^[a-zA-Z0-9\\-]+$/'); - $response = $this->validate($id, $asserts); - if ($response instanceof Response) { - return $response; - } - - try { - $handler = $this->getApiHandler(); - - // Set authentication method 'PandaAuth' - $handler->setPandaAuth($securityPandaAuth); - - // Make the call to the business logic - $responseCode = 204; - $responseHeaders = []; - $result = $handler->projectIdDelete($id, $responseCode, $responseHeaders); - - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } + } + + /** + * Operation projectIdDelete + * + * Delete a project + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function projectIdDeleteAction(Request $request, $id) + { + // Handle authentication + // Authentication 'PandaAuth' required + // HTTP basic authentication required + $securityPandaAuth = $request->headers->get('authorization'); + + // Read out all input parameter values into variables + + // Use the default value if no value was provided + + // Deserialize the input values that needs it + try { + $id = $this->deserialize($id, 'string', 'string'); + } catch (SerializerRuntimeException $exception) { + return $this->createBadRequestResponse($exception->getMessage()); + } + + // Validate the input values + $asserts = []; + $asserts[] = new Assert\NotNull(); + $asserts[] = new Assert\Type("string"); + $asserts[] = new Assert\Regex("/^[a-zA-Z0-9\\-]+$/"); + $response = $this->validate($id, $asserts); + if ($response instanceof Response) { + return $response; + } + + + try { + $handler = $this->getApiHandler(); + + // Set authentication method 'PandaAuth' + $handler->setPandaAuth($securityPandaAuth); + + // Make the call to the business logic + $responseCode = 204; + $responseHeaders = []; + $result = $handler->projectIdDelete($id, $responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 204: $message = 'Project successfully deleted'; break; @@ -206,78 +215,78 @@ public function projectIdDeleteAction(Request $request, $id) break; } - return new Response( + return new Response( '', $responseCode, array_merge( $responseHeaders, [ - 'X-OpenAPI-Message' => $message, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); - } - } - - /** - * Operation projectIdGet. - * - * Get the information of a project - * - * @param Request $request the Symfony request to handle - * @param mixed $id - * - * @return Response the Symfony response - */ - public function projectIdGetAction(Request $request, $id) - { - // Figure out what data format to return to the client - $produces = ['application/json']; - // Figure out what the client accepts - $clientAccepts = $request->headers->has('Accept') ? $request->headers->get('Accept') : '*/*'; - $responseFormat = $this->getOutputFormat($clientAccepts, $produces); - if (null === $responseFormat) { - return new Response('', 406); - } - - // Handle authentication - - // Read out all input parameter values into variables - - // Use the default value if no value was provided - - // Deserialize the input values that needs it - try { - $id = $this->deserialize($id, 'string', 'string'); - } catch (SerializerRuntimeException $exception) { - return $this->createBadRequestResponse($exception->getMessage()); - } - - // Validate the input values - $asserts = []; - $asserts[] = new Assert\NotNull(); - $asserts[] = new Assert\Type('string'); - $asserts[] = new Assert\Regex('/^[a-zA-Z0-9\\-]+$/'); - $response = $this->validate($id, $asserts); - if ($response instanceof Response) { - return $response; - } - - try { - $handler = $this->getApiHandler(); - - // Make the call to the business logic - $responseCode = 200; - $responseHeaders = []; - $result = $handler->projectIdGet($id, $responseCode, $responseHeaders); - - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } + } + + /** + * Operation projectIdGet + * + * Get the information of a project + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function projectIdGetAction(Request $request, $id) + { + // Figure out what data format to return to the client + $produces = ['application/json']; + // Figure out what the client accepts + $clientAccepts = $request->headers->has('Accept')?$request->headers->get('Accept'):'*/*'; + $responseFormat = $this->getOutputFormat($clientAccepts, $produces); + if ($responseFormat === null) { + return new Response('', 406); + } + + // Handle authentication + + // Read out all input parameter values into variables + + // Use the default value if no value was provided + + // Deserialize the input values that needs it + try { + $id = $this->deserialize($id, 'string', 'string'); + } catch (SerializerRuntimeException $exception) { + return $this->createBadRequestResponse($exception->getMessage()); + } + + // Validate the input values + $asserts = []; + $asserts[] = new Assert\NotNull(); + $asserts[] = new Assert\Type("string"); + $asserts[] = new Assert\Regex("/^[a-zA-Z0-9\\-]+$/"); + $response = $this->validate($id, $asserts); + if ($response instanceof Response) { + return $response; + } + + + try { + $handler = $this->getApiHandler(); + + + // Make the call to the business logic + $responseCode = 200; + $responseHeaders = []; + $result = $handler->projectIdGet($id, $responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 200: $message = 'OK'; break; @@ -292,111 +301,110 @@ public function projectIdGetAction(Request $request, $id) break; } - return new Response( - null !== $result ? $this->serialize($result, $responseFormat) : '', + return new Response( + $result !== null ?$this->serialize($result, $responseFormat):'', $responseCode, array_merge( $responseHeaders, [ - 'Content-Type' => $responseFormat, - 'X-OpenAPI-Message' => $message, + 'Content-Type' => $responseFormat, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); - } - } - - /** - * Operation projectIdPut. - * - * Update details of a project - * - * @param Request $request the Symfony request to handle - * @param mixed $id - * - * @return Response the Symfony response - */ - public function projectIdPutAction(Request $request, $id) - { - // Make sure that the client is providing something that we can consume - $consumes = ['application/json']; - if (!static::isContentTypeAllowed($request, $consumes)) { - // We can't consume the content that the client is sending us - return new Response('', 415); - } - - // Figure out what data format to return to the client - $produces = ['application/json']; - // Figure out what the client accepts - $clientAccepts = $request->headers->has('Accept') ? $request->headers->get('Accept') : '*/*'; - $responseFormat = $this->getOutputFormat($clientAccepts, $produces); - if (null === $responseFormat) { - return new Response('', 406); - } - - // Handle authentication - // Authentication 'PandaAuth' required - // HTTP basic authentication required - $securityPandaAuth = $request->headers->get('authorization'); - - // Read out all input parameter values into variables - $accept_language = $request->headers->get('Accept-Language'); - $update_project_request = $request->getContent(); - - // Use the default value if no value was provided - - // Deserialize the input values that needs it - try { - $id = $this->deserialize($id, 'string', 'string'); - $inputFormat = $request->getMimeType($request->getContentType()); - $update_project_request = $this->deserialize($update_project_request, 'OpenAPI\Server\Model\UpdateProjectRequest', $inputFormat); - $accept_language = $this->deserialize($accept_language, 'string', 'string'); - } catch (SerializerRuntimeException $exception) { - return $this->createBadRequestResponse($exception->getMessage()); - } - - // Validate the input values - $asserts = []; - $asserts[] = new Assert\NotNull(); - $asserts[] = new Assert\Type('string'); - $asserts[] = new Assert\Regex('/^[a-zA-Z0-9\\-]+$/'); - $response = $this->validate($id, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\NotNull(); - $asserts[] = new Assert\Type('OpenAPI\\Server\\Model\\UpdateProjectRequest'); - $asserts[] = new Assert\Valid(); - $response = $this->validate($update_project_request, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('string'); - $response = $this->validate($accept_language, $asserts); - if ($response instanceof Response) { - return $response; - } - - try { - $handler = $this->getApiHandler(); - - // Set authentication method 'PandaAuth' - $handler->setPandaAuth($securityPandaAuth); - - // Make the call to the business logic - $responseCode = 200; - $responseHeaders = []; - $result = $handler->projectIdPut($id, $update_project_request, $accept_language, $responseCode, $responseHeaders); - - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } + } + + /** + * Operation projectIdPut + * + * Update details of a project + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function projectIdPutAction(Request $request, $id) + { + // Make sure that the client is providing something that we can consume + $consumes = ['application/json']; + if (!static::isContentTypeAllowed($request, $consumes)) { + // We can't consume the content that the client is sending us + return new Response('', 415); + } + + // Figure out what data format to return to the client + $produces = ['application/json']; + // Figure out what the client accepts + $clientAccepts = $request->headers->has('Accept')?$request->headers->get('Accept'):'*/*'; + $responseFormat = $this->getOutputFormat($clientAccepts, $produces); + if ($responseFormat === null) { + return new Response('', 406); + } + + // Handle authentication + // Authentication 'PandaAuth' required + // HTTP basic authentication required + $securityPandaAuth = $request->headers->get('authorization'); + + // Read out all input parameter values into variables + $accept_language = $request->headers->get('Accept-Language'); + $update_project_request = $request->getContent(); + + // Use the default value if no value was provided + + // Deserialize the input values that needs it + try { + $id = $this->deserialize($id, 'string', 'string'); + $inputFormat = $request->getMimeType($request->getContentType()); + $update_project_request = $this->deserialize($update_project_request, 'OpenAPI\Server\Model\UpdateProjectRequest', $inputFormat); + $accept_language = $this->deserialize($accept_language, 'string', 'string'); + } catch (SerializerRuntimeException $exception) { + return $this->createBadRequestResponse($exception->getMessage()); + } + + // Validate the input values + $asserts = []; + $asserts[] = new Assert\NotNull(); + $asserts[] = new Assert\Type("string"); + $asserts[] = new Assert\Regex("/^[a-zA-Z0-9\\-]+$/"); + $response = $this->validate($id, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\NotNull(); + $asserts[] = new Assert\Type("OpenAPI\Server\Model\UpdateProjectRequest"); + $asserts[] = new Assert\Valid(); + $response = $this->validate($update_project_request, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("string"); + $response = $this->validate($accept_language, $asserts); + if ($response instanceof Response) { + return $response; + } + + + try { + $handler = $this->getApiHandler(); + + // Set authentication method 'PandaAuth' + $handler->setPandaAuth($securityPandaAuth); + + // Make the call to the business logic + $responseCode = 200; + $responseHeaders = []; + $result = $handler->projectIdPut($id, $update_project_request, $accept_language, $responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 204: $message = 'Project successfully updated'; break; @@ -420,140 +428,140 @@ public function projectIdPutAction(Request $request, $id) break; } - return new Response( - null !== $result ? $this->serialize($result, $responseFormat) : '', + return new Response( + $result !== null ?$this->serialize($result, $responseFormat):'', $responseCode, array_merge( $responseHeaders, [ - 'Content-Type' => $responseFormat, - 'X-OpenAPI-Message' => $message, + 'Content-Type' => $responseFormat, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); - } - } - - /** - * Operation projectIdRecommendationsGet. - * - * Get recommended projects related to the specific project - * - * @param Request $request the Symfony request to handle - * @param mixed $id - * - * @return Response the Symfony response - */ - public function projectIdRecommendationsGetAction(Request $request, $id) - { - // Figure out what data format to return to the client - $produces = ['application/json']; - // Figure out what the client accepts - $clientAccepts = $request->headers->has('Accept') ? $request->headers->get('Accept') : '*/*'; - $responseFormat = $this->getOutputFormat($clientAccepts, $produces); - if (null === $responseFormat) { - return new Response('', 406); - } - - // Handle authentication - - // Read out all input parameter values into variables - $category = $request->query->get('category'); - $max_version = $request->query->get('max_version'); - $limit = $request->query->get('limit'); - $offset = $request->query->get('offset'); - $attributes = $request->query->get('attributes'); - $flavor = $request->query->get('flavor'); - $accept_language = $request->headers->get('Accept-Language'); - - // Use the default value if no value was provided - - // Deserialize the input values that needs it - try { - $id = $this->deserialize($id, 'string', 'string'); - $category = $this->deserialize($category, 'string', 'string'); - $accept_language = $this->deserialize($accept_language, 'string', 'string'); - $max_version = $this->deserialize($max_version, 'string', 'string'); - $limit = $this->deserialize($limit, 'int', 'string'); - $offset = $this->deserialize($offset, 'int', 'string'); - $attributes = $this->deserialize($attributes, 'string', 'string'); - $flavor = $this->deserialize($flavor, 'string', 'string'); - } catch (SerializerRuntimeException $exception) { - return $this->createBadRequestResponse($exception->getMessage()); - } - - // Validate the input values - $asserts = []; - $asserts[] = new Assert\NotNull(); - $asserts[] = new Assert\Type('string'); - $asserts[] = new Assert\Regex('/^[a-zA-Z0-9\\-]+$/'); - $response = $this->validate($id, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\NotNull(); - $asserts[] = new Assert\Choice(['similar', 'also_downloaded', 'more_from_user']); - $asserts[] = new Assert\Type('string'); - $response = $this->validate($category, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('string'); - $response = $this->validate($accept_language, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('string'); - $response = $this->validate($max_version, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('int'); - $asserts[] = new Assert\GreaterThanOrEqual(0); - $response = $this->validate($limit, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('int'); - $asserts[] = new Assert\GreaterThanOrEqual(0); - $response = $this->validate($offset, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('string'); - $asserts[] = new Assert\Regex('/^[a-zA-Z0-9\\-_]+(,[a-zA-Z0-9\\-_]+)*$/'); - $response = $this->validate($attributes, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('string'); - $response = $this->validate($flavor, $asserts); - if ($response instanceof Response) { - return $response; - } - - try { - $handler = $this->getApiHandler(); - - // Make the call to the business logic - $responseCode = 200; - $responseHeaders = []; - $result = $handler->projectIdRecommendationsGet($id, $category, $accept_language, $max_version, $limit, $offset, $attributes, $flavor, $responseCode, $responseHeaders); - - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } + } + + /** + * Operation projectIdRecommendationsGet + * + * Get recommended projects related to the specific project + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function projectIdRecommendationsGetAction(Request $request, $id) + { + // Figure out what data format to return to the client + $produces = ['application/json']; + // Figure out what the client accepts + $clientAccepts = $request->headers->has('Accept')?$request->headers->get('Accept'):'*/*'; + $responseFormat = $this->getOutputFormat($clientAccepts, $produces); + if ($responseFormat === null) { + return new Response('', 406); + } + + // Handle authentication + + // Read out all input parameter values into variables + $category = $request->query->get('category'); + $max_version = $request->query->get('max_version'); + $limit = $request->query->get('limit'); + $offset = $request->query->get('offset'); + $attributes = $request->query->get('attributes'); + $flavor = $request->query->get('flavor'); + $accept_language = $request->headers->get('Accept-Language'); + + // Use the default value if no value was provided + + // Deserialize the input values that needs it + try { + $id = $this->deserialize($id, 'string', 'string'); + $category = $this->deserialize($category, 'string', 'string'); + $accept_language = $this->deserialize($accept_language, 'string', 'string'); + $max_version = $this->deserialize($max_version, 'string', 'string'); + $limit = $this->deserialize($limit, 'int', 'string'); + $offset = $this->deserialize($offset, 'int', 'string'); + $attributes = $this->deserialize($attributes, 'string', 'string'); + $flavor = $this->deserialize($flavor, 'string', 'string'); + } catch (SerializerRuntimeException $exception) { + return $this->createBadRequestResponse($exception->getMessage()); + } + + // Validate the input values + $asserts = []; + $asserts[] = new Assert\NotNull(); + $asserts[] = new Assert\Type("string"); + $asserts[] = new Assert\Regex("/^[a-zA-Z0-9\\-]+$/"); + $response = $this->validate($id, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\NotNull(); + $asserts[] = new Assert\Choice([ "similar", "also_downloaded", "more_from_user" ]); + $asserts[] = new Assert\Type("string"); + $response = $this->validate($category, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("string"); + $response = $this->validate($accept_language, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("string"); + $response = $this->validate($max_version, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("int"); + $asserts[] = new Assert\GreaterThanOrEqual(0); + $response = $this->validate($limit, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("int"); + $asserts[] = new Assert\GreaterThanOrEqual(0); + $response = $this->validate($offset, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("string"); + $asserts[] = new Assert\Regex("/^[a-zA-Z0-9\\-_]+(,[a-zA-Z0-9\\-_]+)*$/"); + $response = $this->validate($attributes, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("string"); + $response = $this->validate($flavor, $asserts); + if ($response instanceof Response) { + return $response; + } + + + try { + $handler = $this->getApiHandler(); + + + // Make the call to the business logic + $responseCode = 200; + $responseHeaders = []; + $result = $handler->projectIdRecommendationsGet($id, $category, $accept_language, $max_version, $limit, $offset, $attributes, $flavor, $responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 200: $message = 'OK'; break; @@ -565,94 +573,93 @@ public function projectIdRecommendationsGetAction(Request $request, $id) break; } - return new Response( - null !== $result ? $this->serialize($result, $responseFormat) : '', + return new Response( + $result !== null ?$this->serialize($result, $responseFormat):'', $responseCode, array_merge( $responseHeaders, [ - 'Content-Type' => $responseFormat, - 'X-OpenAPI-Message' => $message, + 'Content-Type' => $responseFormat, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); - } - } - - /** - * Operation projectIdReportPost. - * - * Report a project -- StatusCode: 501 - Not yet implemented - * - * @param Request $request the Symfony request to handle - * @param mixed $id - * - * @return Response the Symfony response - */ - public function projectIdReportPostAction(Request $request, $id) - { - // Make sure that the client is providing something that we can consume - $consumes = ['application/json']; - if (!static::isContentTypeAllowed($request, $consumes)) { - // We can't consume the content that the client is sending us - return new Response('', 415); - } - - // Handle authentication - // Authentication 'PandaAuth' required - // HTTP basic authentication required - $securityPandaAuth = $request->headers->get('authorization'); - - // Read out all input parameter values into variables - $project_report_request = $request->getContent(); - - // Use the default value if no value was provided - - // Deserialize the input values that needs it - try { - $id = $this->deserialize($id, 'string', 'string'); - $inputFormat = $request->getMimeType($request->getContentType()); - $project_report_request = $this->deserialize($project_report_request, 'OpenAPI\Server\Model\ProjectReportRequest', $inputFormat); - } catch (SerializerRuntimeException $exception) { - return $this->createBadRequestResponse($exception->getMessage()); - } - - // Validate the input values - $asserts = []; - $asserts[] = new Assert\NotNull(); - $asserts[] = new Assert\Type('string'); - $asserts[] = new Assert\Regex('/^[a-zA-Z0-9\\-]+$/'); - $response = $this->validate($id, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\NotNull(); - $asserts[] = new Assert\Type('OpenAPI\\Server\\Model\\ProjectReportRequest'); - $asserts[] = new Assert\Valid(); - $response = $this->validate($project_report_request, $asserts); - if ($response instanceof Response) { - return $response; - } - - try { - $handler = $this->getApiHandler(); - - // Set authentication method 'PandaAuth' - $handler->setPandaAuth($securityPandaAuth); - - // Make the call to the business logic - $responseCode = 204; - $responseHeaders = []; - $result = $handler->projectIdReportPost($id, $project_report_request, $responseCode, $responseHeaders); - - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } + } + + /** + * Operation projectIdReportPost + * + * Report a project -- StatusCode: 501 - Not yet implemented + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function projectIdReportPostAction(Request $request, $id) + { + // Make sure that the client is providing something that we can consume + $consumes = ['application/json']; + if (!static::isContentTypeAllowed($request, $consumes)) { + // We can't consume the content that the client is sending us + return new Response('', 415); + } + + // Handle authentication + // Authentication 'PandaAuth' required + // HTTP basic authentication required + $securityPandaAuth = $request->headers->get('authorization'); + + // Read out all input parameter values into variables + $project_report_request = $request->getContent(); + + // Use the default value if no value was provided + + // Deserialize the input values that needs it + try { + $id = $this->deserialize($id, 'string', 'string'); + $inputFormat = $request->getMimeType($request->getContentType()); + $project_report_request = $this->deserialize($project_report_request, 'OpenAPI\Server\Model\ProjectReportRequest', $inputFormat); + } catch (SerializerRuntimeException $exception) { + return $this->createBadRequestResponse($exception->getMessage()); + } + + // Validate the input values + $asserts = []; + $asserts[] = new Assert\NotNull(); + $asserts[] = new Assert\Type("string"); + $asserts[] = new Assert\Regex("/^[a-zA-Z0-9\\-]+$/"); + $response = $this->validate($id, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\NotNull(); + $asserts[] = new Assert\Type("OpenAPI\Server\Model\ProjectReportRequest"); + $asserts[] = new Assert\Valid(); + $response = $this->validate($project_report_request, $asserts); + if ($response instanceof Response) { + return $response; + } + + + try { + $handler = $this->getApiHandler(); + + // Set authentication method 'PandaAuth' + $handler->setPandaAuth($securityPandaAuth); + + // Make the call to the business logic + $responseCode = 204; + $responseHeaders = []; + $result = $handler->projectIdReportPost($id, $project_report_request, $responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 204: $message = 'Project successfully reported'; break; @@ -670,92 +677,93 @@ public function projectIdReportPostAction(Request $request, $id) break; } - return new Response( + return new Response( '', $responseCode, array_merge( $responseHeaders, [ - 'X-OpenAPI-Message' => $message, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); - } - } - - /** - * Operation projectsCategoriesGet. - * - * Get default number of projects per category (Most downloaded etc.) - * - * @param Request $request the Symfony request to handle - * - * @return Response the Symfony response - */ - public function projectsCategoriesGetAction(Request $request) - { - // Figure out what data format to return to the client - $produces = ['application/json']; - // Figure out what the client accepts - $clientAccepts = $request->headers->has('Accept') ? $request->headers->get('Accept') : '*/*'; - $responseFormat = $this->getOutputFormat($clientAccepts, $produces); - if (null === $responseFormat) { - return new Response('', 406); - } - - // Handle authentication - - // Read out all input parameter values into variables - $max_version = $request->query->get('max_version'); - $flavor = $request->query->get('flavor'); - $accept_language = $request->headers->get('Accept-Language'); - - // Use the default value if no value was provided - - // Deserialize the input values that needs it - try { - $max_version = $this->deserialize($max_version, 'string', 'string'); - $flavor = $this->deserialize($flavor, 'string', 'string'); - $accept_language = $this->deserialize($accept_language, 'string', 'string'); - } catch (SerializerRuntimeException $exception) { - return $this->createBadRequestResponse($exception->getMessage()); - } - - // Validate the input values - $asserts = []; - $asserts[] = new Assert\Type('string'); - $response = $this->validate($max_version, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('string'); - $response = $this->validate($flavor, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('string'); - $response = $this->validate($accept_language, $asserts); - if ($response instanceof Response) { - return $response; - } - - try { - $handler = $this->getApiHandler(); - - // Make the call to the business logic - $responseCode = 200; - $responseHeaders = []; - $result = $handler->projectsCategoriesGet($max_version, $flavor, $accept_language, $responseCode, $responseHeaders); - - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } + } + + /** + * Operation projectsCategoriesGet + * + * Get default number of projects per category (Most downloaded etc.) + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function projectsCategoriesGetAction(Request $request) + { + // Figure out what data format to return to the client + $produces = ['application/json']; + // Figure out what the client accepts + $clientAccepts = $request->headers->has('Accept')?$request->headers->get('Accept'):'*/*'; + $responseFormat = $this->getOutputFormat($clientAccepts, $produces); + if ($responseFormat === null) { + return new Response('', 406); + } + + // Handle authentication + + // Read out all input parameter values into variables + $max_version = $request->query->get('max_version'); + $flavor = $request->query->get('flavor'); + $accept_language = $request->headers->get('Accept-Language'); + + // Use the default value if no value was provided + + // Deserialize the input values that needs it + try { + $max_version = $this->deserialize($max_version, 'string', 'string'); + $flavor = $this->deserialize($flavor, 'string', 'string'); + $accept_language = $this->deserialize($accept_language, 'string', 'string'); + } catch (SerializerRuntimeException $exception) { + return $this->createBadRequestResponse($exception->getMessage()); + } + + // Validate the input values + $asserts = []; + $asserts[] = new Assert\Type("string"); + $response = $this->validate($max_version, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("string"); + $response = $this->validate($flavor, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("string"); + $response = $this->validate($accept_language, $asserts); + if ($response instanceof Response) { + return $response; + } + + + try { + $handler = $this->getApiHandler(); + + + // Make the call to the business logic + $responseCode = 200; + $responseHeaders = []; + $result = $handler->projectsCategoriesGet($max_version, $flavor, $accept_language, $responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 200: $message = 'OK'; break; @@ -767,77 +775,78 @@ public function projectsCategoriesGetAction(Request $request) break; } - return new Response( - null !== $result ? $this->serialize($result, $responseFormat) : '', + return new Response( + $result !== null ?$this->serialize($result, $responseFormat):'', $responseCode, array_merge( $responseHeaders, [ - 'Content-Type' => $responseFormat, - 'X-OpenAPI-Message' => $message, + 'Content-Type' => $responseFormat, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); - } - } - - /** - * Operation projectsExtensionsGet. - * - * Get all possible project extensions. Extensions are automatically added to projects based on their bricks. - * - * @param Request $request the Symfony request to handle - * - * @return Response the Symfony response - */ - public function projectsExtensionsGetAction(Request $request) - { - // Figure out what data format to return to the client - $produces = ['application/json']; - // Figure out what the client accepts - $clientAccepts = $request->headers->has('Accept') ? $request->headers->get('Accept') : '*/*'; - $responseFormat = $this->getOutputFormat($clientAccepts, $produces); - if (null === $responseFormat) { - return new Response('', 406); - } - - // Handle authentication - - // Read out all input parameter values into variables - $accept_language = $request->headers->get('Accept-Language'); - - // Use the default value if no value was provided - - // Deserialize the input values that needs it - try { - $accept_language = $this->deserialize($accept_language, 'string', 'string'); - } catch (SerializerRuntimeException $exception) { - return $this->createBadRequestResponse($exception->getMessage()); - } - - // Validate the input values - $asserts = []; - $asserts[] = new Assert\Type('string'); - $response = $this->validate($accept_language, $asserts); - if ($response instanceof Response) { - return $response; - } - - try { - $handler = $this->getApiHandler(); - - // Make the call to the business logic - $responseCode = 200; - $responseHeaders = []; - $result = $handler->projectsExtensionsGet($accept_language, $responseCode, $responseHeaders); - - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } + } + + /** + * Operation projectsExtensionsGet + * + * Get all possible project extensions. Extensions are automatically added to projects based on their bricks. + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function projectsExtensionsGetAction(Request $request) + { + // Figure out what data format to return to the client + $produces = ['application/json']; + // Figure out what the client accepts + $clientAccepts = $request->headers->has('Accept')?$request->headers->get('Accept'):'*/*'; + $responseFormat = $this->getOutputFormat($clientAccepts, $produces); + if ($responseFormat === null) { + return new Response('', 406); + } + + // Handle authentication + + // Read out all input parameter values into variables + $accept_language = $request->headers->get('Accept-Language'); + + // Use the default value if no value was provided + + // Deserialize the input values that needs it + try { + $accept_language = $this->deserialize($accept_language, 'string', 'string'); + } catch (SerializerRuntimeException $exception) { + return $this->createBadRequestResponse($exception->getMessage()); + } + + // Validate the input values + $asserts = []; + $asserts[] = new Assert\Type("string"); + $response = $this->validate($accept_language, $asserts); + if ($response instanceof Response) { + return $response; + } + + + try { + $handler = $this->getApiHandler(); + + + // Make the call to the business logic + $responseCode = 200; + $responseHeaders = []; + $result = $handler->projectsExtensionsGet($accept_language, $responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 200: $message = 'OK'; break; @@ -846,121 +855,122 @@ public function projectsExtensionsGetAction(Request $request) break; } - return new Response( - null !== $result ? $this->serialize($result, $responseFormat) : '', + return new Response( + $result !== null ?$this->serialize($result, $responseFormat):'', $responseCode, array_merge( $responseHeaders, [ - 'Content-Type' => $responseFormat, - 'X-OpenAPI-Message' => $message, + 'Content-Type' => $responseFormat, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); - } - } - - /** - * Operation projectsFeaturedGet. - * - * Get the currently featured projects - * - * @param Request $request the Symfony request to handle - * - * @return Response the Symfony response - */ - public function projectsFeaturedGetAction(Request $request) - { - // Figure out what data format to return to the client - $produces = ['application/json']; - // Figure out what the client accepts - $clientAccepts = $request->headers->has('Accept') ? $request->headers->get('Accept') : '*/*'; - $responseFormat = $this->getOutputFormat($clientAccepts, $produces); - if (null === $responseFormat) { - return new Response('', 406); - } - - // Handle authentication - - // Read out all input parameter values into variables - $platform = $request->query->get('platform'); - $max_version = $request->query->get('max_version'); - $limit = $request->query->get('limit'); - $offset = $request->query->get('offset'); - $attributes = $request->query->get('attributes'); - $flavor = $request->query->get('flavor'); - - // Use the default value if no value was provided - - // Deserialize the input values that needs it - try { - $platform = $this->deserialize($platform, 'string', 'string'); - $max_version = $this->deserialize($max_version, 'string', 'string'); - $limit = $this->deserialize($limit, 'int', 'string'); - $offset = $this->deserialize($offset, 'int', 'string'); - $attributes = $this->deserialize($attributes, 'string', 'string'); - $flavor = $this->deserialize($flavor, 'string', 'string'); - } catch (SerializerRuntimeException $exception) { - return $this->createBadRequestResponse($exception->getMessage()); - } - - // Validate the input values - $asserts = []; - $asserts[] = new Assert\Choice(['android', 'ios']); - $asserts[] = new Assert\Type('string'); - $response = $this->validate($platform, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('string'); - $response = $this->validate($max_version, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('int'); - $asserts[] = new Assert\GreaterThanOrEqual(0); - $response = $this->validate($limit, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('int'); - $asserts[] = new Assert\GreaterThanOrEqual(0); - $response = $this->validate($offset, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('string'); - $asserts[] = new Assert\Regex('/^[a-zA-Z0-9\\-_]+(,[a-zA-Z0-9\\-_]+)*$/'); - $response = $this->validate($attributes, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('string'); - $response = $this->validate($flavor, $asserts); - if ($response instanceof Response) { - return $response; - } - - try { - $handler = $this->getApiHandler(); - - // Make the call to the business logic - $responseCode = 200; - $responseHeaders = []; - $result = $handler->projectsFeaturedGet($platform, $max_version, $limit, $offset, $attributes, $flavor, $responseCode, $responseHeaders); - - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } + } + + /** + * Operation projectsFeaturedGet + * + * Get the currently featured projects + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function projectsFeaturedGetAction(Request $request) + { + // Figure out what data format to return to the client + $produces = ['application/json']; + // Figure out what the client accepts + $clientAccepts = $request->headers->has('Accept')?$request->headers->get('Accept'):'*/*'; + $responseFormat = $this->getOutputFormat($clientAccepts, $produces); + if ($responseFormat === null) { + return new Response('', 406); + } + + // Handle authentication + + // Read out all input parameter values into variables + $platform = $request->query->get('platform'); + $max_version = $request->query->get('max_version'); + $limit = $request->query->get('limit'); + $offset = $request->query->get('offset'); + $attributes = $request->query->get('attributes'); + $flavor = $request->query->get('flavor'); + + // Use the default value if no value was provided + + // Deserialize the input values that needs it + try { + $platform = $this->deserialize($platform, 'string', 'string'); + $max_version = $this->deserialize($max_version, 'string', 'string'); + $limit = $this->deserialize($limit, 'int', 'string'); + $offset = $this->deserialize($offset, 'int', 'string'); + $attributes = $this->deserialize($attributes, 'string', 'string'); + $flavor = $this->deserialize($flavor, 'string', 'string'); + } catch (SerializerRuntimeException $exception) { + return $this->createBadRequestResponse($exception->getMessage()); + } + + // Validate the input values + $asserts = []; + $asserts[] = new Assert\Choice([ "android", "ios" ]); + $asserts[] = new Assert\Type("string"); + $response = $this->validate($platform, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("string"); + $response = $this->validate($max_version, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("int"); + $asserts[] = new Assert\GreaterThanOrEqual(0); + $response = $this->validate($limit, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("int"); + $asserts[] = new Assert\GreaterThanOrEqual(0); + $response = $this->validate($offset, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("string"); + $asserts[] = new Assert\Regex("/^[a-zA-Z0-9\\-_]+(,[a-zA-Z0-9\\-_]+)*$/"); + $response = $this->validate($attributes, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("string"); + $response = $this->validate($flavor, $asserts); + if ($response instanceof Response) { + return $response; + } + + + try { + $handler = $this->getApiHandler(); + + + // Make the call to the business logic + $responseCode = 200; + $responseHeaders = []; + $result = $handler->projectsFeaturedGet($platform, $max_version, $limit, $offset, $attributes, $flavor, $responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 200: $message = 'OK'; break; @@ -972,130 +982,131 @@ public function projectsFeaturedGetAction(Request $request) break; } - return new Response( - null !== $result ? $this->serialize($result, $responseFormat) : '', + return new Response( + $result !== null ?$this->serialize($result, $responseFormat):'', $responseCode, array_merge( $responseHeaders, [ - 'Content-Type' => $responseFormat, - 'X-OpenAPI-Message' => $message, + 'Content-Type' => $responseFormat, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); - } - } - - /** - * Operation projectsGet. - * - * Get projects - * - * @param Request $request the Symfony request to handle - * - * @return Response the Symfony response - */ - public function projectsGetAction(Request $request) - { - // Figure out what data format to return to the client - $produces = ['application/json']; - // Figure out what the client accepts - $clientAccepts = $request->headers->has('Accept') ? $request->headers->get('Accept') : '*/*'; - $responseFormat = $this->getOutputFormat($clientAccepts, $produces); - if (null === $responseFormat) { - return new Response('', 406); - } - - // Handle authentication - - // Read out all input parameter values into variables - $category = $request->query->get('category'); - $max_version = $request->query->get('max_version'); - $limit = $request->query->get('limit'); - $offset = $request->query->get('offset'); - $attributes = $request->query->get('attributes'); - $flavor = $request->query->get('flavor'); - $accept_language = $request->headers->get('Accept-Language'); - - // Use the default value if no value was provided - - // Deserialize the input values that needs it - try { - $category = $this->deserialize($category, 'string', 'string'); - $accept_language = $this->deserialize($accept_language, 'string', 'string'); - $max_version = $this->deserialize($max_version, 'string', 'string'); - $limit = $this->deserialize($limit, 'int', 'string'); - $offset = $this->deserialize($offset, 'int', 'string'); - $attributes = $this->deserialize($attributes, 'string', 'string'); - $flavor = $this->deserialize($flavor, 'string', 'string'); - } catch (SerializerRuntimeException $exception) { - return $this->createBadRequestResponse($exception->getMessage()); - } - - // Validate the input values - $asserts = []; - $asserts[] = new Assert\NotNull(); - $asserts[] = new Assert\Choice(['recent', 'random', 'most_viewed', 'most_downloaded', 'example', 'scratch', 'recommended']); - $asserts[] = new Assert\Type('string'); - $response = $this->validate($category, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('string'); - $response = $this->validate($accept_language, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('string'); - $response = $this->validate($max_version, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('int'); - $asserts[] = new Assert\GreaterThanOrEqual(0); - $response = $this->validate($limit, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('int'); - $asserts[] = new Assert\GreaterThanOrEqual(0); - $response = $this->validate($offset, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('string'); - $asserts[] = new Assert\Regex('/^[a-zA-Z0-9\\-_]+(,[a-zA-Z0-9\\-_]+)*$/'); - $response = $this->validate($attributes, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('string'); - $response = $this->validate($flavor, $asserts); - if ($response instanceof Response) { - return $response; - } - - try { - $handler = $this->getApiHandler(); - - // Make the call to the business logic - $responseCode = 200; - $responseHeaders = []; - $result = $handler->projectsGet($category, $accept_language, $max_version, $limit, $offset, $attributes, $flavor, $responseCode, $responseHeaders); - - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } + } + + /** + * Operation projectsGet + * + * Get projects + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function projectsGetAction(Request $request) + { + // Figure out what data format to return to the client + $produces = ['application/json']; + // Figure out what the client accepts + $clientAccepts = $request->headers->has('Accept')?$request->headers->get('Accept'):'*/*'; + $responseFormat = $this->getOutputFormat($clientAccepts, $produces); + if ($responseFormat === null) { + return new Response('', 406); + } + + // Handle authentication + + // Read out all input parameter values into variables + $category = $request->query->get('category'); + $max_version = $request->query->get('max_version'); + $limit = $request->query->get('limit'); + $offset = $request->query->get('offset'); + $attributes = $request->query->get('attributes'); + $flavor = $request->query->get('flavor'); + $accept_language = $request->headers->get('Accept-Language'); + + // Use the default value if no value was provided + + // Deserialize the input values that needs it + try { + $category = $this->deserialize($category, 'string', 'string'); + $accept_language = $this->deserialize($accept_language, 'string', 'string'); + $max_version = $this->deserialize($max_version, 'string', 'string'); + $limit = $this->deserialize($limit, 'int', 'string'); + $offset = $this->deserialize($offset, 'int', 'string'); + $attributes = $this->deserialize($attributes, 'string', 'string'); + $flavor = $this->deserialize($flavor, 'string', 'string'); + } catch (SerializerRuntimeException $exception) { + return $this->createBadRequestResponse($exception->getMessage()); + } + + // Validate the input values + $asserts = []; + $asserts[] = new Assert\NotNull(); + $asserts[] = new Assert\Choice([ "recent", "random", "most_viewed", "most_downloaded", "example", "scratch", "recommended" ]); + $asserts[] = new Assert\Type("string"); + $response = $this->validate($category, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("string"); + $response = $this->validate($accept_language, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("string"); + $response = $this->validate($max_version, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("int"); + $asserts[] = new Assert\GreaterThanOrEqual(0); + $response = $this->validate($limit, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("int"); + $asserts[] = new Assert\GreaterThanOrEqual(0); + $response = $this->validate($offset, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("string"); + $asserts[] = new Assert\Regex("/^[a-zA-Z0-9\\-_]+(,[a-zA-Z0-9\\-_]+)*$/"); + $response = $this->validate($attributes, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("string"); + $response = $this->validate($flavor, $asserts); + if ($response instanceof Response) { + return $response; + } + + + try { + $handler = $this->getApiHandler(); + + + // Make the call to the business logic + $responseCode = 200; + $responseHeaders = []; + $result = $handler->projectsGet($category, $accept_language, $max_version, $limit, $offset, $attributes, $flavor, $responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 200: $message = 'OK'; break; @@ -1107,116 +1118,116 @@ public function projectsGetAction(Request $request) break; } - return new Response( - null !== $result ? $this->serialize($result, $responseFormat) : '', + return new Response( + $result !== null ?$this->serialize($result, $responseFormat):'', $responseCode, array_merge( $responseHeaders, [ - 'Content-Type' => $responseFormat, - 'X-OpenAPI-Message' => $message, + 'Content-Type' => $responseFormat, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); - } - } - - /** - * Operation projectsPost. - * - * Upload a catrobat project - * - * @param Request $request the Symfony request to handle - * - * @return Response the Symfony response - */ - public function projectsPostAction(Request $request) - { - // Figure out what data format to return to the client - $produces = ['application/json']; - // Figure out what the client accepts - $clientAccepts = $request->headers->has('Accept') ? $request->headers->get('Accept') : '*/*'; - $responseFormat = $this->getOutputFormat($clientAccepts, $produces); - if (null === $responseFormat) { - return new Response('', 406); - } - - // Handle authentication - // Authentication 'PandaAuth' required - // HTTP basic authentication required - $securityPandaAuth = $request->headers->get('authorization'); - - // Read out all input parameter values into variables - $accept_language = $request->headers->get('Accept-Language'); - $checksum = $request->request->get('checksum'); - $file = $request->files->get('file'); - $flavor = $request->request->get('flavor'); - $private = $request->request->get('private'); - - // Use the default value if no value was provided - - // Deserialize the input values that needs it - try { - $checksum = $this->deserialize($checksum, 'string', 'string'); - $accept_language = $this->deserialize($accept_language, 'string', 'string'); - $flavor = $this->deserialize($flavor, 'string', 'string'); - $private = $this->deserialize($private, 'bool', 'string'); - } catch (SerializerRuntimeException $exception) { - return $this->createBadRequestResponse($exception->getMessage()); - } - - // Validate the input values - $asserts = []; - $asserts[] = new Assert\NotNull(); - $asserts[] = new Assert\Type('string'); - $response = $this->validate($checksum, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\NotNull(); - $asserts[] = new Assert\File(); - $response = $this->validate($file, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('string'); - $response = $this->validate($accept_language, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('string'); - $response = $this->validate($flavor, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('bool'); - $response = $this->validate($private, $asserts); - if ($response instanceof Response) { - return $response; - } - - try { - $handler = $this->getApiHandler(); - - // Set authentication method 'PandaAuth' - $handler->setPandaAuth($securityPandaAuth); - - // Make the call to the business logic - $responseCode = 200; - $responseHeaders = []; - $result = $handler->projectsPost($checksum, $file, $accept_language, $flavor, $private, $responseCode, $responseHeaders); - - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } + } + + /** + * Operation projectsPost + * + * Upload a catrobat project + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function projectsPostAction(Request $request) + { + // Figure out what data format to return to the client + $produces = ['application/json']; + // Figure out what the client accepts + $clientAccepts = $request->headers->has('Accept')?$request->headers->get('Accept'):'*/*'; + $responseFormat = $this->getOutputFormat($clientAccepts, $produces); + if ($responseFormat === null) { + return new Response('', 406); + } + + // Handle authentication + // Authentication 'PandaAuth' required + // HTTP basic authentication required + $securityPandaAuth = $request->headers->get('authorization'); + + // Read out all input parameter values into variables + $accept_language = $request->headers->get('Accept-Language'); + $checksum = $request->request->get('checksum'); + $file = $request->files->get('file'); + $flavor = $request->request->get('flavor'); + $private = $request->request->get('private'); + + // Use the default value if no value was provided + + // Deserialize the input values that needs it + try { + $checksum = $this->deserialize($checksum, 'string', 'string'); + $accept_language = $this->deserialize($accept_language, 'string', 'string'); + $flavor = $this->deserialize($flavor, 'string', 'string'); + $private = $this->deserialize($private, 'bool', 'string'); + } catch (SerializerRuntimeException $exception) { + return $this->createBadRequestResponse($exception->getMessage()); + } + + // Validate the input values + $asserts = []; + $asserts[] = new Assert\NotNull(); + $asserts[] = new Assert\Type("string"); + $response = $this->validate($checksum, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\NotNull(); + $asserts[] = new Assert\File(); + $response = $this->validate($file, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("string"); + $response = $this->validate($accept_language, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("string"); + $response = $this->validate($flavor, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("bool"); + $response = $this->validate($private, $asserts); + if ($response instanceof Response) { + return $response; + } + + + try { + $handler = $this->getApiHandler(); + + // Set authentication method 'PandaAuth' + $handler->setPandaAuth($securityPandaAuth); + + // Make the call to the business logic + $responseCode = 200; + $responseHeaders = []; + $result = $handler->projectsPost($checksum, $file, $accept_language, $flavor, $private, $responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 201: $message = 'Project successfully uploaded'; break; @@ -1237,121 +1248,122 @@ public function projectsPostAction(Request $request) break; } - return new Response( - null !== $result ? $this->serialize($result, $responseFormat) : '', + return new Response( + $result !== null ?$this->serialize($result, $responseFormat):'', $responseCode, array_merge( $responseHeaders, [ - 'Content-Type' => $responseFormat, - 'X-OpenAPI-Message' => $message, + 'Content-Type' => $responseFormat, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); - } - } - - /** - * Operation projectsSearchGet. - * - * Search for projects associated with a keywords - * - * @param Request $request the Symfony request to handle - * - * @return Response the Symfony response - */ - public function projectsSearchGetAction(Request $request) - { - // Figure out what data format to return to the client - $produces = ['application/json']; - // Figure out what the client accepts - $clientAccepts = $request->headers->has('Accept') ? $request->headers->get('Accept') : '*/*'; - $responseFormat = $this->getOutputFormat($clientAccepts, $produces); - if (null === $responseFormat) { - return new Response('', 406); - } - - // Handle authentication - - // Read out all input parameter values into variables - $query = $request->query->get('query'); - $max_version = $request->query->get('max_version'); - $limit = $request->query->get('limit'); - $offset = $request->query->get('offset'); - $attributes = $request->query->get('attributes'); - $flavor = $request->query->get('flavor'); - - // Use the default value if no value was provided - - // Deserialize the input values that needs it - try { - $query = $this->deserialize($query, 'string', 'string'); - $max_version = $this->deserialize($max_version, 'string', 'string'); - $limit = $this->deserialize($limit, 'int', 'string'); - $offset = $this->deserialize($offset, 'int', 'string'); - $attributes = $this->deserialize($attributes, 'string', 'string'); - $flavor = $this->deserialize($flavor, 'string', 'string'); - } catch (SerializerRuntimeException $exception) { - return $this->createBadRequestResponse($exception->getMessage()); - } - - // Validate the input values - $asserts = []; - $asserts[] = new Assert\NotNull(); - $asserts[] = new Assert\Type('string'); - $response = $this->validate($query, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('string'); - $response = $this->validate($max_version, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('int'); - $asserts[] = new Assert\GreaterThanOrEqual(0); - $response = $this->validate($limit, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('int'); - $asserts[] = new Assert\GreaterThanOrEqual(0); - $response = $this->validate($offset, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('string'); - $asserts[] = new Assert\Regex('/^[a-zA-Z0-9\\-_]+(,[a-zA-Z0-9\\-_]+)*$/'); - $response = $this->validate($attributes, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('string'); - $response = $this->validate($flavor, $asserts); - if ($response instanceof Response) { - return $response; - } - - try { - $handler = $this->getApiHandler(); - - // Make the call to the business logic - $responseCode = 200; - $responseHeaders = []; - $result = $handler->projectsSearchGet($query, $max_version, $limit, $offset, $attributes, $flavor, $responseCode, $responseHeaders); - - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } + } + + /** + * Operation projectsSearchGet + * + * Search for projects associated with a keywords + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function projectsSearchGetAction(Request $request) + { + // Figure out what data format to return to the client + $produces = ['application/json']; + // Figure out what the client accepts + $clientAccepts = $request->headers->has('Accept')?$request->headers->get('Accept'):'*/*'; + $responseFormat = $this->getOutputFormat($clientAccepts, $produces); + if ($responseFormat === null) { + return new Response('', 406); + } + + // Handle authentication + + // Read out all input parameter values into variables + $query = $request->query->get('query'); + $max_version = $request->query->get('max_version'); + $limit = $request->query->get('limit'); + $offset = $request->query->get('offset'); + $attributes = $request->query->get('attributes'); + $flavor = $request->query->get('flavor'); + + // Use the default value if no value was provided + + // Deserialize the input values that needs it + try { + $query = $this->deserialize($query, 'string', 'string'); + $max_version = $this->deserialize($max_version, 'string', 'string'); + $limit = $this->deserialize($limit, 'int', 'string'); + $offset = $this->deserialize($offset, 'int', 'string'); + $attributes = $this->deserialize($attributes, 'string', 'string'); + $flavor = $this->deserialize($flavor, 'string', 'string'); + } catch (SerializerRuntimeException $exception) { + return $this->createBadRequestResponse($exception->getMessage()); + } + + // Validate the input values + $asserts = []; + $asserts[] = new Assert\NotNull(); + $asserts[] = new Assert\Type("string"); + $response = $this->validate($query, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("string"); + $response = $this->validate($max_version, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("int"); + $asserts[] = new Assert\GreaterThanOrEqual(0); + $response = $this->validate($limit, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("int"); + $asserts[] = new Assert\GreaterThanOrEqual(0); + $response = $this->validate($offset, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("string"); + $asserts[] = new Assert\Regex("/^[a-zA-Z0-9\\-_]+(,[a-zA-Z0-9\\-_]+)*$/"); + $response = $this->validate($attributes, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("string"); + $response = $this->validate($flavor, $asserts); + if ($response instanceof Response) { + return $response; + } + + + try { + $handler = $this->getApiHandler(); + + + // Make the call to the business logic + $responseCode = 200; + $responseHeaders = []; + $result = $handler->projectsSearchGet($query, $max_version, $limit, $offset, $attributes, $flavor, $responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 200: $message = 'OK'; break; @@ -1363,77 +1375,78 @@ public function projectsSearchGetAction(Request $request) break; } - return new Response( - null !== $result ? $this->serialize($result, $responseFormat) : '', + return new Response( + $result !== null ?$this->serialize($result, $responseFormat):'', $responseCode, array_merge( $responseHeaders, [ - 'Content-Type' => $responseFormat, - 'X-OpenAPI-Message' => $message, + 'Content-Type' => $responseFormat, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); - } - } - - /** - * Operation projectsTagsGet. - * - * Get all possible project tags. Some Tags will only be availabe during events. - * - * @param Request $request the Symfony request to handle - * - * @return Response the Symfony response - */ - public function projectsTagsGetAction(Request $request) - { - // Figure out what data format to return to the client - $produces = ['application/json']; - // Figure out what the client accepts - $clientAccepts = $request->headers->has('Accept') ? $request->headers->get('Accept') : '*/*'; - $responseFormat = $this->getOutputFormat($clientAccepts, $produces); - if (null === $responseFormat) { - return new Response('', 406); - } - - // Handle authentication - - // Read out all input parameter values into variables - $accept_language = $request->headers->get('Accept-Language'); - - // Use the default value if no value was provided - - // Deserialize the input values that needs it - try { - $accept_language = $this->deserialize($accept_language, 'string', 'string'); - } catch (SerializerRuntimeException $exception) { - return $this->createBadRequestResponse($exception->getMessage()); - } - - // Validate the input values - $asserts = []; - $asserts[] = new Assert\Type('string'); - $response = $this->validate($accept_language, $asserts); - if ($response instanceof Response) { - return $response; - } - - try { - $handler = $this->getApiHandler(); - - // Make the call to the business logic - $responseCode = 200; - $responseHeaders = []; - $result = $handler->projectsTagsGet($accept_language, $responseCode, $responseHeaders); - - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } + } + + /** + * Operation projectsTagsGet + * + * Get all possible project tags. Some Tags will only be availabe during events. + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function projectsTagsGetAction(Request $request) + { + // Figure out what data format to return to the client + $produces = ['application/json']; + // Figure out what the client accepts + $clientAccepts = $request->headers->has('Accept')?$request->headers->get('Accept'):'*/*'; + $responseFormat = $this->getOutputFormat($clientAccepts, $produces); + if ($responseFormat === null) { + return new Response('', 406); + } + + // Handle authentication + + // Read out all input parameter values into variables + $accept_language = $request->headers->get('Accept-Language'); + + // Use the default value if no value was provided + + // Deserialize the input values that needs it + try { + $accept_language = $this->deserialize($accept_language, 'string', 'string'); + } catch (SerializerRuntimeException $exception) { + return $this->createBadRequestResponse($exception->getMessage()); + } + + // Validate the input values + $asserts = []; + $asserts[] = new Assert\Type("string"); + $response = $this->validate($accept_language, $asserts); + if ($response instanceof Response) { + return $response; + } + + + try { + $handler = $this->getApiHandler(); + + + // Make the call to the business logic + $responseCode = 200; + $responseHeaders = []; + $result = $handler->projectsTagsGet($accept_language, $responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 200: $message = 'OK'; break; @@ -1442,118 +1455,118 @@ public function projectsTagsGetAction(Request $request) break; } - return new Response( - null !== $result ? $this->serialize($result, $responseFormat) : '', + return new Response( + $result !== null ?$this->serialize($result, $responseFormat):'', $responseCode, array_merge( $responseHeaders, [ - 'Content-Type' => $responseFormat, - 'X-OpenAPI-Message' => $message, + 'Content-Type' => $responseFormat, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); - } - } - - /** - * Operation projectsUserGet. - * - * Get the projects of the logged in user - * - * @param Request $request the Symfony request to handle - * - * @return Response the Symfony response - */ - public function projectsUserGetAction(Request $request) - { - // Figure out what data format to return to the client - $produces = ['application/json']; - // Figure out what the client accepts - $clientAccepts = $request->headers->has('Accept') ? $request->headers->get('Accept') : '*/*'; - $responseFormat = $this->getOutputFormat($clientAccepts, $produces); - if (null === $responseFormat) { - return new Response('', 406); - } - - // Handle authentication - // Authentication 'PandaAuth' required - // HTTP basic authentication required - $securityPandaAuth = $request->headers->get('authorization'); - - // Read out all input parameter values into variables - $max_version = $request->query->get('max_version'); - $limit = $request->query->get('limit'); - $offset = $request->query->get('offset'); - $attributes = $request->query->get('attributes'); - $flavor = $request->query->get('flavor'); - - // Use the default value if no value was provided - - // Deserialize the input values that needs it - try { - $max_version = $this->deserialize($max_version, 'string', 'string'); - $limit = $this->deserialize($limit, 'int', 'string'); - $offset = $this->deserialize($offset, 'int', 'string'); - $attributes = $this->deserialize($attributes, 'string', 'string'); - $flavor = $this->deserialize($flavor, 'string', 'string'); - } catch (SerializerRuntimeException $exception) { - return $this->createBadRequestResponse($exception->getMessage()); - } - - // Validate the input values - $asserts = []; - $asserts[] = new Assert\Type('string'); - $response = $this->validate($max_version, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('int'); - $asserts[] = new Assert\GreaterThanOrEqual(0); - $response = $this->validate($limit, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('int'); - $asserts[] = new Assert\GreaterThanOrEqual(0); - $response = $this->validate($offset, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('string'); - $asserts[] = new Assert\Regex('/^[a-zA-Z0-9\\-_]+(,[a-zA-Z0-9\\-_]+)*$/'); - $response = $this->validate($attributes, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('string'); - $response = $this->validate($flavor, $asserts); - if ($response instanceof Response) { - return $response; - } - - try { - $handler = $this->getApiHandler(); - - // Set authentication method 'PandaAuth' - $handler->setPandaAuth($securityPandaAuth); - - // Make the call to the business logic - $responseCode = 200; - $responseHeaders = []; - $result = $handler->projectsUserGet($max_version, $limit, $offset, $attributes, $flavor, $responseCode, $responseHeaders); - - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } + } + + /** + * Operation projectsUserGet + * + * Get the projects of the logged in user + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function projectsUserGetAction(Request $request) + { + // Figure out what data format to return to the client + $produces = ['application/json']; + // Figure out what the client accepts + $clientAccepts = $request->headers->has('Accept')?$request->headers->get('Accept'):'*/*'; + $responseFormat = $this->getOutputFormat($clientAccepts, $produces); + if ($responseFormat === null) { + return new Response('', 406); + } + + // Handle authentication + // Authentication 'PandaAuth' required + // HTTP basic authentication required + $securityPandaAuth = $request->headers->get('authorization'); + + // Read out all input parameter values into variables + $max_version = $request->query->get('max_version'); + $limit = $request->query->get('limit'); + $offset = $request->query->get('offset'); + $attributes = $request->query->get('attributes'); + $flavor = $request->query->get('flavor'); + + // Use the default value if no value was provided + + // Deserialize the input values that needs it + try { + $max_version = $this->deserialize($max_version, 'string', 'string'); + $limit = $this->deserialize($limit, 'int', 'string'); + $offset = $this->deserialize($offset, 'int', 'string'); + $attributes = $this->deserialize($attributes, 'string', 'string'); + $flavor = $this->deserialize($flavor, 'string', 'string'); + } catch (SerializerRuntimeException $exception) { + return $this->createBadRequestResponse($exception->getMessage()); + } + + // Validate the input values + $asserts = []; + $asserts[] = new Assert\Type("string"); + $response = $this->validate($max_version, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("int"); + $asserts[] = new Assert\GreaterThanOrEqual(0); + $response = $this->validate($limit, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("int"); + $asserts[] = new Assert\GreaterThanOrEqual(0); + $response = $this->validate($offset, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("string"); + $asserts[] = new Assert\Regex("/^[a-zA-Z0-9\\-_]+(,[a-zA-Z0-9\\-_]+)*$/"); + $response = $this->validate($attributes, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("string"); + $response = $this->validate($flavor, $asserts); + if ($response instanceof Response) { + return $response; + } + + + try { + $handler = $this->getApiHandler(); + + // Set authentication method 'PandaAuth' + $handler->setPandaAuth($securityPandaAuth); + + // Make the call to the business logic + $responseCode = 200; + $responseHeaders = []; + $result = $handler->projectsUserGet($max_version, $limit, $offset, $attributes, $flavor, $responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 200: $message = 'OK'; break; @@ -1571,122 +1584,122 @@ public function projectsUserGetAction(Request $request) break; } - return new Response( - null !== $result ? $this->serialize($result, $responseFormat) : '', + return new Response( + $result !== null ?$this->serialize($result, $responseFormat):'', $responseCode, array_merge( $responseHeaders, [ - 'Content-Type' => $responseFormat, - 'X-OpenAPI-Message' => $message, + 'Content-Type' => $responseFormat, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); - } - } - - /** - * Operation projectsUserIdGet. - * - * Get the public projects of a given user - * - * @param Request $request the Symfony request to handle - * @param mixed $id - * - * @return Response the Symfony response - */ - public function projectsUserIdGetAction(Request $request, $id) - { - // Figure out what data format to return to the client - $produces = ['application/json']; - // Figure out what the client accepts - $clientAccepts = $request->headers->has('Accept') ? $request->headers->get('Accept') : '*/*'; - $responseFormat = $this->getOutputFormat($clientAccepts, $produces); - if (null === $responseFormat) { - return new Response('', 406); - } - - // Handle authentication - - // Read out all input parameter values into variables - $max_version = $request->query->get('max_version'); - $limit = $request->query->get('limit'); - $offset = $request->query->get('offset'); - $attributes = $request->query->get('attributes'); - $flavor = $request->query->get('flavor'); - - // Use the default value if no value was provided - - // Deserialize the input values that needs it - try { - $id = $this->deserialize($id, 'string', 'string'); - $max_version = $this->deserialize($max_version, 'string', 'string'); - $limit = $this->deserialize($limit, 'int', 'string'); - $offset = $this->deserialize($offset, 'int', 'string'); - $attributes = $this->deserialize($attributes, 'string', 'string'); - $flavor = $this->deserialize($flavor, 'string', 'string'); - } catch (SerializerRuntimeException $exception) { - return $this->createBadRequestResponse($exception->getMessage()); - } - - // Validate the input values - $asserts = []; - $asserts[] = new Assert\NotNull(); - $asserts[] = new Assert\Type('string'); - $asserts[] = new Assert\Regex('/^[a-zA-Z0-9\\-]+$/'); - $response = $this->validate($id, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('string'); - $response = $this->validate($max_version, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('int'); - $asserts[] = new Assert\GreaterThanOrEqual(0); - $response = $this->validate($limit, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('int'); - $asserts[] = new Assert\GreaterThanOrEqual(0); - $response = $this->validate($offset, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('string'); - $asserts[] = new Assert\Regex('/^[a-zA-Z0-9\\-_]+(,[a-zA-Z0-9\\-_]+)*$/'); - $response = $this->validate($attributes, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('string'); - $response = $this->validate($flavor, $asserts); - if ($response instanceof Response) { - return $response; - } - - try { - $handler = $this->getApiHandler(); - - // Make the call to the business logic - $responseCode = 200; - $responseHeaders = []; - $result = $handler->projectsUserIdGet($id, $max_version, $limit, $offset, $attributes, $flavor, $responseCode, $responseHeaders); - - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } + } + + /** + * Operation projectsUserIdGet + * + * Get the public projects of a given user + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function projectsUserIdGetAction(Request $request, $id) + { + // Figure out what data format to return to the client + $produces = ['application/json']; + // Figure out what the client accepts + $clientAccepts = $request->headers->has('Accept')?$request->headers->get('Accept'):'*/*'; + $responseFormat = $this->getOutputFormat($clientAccepts, $produces); + if ($responseFormat === null) { + return new Response('', 406); + } + + // Handle authentication + + // Read out all input parameter values into variables + $max_version = $request->query->get('max_version'); + $limit = $request->query->get('limit'); + $offset = $request->query->get('offset'); + $attributes = $request->query->get('attributes'); + $flavor = $request->query->get('flavor'); + + // Use the default value if no value was provided + + // Deserialize the input values that needs it + try { + $id = $this->deserialize($id, 'string', 'string'); + $max_version = $this->deserialize($max_version, 'string', 'string'); + $limit = $this->deserialize($limit, 'int', 'string'); + $offset = $this->deserialize($offset, 'int', 'string'); + $attributes = $this->deserialize($attributes, 'string', 'string'); + $flavor = $this->deserialize($flavor, 'string', 'string'); + } catch (SerializerRuntimeException $exception) { + return $this->createBadRequestResponse($exception->getMessage()); + } + + // Validate the input values + $asserts = []; + $asserts[] = new Assert\NotNull(); + $asserts[] = new Assert\Type("string"); + $asserts[] = new Assert\Regex("/^[a-zA-Z0-9\\-]+$/"); + $response = $this->validate($id, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("string"); + $response = $this->validate($max_version, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("int"); + $asserts[] = new Assert\GreaterThanOrEqual(0); + $response = $this->validate($limit, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("int"); + $asserts[] = new Assert\GreaterThanOrEqual(0); + $response = $this->validate($offset, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("string"); + $asserts[] = new Assert\Regex("/^[a-zA-Z0-9\\-_]+(,[a-zA-Z0-9\\-_]+)*$/"); + $response = $this->validate($attributes, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("string"); + $response = $this->validate($flavor, $asserts); + if ($response instanceof Response) { + return $response; + } + + + try { + $handler = $this->getApiHandler(); + + + // Make the call to the business logic + $responseCode = 200; + $responseHeaders = []; + $result = $handler->projectsUserIdGet($id, $max_version, $limit, $offset, $attributes, $flavor, $responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 200: $message = 'OK'; break; @@ -1701,29 +1714,28 @@ public function projectsUserIdGetAction(Request $request, $id) break; } - return new Response( - null !== $result ? $this->serialize($result, $responseFormat) : '', + return new Response( + $result !== null ?$this->serialize($result, $responseFormat):'', $responseCode, array_merge( $responseHeaders, [ - 'Content-Type' => $responseFormat, - 'X-OpenAPI-Message' => $message, + 'Content-Type' => $responseFormat, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } + } + + /** + * Returns the handler for this API controller. + * @return ProjectsApiInterface + */ + public function getApiHandler() + { + return $this->apiServer->getApiHandler('projects'); } - } - - /** - * Returns the handler for this API controller. - * - * @return ProjectsApiInterface - */ - public function getApiHandler() - { - return $this->apiServer->getApiHandler('projects'); - } } diff --git a/Controller/SearchController.php b/Controller/SearchController.php index e3b6102b..18865aee 100755 --- a/Controller/SearchController.php +++ b/Controller/SearchController.php @@ -2,23 +2,23 @@ /** * SearchController - * PHP version 7.1.3. + * PHP version 8.1.1 * * @category Class - * + * @package OpenAPI\Server\Controller * @author OpenAPI Generator team - * - * @see https://github.com/openapitools/openapi-generator + * @link https://github.com/openapitools/openapi-generator */ /** - * Catroweb API. + * Catroweb API * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.1.0 + * The version of the OpenAPI document: v1.1.1 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git + * */ /** @@ -29,108 +29,110 @@ namespace OpenAPI\Server\Controller; -use Exception; +use \Exception; use JMS\Serializer\Exception\RuntimeException as SerializerRuntimeException; -use OpenAPI\Server\Api\SearchApiInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Exception\HttpException; use Symfony\Component\Validator\Constraints as Assert; +use OpenAPI\Server\Api\SearchApiInterface; +use OpenAPI\Server\Model\SearchResponse; /** - * SearchController Class Doc Comment. + * SearchController Class Doc Comment * * @category Class - * + * @package OpenAPI\Server\Controller * @author OpenAPI Generator team - * - * @see https://github.com/openapitools/openapi-generator + * @link https://github.com/openapitools/openapi-generator */ class SearchController extends Controller { - /** - * Operation searchGet. - * - * Search for projects, users,.. - * - * @param Request $request the Symfony request to handle - * - * @return Response the Symfony response - */ - public function searchGetAction(Request $request) - { - // Figure out what data format to return to the client - $produces = ['application/json']; - // Figure out what the client accepts - $clientAccepts = $request->headers->has('Accept') ? $request->headers->get('Accept') : '*/*'; - $responseFormat = $this->getOutputFormat($clientAccepts, $produces); - if (null === $responseFormat) { - return new Response('', 406); - } - - // Handle authentication - // Read out all input parameter values into variables - $query = $request->query->get('query'); - $type = $request->query->get('type'); - $limit = $request->query->get('limit'); - $offset = $request->query->get('offset'); - - // Use the default value if no value was provided - - // Deserialize the input values that needs it - try { - $query = $this->deserialize($query, 'string', 'string'); - $type = $this->deserialize($type, 'string', 'string'); - $limit = $this->deserialize($limit, 'int', 'string'); - $offset = $this->deserialize($offset, 'int', 'string'); - } catch (SerializerRuntimeException $exception) { - return $this->createBadRequestResponse($exception->getMessage()); - } - - // Validate the input values - $asserts = []; - $asserts[] = new Assert\NotNull(); - $asserts[] = new Assert\Type('string'); - $response = $this->validate($query, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Choice(['all', 'projects', 'users']); - $asserts[] = new Assert\Type('string'); - $response = $this->validate($type, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('int'); - $asserts[] = new Assert\GreaterThanOrEqual(0); - $response = $this->validate($limit, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('int'); - $asserts[] = new Assert\GreaterThanOrEqual(0); - $response = $this->validate($offset, $asserts); - if ($response instanceof Response) { - return $response; - } - - try { - $handler = $this->getApiHandler(); - - // Make the call to the business logic - $responseCode = 200; - $responseHeaders = []; - $result = $handler->searchGet($query, $type, $limit, $offset, $responseCode, $responseHeaders); - - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { + /** + * Operation searchGet + * + * Search for projects, users,.. + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function searchGetAction(Request $request) + { + // Figure out what data format to return to the client + $produces = ['application/json']; + // Figure out what the client accepts + $clientAccepts = $request->headers->has('Accept')?$request->headers->get('Accept'):'*/*'; + $responseFormat = $this->getOutputFormat($clientAccepts, $produces); + if ($responseFormat === null) { + return new Response('', 406); + } + + // Handle authentication + + // Read out all input parameter values into variables + $query = $request->query->get('query'); + $type = $request->query->get('type'); + $limit = $request->query->get('limit'); + $offset = $request->query->get('offset'); + + // Use the default value if no value was provided + + // Deserialize the input values that needs it + try { + $query = $this->deserialize($query, 'string', 'string'); + $type = $this->deserialize($type, 'string', 'string'); + $limit = $this->deserialize($limit, 'int', 'string'); + $offset = $this->deserialize($offset, 'int', 'string'); + } catch (SerializerRuntimeException $exception) { + return $this->createBadRequestResponse($exception->getMessage()); + } + + // Validate the input values + $asserts = []; + $asserts[] = new Assert\NotNull(); + $asserts[] = new Assert\Type("string"); + $response = $this->validate($query, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Choice([ "all", "projects", "users" ]); + $asserts[] = new Assert\Type("string"); + $response = $this->validate($type, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("int"); + $asserts[] = new Assert\GreaterThanOrEqual(0); + $response = $this->validate($limit, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("int"); + $asserts[] = new Assert\GreaterThanOrEqual(0); + $response = $this->validate($offset, $asserts); + if ($response instanceof Response) { + return $response; + } + + + try { + $handler = $this->getApiHandler(); + + + // Make the call to the business logic + $responseCode = 200; + $responseHeaders = []; + $result = $handler->searchGet($query, $type, $limit, $offset, $responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 200: $message = 'OK'; break; @@ -142,29 +144,28 @@ public function searchGetAction(Request $request) break; } - return new Response( - null !== $result ? $this->serialize($result, $responseFormat) : '', + return new Response( + $result !== null ?$this->serialize($result, $responseFormat):'', $responseCode, array_merge( $responseHeaders, [ - 'Content-Type' => $responseFormat, - 'X-OpenAPI-Message' => $message, + 'Content-Type' => $responseFormat, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } + } + + /** + * Returns the handler for this API controller. + * @return SearchApiInterface + */ + public function getApiHandler() + { + return $this->apiServer->getApiHandler('search'); } - } - - /** - * Returns the handler for this API controller. - * - * @return SearchApiInterface - */ - public function getApiHandler() - { - return $this->apiServer->getApiHandler('search'); - } } diff --git a/Controller/UserController.php b/Controller/UserController.php index aa2a1d08..55e6bc7b 100755 --- a/Controller/UserController.php +++ b/Controller/UserController.php @@ -2,23 +2,23 @@ /** * UserController - * PHP version 7.1.3. + * PHP version 8.1.1 * * @category Class - * + * @package OpenAPI\Server\Controller * @author OpenAPI Generator team - * - * @see https://github.com/openapitools/openapi-generator + * @link https://github.com/openapitools/openapi-generator */ /** - * Catroweb API. + * Catroweb API * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.1.0 + * The version of the OpenAPI document: v1.1.1 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git + * */ /** @@ -29,63 +29,72 @@ namespace OpenAPI\Server\Controller; -use Exception; +use \Exception; use JMS\Serializer\Exception\RuntimeException as SerializerRuntimeException; -use OpenAPI\Server\Api\UserApiInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Exception\HttpException; use Symfony\Component\Validator\Constraints as Assert; +use OpenAPI\Server\Api\UserApiInterface; +use OpenAPI\Server\Model\BasicUserDataResponse; +use OpenAPI\Server\Model\ExtendedUserDataResponse; +use OpenAPI\Server\Model\JWTResponse; +use OpenAPI\Server\Model\RegisterErrorResponse; +use OpenAPI\Server\Model\RegisterRequest; +use OpenAPI\Server\Model\ResetPasswordErrorResponse; +use OpenAPI\Server\Model\ResetPasswordRequest; +use OpenAPI\Server\Model\UpdateUserErrorResponse; +use OpenAPI\Server\Model\UpdateUserRequest; /** - * UserController Class Doc Comment. + * UserController Class Doc Comment * * @category Class - * + * @package OpenAPI\Server\Controller * @author OpenAPI Generator team - * - * @see https://github.com/openapitools/openapi-generator + * @link https://github.com/openapitools/openapi-generator */ class UserController extends Controller { - /** - * Operation userDelete. - * - * Delete user account - * - * @param Request $request the Symfony request to handle - * - * @return Response the Symfony response - */ - public function userDeleteAction(Request $request) - { - // Handle authentication - // Authentication 'PandaAuth' required - // HTTP basic authentication required - $securityPandaAuth = $request->headers->get('authorization'); - - // Read out all input parameter values into variables - - // Use the default value if no value was provided - - // Validate the input values - - try { - $handler = $this->getApiHandler(); - - // Set authentication method 'PandaAuth' - $handler->setPandaAuth($securityPandaAuth); - - // Make the call to the business logic - $responseCode = 204; - $responseHeaders = []; - $result = $handler->userDelete($responseCode, $responseHeaders); - - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { + + /** + * Operation userDelete + * + * Delete user account + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function userDeleteAction(Request $request) + { + // Handle authentication + // Authentication 'PandaAuth' required + // HTTP basic authentication required + $securityPandaAuth = $request->headers->get('authorization'); + + // Read out all input parameter values into variables + + // Use the default value if no value was provided + + // Validate the input values + + + try { + $handler = $this->getApiHandler(); + + // Set authentication method 'PandaAuth' + $handler->setPandaAuth($securityPandaAuth); + + // Make the call to the business logic + $responseCode = 204; + $responseHeaders = []; + $result = $handler->userDelete($responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 204: $message = 'User successfully deleted.'; break; @@ -94,68 +103,68 @@ public function userDeleteAction(Request $request) break; } - return new Response( + return new Response( '', $responseCode, array_merge( $responseHeaders, [ - 'X-OpenAPI-Message' => $message, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); - } - } - - /** - * Operation userGet. - * - * Get your private user data - * - * @param Request $request the Symfony request to handle - * - * @return Response the Symfony response - */ - public function userGetAction(Request $request) - { - // Figure out what data format to return to the client - $produces = ['application/json']; - // Figure out what the client accepts - $clientAccepts = $request->headers->has('Accept') ? $request->headers->get('Accept') : '*/*'; - $responseFormat = $this->getOutputFormat($clientAccepts, $produces); - if (null === $responseFormat) { - return new Response('', 406); - } - - // Handle authentication - // Authentication 'PandaAuth' required - // HTTP basic authentication required - $securityPandaAuth = $request->headers->get('authorization'); - - // Read out all input parameter values into variables - - // Use the default value if no value was provided - - // Validate the input values - - try { - $handler = $this->getApiHandler(); - - // Set authentication method 'PandaAuth' - $handler->setPandaAuth($securityPandaAuth); - - // Make the call to the business logic - $responseCode = 200; - $responseHeaders = []; - $result = $handler->userGet($responseCode, $responseHeaders); - - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } + } + + /** + * Operation userGet + * + * Get your private user data + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function userGetAction(Request $request) + { + // Figure out what data format to return to the client + $produces = ['application/json']; + // Figure out what the client accepts + $clientAccepts = $request->headers->has('Accept')?$request->headers->get('Accept'):'*/*'; + $responseFormat = $this->getOutputFormat($clientAccepts, $produces); + if ($responseFormat === null) { + return new Response('', 406); + } + + // Handle authentication + // Authentication 'PandaAuth' required + // HTTP basic authentication required + $securityPandaAuth = $request->headers->get('authorization'); + + // Read out all input parameter values into variables + + // Use the default value if no value was provided + + // Validate the input values + + + try { + $handler = $this->getApiHandler(); + + // Set authentication method 'PandaAuth' + $handler->setPandaAuth($securityPandaAuth); + + // Make the call to the business logic + $responseCode = 200; + $responseHeaders = []; + $result = $handler->userGet($responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 200: $message = 'OK'; break; @@ -170,79 +179,79 @@ public function userGetAction(Request $request) break; } - return new Response( - null !== $result ? $this->serialize($result, $responseFormat) : '', + return new Response( + $result !== null ?$this->serialize($result, $responseFormat):'', $responseCode, array_merge( $responseHeaders, [ - 'Content-Type' => $responseFormat, - 'X-OpenAPI-Message' => $message, + 'Content-Type' => $responseFormat, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); - } - } - - /** - * Operation userIdGet. - * - * Get public user data - * - * @param Request $request the Symfony request to handle - * @param mixed $id - * - * @return Response the Symfony response - */ - public function userIdGetAction(Request $request, $id) - { - // Figure out what data format to return to the client - $produces = ['application/json']; - // Figure out what the client accepts - $clientAccepts = $request->headers->has('Accept') ? $request->headers->get('Accept') : '*/*'; - $responseFormat = $this->getOutputFormat($clientAccepts, $produces); - if (null === $responseFormat) { - return new Response('', 406); - } - - // Handle authentication - - // Read out all input parameter values into variables - - // Use the default value if no value was provided - - // Deserialize the input values that needs it - try { - $id = $this->deserialize($id, 'string', 'string'); - } catch (SerializerRuntimeException $exception) { - return $this->createBadRequestResponse($exception->getMessage()); - } - - // Validate the input values - $asserts = []; - $asserts[] = new Assert\NotNull(); - $asserts[] = new Assert\Type('string'); - $asserts[] = new Assert\Regex('/^[a-zA-Z0-9\\-]+$/'); - $response = $this->validate($id, $asserts); - if ($response instanceof Response) { - return $response; - } - - try { - $handler = $this->getApiHandler(); - - // Make the call to the business logic - $responseCode = 200; - $responseHeaders = []; - $result = $handler->userIdGet($id, $responseCode, $responseHeaders); - - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } + } + + /** + * Operation userIdGet + * + * Get public user data + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function userIdGetAction(Request $request, $id) + { + // Figure out what data format to return to the client + $produces = ['application/json']; + // Figure out what the client accepts + $clientAccepts = $request->headers->has('Accept')?$request->headers->get('Accept'):'*/*'; + $responseFormat = $this->getOutputFormat($clientAccepts, $produces); + if ($responseFormat === null) { + return new Response('', 406); + } + + // Handle authentication + + // Read out all input parameter values into variables + + // Use the default value if no value was provided + + // Deserialize the input values that needs it + try { + $id = $this->deserialize($id, 'string', 'string'); + } catch (SerializerRuntimeException $exception) { + return $this->createBadRequestResponse($exception->getMessage()); + } + + // Validate the input values + $asserts = []; + $asserts[] = new Assert\NotNull(); + $asserts[] = new Assert\Type("string"); + $asserts[] = new Assert\Regex("/^[a-zA-Z0-9\\-]+$/"); + $response = $this->validate($id, $asserts); + if ($response instanceof Response) { + return $response; + } + + + try { + $handler = $this->getApiHandler(); + + + // Make the call to the business logic + $responseCode = 200; + $responseHeaders = []; + $result = $handler->userIdGet($id, $responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 200: $message = 'OK'; break; @@ -254,95 +263,96 @@ public function userIdGetAction(Request $request, $id) break; } - return new Response( - null !== $result ? $this->serialize($result, $responseFormat) : '', + return new Response( + $result !== null ?$this->serialize($result, $responseFormat):'', $responseCode, array_merge( $responseHeaders, [ - 'Content-Type' => $responseFormat, - 'X-OpenAPI-Message' => $message, + 'Content-Type' => $responseFormat, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); - } - } - - /** - * Operation userPost. - * - * Register - * - * @param Request $request the Symfony request to handle - * - * @return Response the Symfony response - */ - public function userPostAction(Request $request) - { - // Make sure that the client is providing something that we can consume - $consumes = ['application/json']; - if (!static::isContentTypeAllowed($request, $consumes)) { - // We can't consume the content that the client is sending us - return new Response('', 415); - } - - // Figure out what data format to return to the client - $produces = ['application/json']; - // Figure out what the client accepts - $clientAccepts = $request->headers->has('Accept') ? $request->headers->get('Accept') : '*/*'; - $responseFormat = $this->getOutputFormat($clientAccepts, $produces); - if (null === $responseFormat) { - return new Response('', 406); - } - - // Handle authentication - - // Read out all input parameter values into variables - $accept_language = $request->headers->get('Accept-Language'); - $register_request = $request->getContent(); - - // Use the default value if no value was provided - - // Deserialize the input values that needs it - try { - $inputFormat = $request->getMimeType($request->getContentType()); - $register_request = $this->deserialize($register_request, 'OpenAPI\Server\Model\RegisterRequest', $inputFormat); - $accept_language = $this->deserialize($accept_language, 'string', 'string'); - } catch (SerializerRuntimeException $exception) { - return $this->createBadRequestResponse($exception->getMessage()); - } - - // Validate the input values - $asserts = []; - $asserts[] = new Assert\NotNull(); - $asserts[] = new Assert\Type('OpenAPI\\Server\\Model\\RegisterRequest'); - $asserts[] = new Assert\Valid(); - $response = $this->validate($register_request, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('string'); - $response = $this->validate($accept_language, $asserts); - if ($response instanceof Response) { - return $response; - } - - try { - $handler = $this->getApiHandler(); - - // Make the call to the business logic - $responseCode = 200; - $responseHeaders = []; - $result = $handler->userPost($register_request, $accept_language, $responseCode, $responseHeaders); - - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } + } + + /** + * Operation userPost + * + * Register + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function userPostAction(Request $request) + { + // Make sure that the client is providing something that we can consume + $consumes = ['application/json']; + if (!static::isContentTypeAllowed($request, $consumes)) { + // We can't consume the content that the client is sending us + return new Response('', 415); + } + + // Figure out what data format to return to the client + $produces = ['application/json']; + // Figure out what the client accepts + $clientAccepts = $request->headers->has('Accept')?$request->headers->get('Accept'):'*/*'; + $responseFormat = $this->getOutputFormat($clientAccepts, $produces); + if ($responseFormat === null) { + return new Response('', 406); + } + + // Handle authentication + + // Read out all input parameter values into variables + $accept_language = $request->headers->get('Accept-Language'); + $register_request = $request->getContent(); + + // Use the default value if no value was provided + + // Deserialize the input values that needs it + try { + $inputFormat = $request->getMimeType($request->getContentType()); + $register_request = $this->deserialize($register_request, 'OpenAPI\Server\Model\RegisterRequest', $inputFormat); + $accept_language = $this->deserialize($accept_language, 'string', 'string'); + } catch (SerializerRuntimeException $exception) { + return $this->createBadRequestResponse($exception->getMessage()); + } + + // Validate the input values + $asserts = []; + $asserts[] = new Assert\NotNull(); + $asserts[] = new Assert\Type("OpenAPI\Server\Model\RegisterRequest"); + $asserts[] = new Assert\Valid(); + $response = $this->validate($register_request, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("string"); + $response = $this->validate($accept_language, $asserts); + if ($response instanceof Response) { + return $response; + } + + + try { + $handler = $this->getApiHandler(); + + + // Make the call to the business logic + $responseCode = 200; + $responseHeaders = []; + $result = $handler->userPost($register_request, $accept_language, $responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 201: $message = 'User successfully registered'; break; @@ -363,101 +373,101 @@ public function userPostAction(Request $request) break; } - return new Response( - null !== $result ? $this->serialize($result, $responseFormat) : '', + return new Response( + $result !== null ?$this->serialize($result, $responseFormat):'', $responseCode, array_merge( $responseHeaders, [ - 'Content-Type' => $responseFormat, - 'X-OpenAPI-Message' => $message, + 'Content-Type' => $responseFormat, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); - } - } - - /** - * Operation userPut. - * - * Update User - * - * @param Request $request the Symfony request to handle - * - * @return Response the Symfony response - */ - public function userPutAction(Request $request) - { - // Make sure that the client is providing something that we can consume - $consumes = ['application/json']; - if (!static::isContentTypeAllowed($request, $consumes)) { - // We can't consume the content that the client is sending us - return new Response('', 415); - } - - // Figure out what data format to return to the client - $produces = ['application/json']; - // Figure out what the client accepts - $clientAccepts = $request->headers->has('Accept') ? $request->headers->get('Accept') : '*/*'; - $responseFormat = $this->getOutputFormat($clientAccepts, $produces); - if (null === $responseFormat) { - return new Response('', 406); - } - - // Handle authentication - // Authentication 'PandaAuth' required - // HTTP basic authentication required - $securityPandaAuth = $request->headers->get('authorization'); - - // Read out all input parameter values into variables - $accept_language = $request->headers->get('Accept-Language'); - $update_user_request = $request->getContent(); - - // Use the default value if no value was provided - - // Deserialize the input values that needs it - try { - $inputFormat = $request->getMimeType($request->getContentType()); - $update_user_request = $this->deserialize($update_user_request, 'OpenAPI\Server\Model\UpdateUserRequest', $inputFormat); - $accept_language = $this->deserialize($accept_language, 'string', 'string'); - } catch (SerializerRuntimeException $exception) { - return $this->createBadRequestResponse($exception->getMessage()); - } - - // Validate the input values - $asserts = []; - $asserts[] = new Assert\NotNull(); - $asserts[] = new Assert\Type('OpenAPI\\Server\\Model\\UpdateUserRequest'); - $asserts[] = new Assert\Valid(); - $response = $this->validate($update_user_request, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('string'); - $response = $this->validate($accept_language, $asserts); - if ($response instanceof Response) { - return $response; - } - - try { - $handler = $this->getApiHandler(); - - // Set authentication method 'PandaAuth' - $handler->setPandaAuth($securityPandaAuth); - - // Make the call to the business logic - $responseCode = 200; - $responseHeaders = []; - $result = $handler->userPut($update_user_request, $accept_language, $responseCode, $responseHeaders); - - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } + } + + /** + * Operation userPut + * + * Update User + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function userPutAction(Request $request) + { + // Make sure that the client is providing something that we can consume + $consumes = ['application/json']; + if (!static::isContentTypeAllowed($request, $consumes)) { + // We can't consume the content that the client is sending us + return new Response('', 415); + } + + // Figure out what data format to return to the client + $produces = ['application/json']; + // Figure out what the client accepts + $clientAccepts = $request->headers->has('Accept')?$request->headers->get('Accept'):'*/*'; + $responseFormat = $this->getOutputFormat($clientAccepts, $produces); + if ($responseFormat === null) { + return new Response('', 406); + } + + // Handle authentication + // Authentication 'PandaAuth' required + // HTTP basic authentication required + $securityPandaAuth = $request->headers->get('authorization'); + + // Read out all input parameter values into variables + $accept_language = $request->headers->get('Accept-Language'); + $update_user_request = $request->getContent(); + + // Use the default value if no value was provided + + // Deserialize the input values that needs it + try { + $inputFormat = $request->getMimeType($request->getContentType()); + $update_user_request = $this->deserialize($update_user_request, 'OpenAPI\Server\Model\UpdateUserRequest', $inputFormat); + $accept_language = $this->deserialize($accept_language, 'string', 'string'); + } catch (SerializerRuntimeException $exception) { + return $this->createBadRequestResponse($exception->getMessage()); + } + + // Validate the input values + $asserts = []; + $asserts[] = new Assert\NotNull(); + $asserts[] = new Assert\Type("OpenAPI\Server\Model\UpdateUserRequest"); + $asserts[] = new Assert\Valid(); + $response = $this->validate($update_user_request, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("string"); + $response = $this->validate($accept_language, $asserts); + if ($response instanceof Response) { + return $response; + } + + + try { + $handler = $this->getApiHandler(); + + // Set authentication method 'PandaAuth' + $handler->setPandaAuth($securityPandaAuth); + + // Make the call to the business logic + $responseCode = 200; + $responseHeaders = []; + $result = $handler->userPut($update_user_request, $accept_language, $responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 204: $message = 'User successfully updated'; break; @@ -472,95 +482,96 @@ public function userPutAction(Request $request) break; } - return new Response( - null !== $result ? $this->serialize($result, $responseFormat) : '', + return new Response( + $result !== null ?$this->serialize($result, $responseFormat):'', $responseCode, array_merge( $responseHeaders, [ - 'Content-Type' => $responseFormat, - 'X-OpenAPI-Message' => $message, + 'Content-Type' => $responseFormat, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); - } - } - - /** - * Operation userResetPasswordPost. - * - * Request email to reset password - * - * @param Request $request the Symfony request to handle - * - * @return Response the Symfony response - */ - public function userResetPasswordPostAction(Request $request) - { - // Make sure that the client is providing something that we can consume - $consumes = ['application/json']; - if (!static::isContentTypeAllowed($request, $consumes)) { - // We can't consume the content that the client is sending us - return new Response('', 415); - } - - // Figure out what data format to return to the client - $produces = ['application/json']; - // Figure out what the client accepts - $clientAccepts = $request->headers->has('Accept') ? $request->headers->get('Accept') : '*/*'; - $responseFormat = $this->getOutputFormat($clientAccepts, $produces); - if (null === $responseFormat) { - return new Response('', 406); - } - - // Handle authentication - - // Read out all input parameter values into variables - $accept_language = $request->headers->get('Accept-Language'); - $reset_password_request = $request->getContent(); - - // Use the default value if no value was provided - - // Deserialize the input values that needs it - try { - $inputFormat = $request->getMimeType($request->getContentType()); - $reset_password_request = $this->deserialize($reset_password_request, 'OpenAPI\Server\Model\ResetPasswordRequest', $inputFormat); - $accept_language = $this->deserialize($accept_language, 'string', 'string'); - } catch (SerializerRuntimeException $exception) { - return $this->createBadRequestResponse($exception->getMessage()); - } - - // Validate the input values - $asserts = []; - $asserts[] = new Assert\NotNull(); - $asserts[] = new Assert\Type('OpenAPI\\Server\\Model\\ResetPasswordRequest'); - $asserts[] = new Assert\Valid(); - $response = $this->validate($reset_password_request, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('string'); - $response = $this->validate($accept_language, $asserts); - if ($response instanceof Response) { - return $response; - } - - try { - $handler = $this->getApiHandler(); - - // Make the call to the business logic - $responseCode = 200; - $responseHeaders = []; - $result = $handler->userResetPasswordPost($reset_password_request, $accept_language, $responseCode, $responseHeaders); - - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } + } + + /** + * Operation userResetPasswordPost + * + * Request email to reset password + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function userResetPasswordPostAction(Request $request) + { + // Make sure that the client is providing something that we can consume + $consumes = ['application/json']; + if (!static::isContentTypeAllowed($request, $consumes)) { + // We can't consume the content that the client is sending us + return new Response('', 415); + } + + // Figure out what data format to return to the client + $produces = ['application/json']; + // Figure out what the client accepts + $clientAccepts = $request->headers->has('Accept')?$request->headers->get('Accept'):'*/*'; + $responseFormat = $this->getOutputFormat($clientAccepts, $produces); + if ($responseFormat === null) { + return new Response('', 406); + } + + // Handle authentication + + // Read out all input parameter values into variables + $accept_language = $request->headers->get('Accept-Language'); + $reset_password_request = $request->getContent(); + + // Use the default value if no value was provided + + // Deserialize the input values that needs it + try { + $inputFormat = $request->getMimeType($request->getContentType()); + $reset_password_request = $this->deserialize($reset_password_request, 'OpenAPI\Server\Model\ResetPasswordRequest', $inputFormat); + $accept_language = $this->deserialize($accept_language, 'string', 'string'); + } catch (SerializerRuntimeException $exception) { + return $this->createBadRequestResponse($exception->getMessage()); + } + + // Validate the input values + $asserts = []; + $asserts[] = new Assert\NotNull(); + $asserts[] = new Assert\Type("OpenAPI\Server\Model\ResetPasswordRequest"); + $asserts[] = new Assert\Valid(); + $response = $this->validate($reset_password_request, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("string"); + $response = $this->validate($accept_language, $asserts); + if ($response instanceof Response) { + return $response; + } + + + try { + $handler = $this->getApiHandler(); + + + // Make the call to the business logic + $responseCode = 200; + $responseHeaders = []; + $result = $handler->userResetPasswordPost($reset_password_request, $accept_language, $responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 204: $message = 'If an account with this email exists, an email to reset the password will be send to the user'; break; @@ -578,105 +589,106 @@ public function userResetPasswordPostAction(Request $request) break; } - return new Response( - null !== $result ? $this->serialize($result, $responseFormat) : '', + return new Response( + $result !== null ?$this->serialize($result, $responseFormat):'', $responseCode, array_merge( $responseHeaders, [ - 'Content-Type' => $responseFormat, - 'X-OpenAPI-Message' => $message, + 'Content-Type' => $responseFormat, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); - } - } - - /** - * Operation usersSearchGet. - * - * Search for users - * - * @param Request $request the Symfony request to handle - * - * @return Response the Symfony response - */ - public function usersSearchGetAction(Request $request) - { - // Figure out what data format to return to the client - $produces = ['application/json']; - // Figure out what the client accepts - $clientAccepts = $request->headers->has('Accept') ? $request->headers->get('Accept') : '*/*'; - $responseFormat = $this->getOutputFormat($clientAccepts, $produces); - if (null === $responseFormat) { - return new Response('', 406); - } - - // Handle authentication - - // Read out all input parameter values into variables - $query = $request->query->get('query'); - $limit = $request->query->get('limit'); - $offset = $request->query->get('offset'); - $attributes = $request->query->get('attributes'); - - // Use the default value if no value was provided - - // Deserialize the input values that needs it - try { - $query = $this->deserialize($query, 'string', 'string'); - $limit = $this->deserialize($limit, 'int', 'string'); - $offset = $this->deserialize($offset, 'int', 'string'); - $attributes = $this->deserialize($attributes, 'string', 'string'); - } catch (SerializerRuntimeException $exception) { - return $this->createBadRequestResponse($exception->getMessage()); - } - - // Validate the input values - $asserts = []; - $asserts[] = new Assert\NotNull(); - $asserts[] = new Assert\Type('string'); - $response = $this->validate($query, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('int'); - $asserts[] = new Assert\GreaterThanOrEqual(0); - $response = $this->validate($limit, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('int'); - $asserts[] = new Assert\GreaterThanOrEqual(0); - $response = $this->validate($offset, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('string'); - $asserts[] = new Assert\Regex('/^[a-zA-Z0-9\\-_]+(,[a-zA-Z0-9\\-_]+)*$/'); - $response = $this->validate($attributes, $asserts); - if ($response instanceof Response) { - return $response; - } - - try { - $handler = $this->getApiHandler(); - - // Make the call to the business logic - $responseCode = 200; - $responseHeaders = []; - $result = $handler->usersSearchGet($query, $limit, $offset, $attributes, $responseCode, $responseHeaders); - - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } + } + + /** + * Operation usersSearchGet + * + * Search for users + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function usersSearchGetAction(Request $request) + { + // Figure out what data format to return to the client + $produces = ['application/json']; + // Figure out what the client accepts + $clientAccepts = $request->headers->has('Accept')?$request->headers->get('Accept'):'*/*'; + $responseFormat = $this->getOutputFormat($clientAccepts, $produces); + if ($responseFormat === null) { + return new Response('', 406); + } + + // Handle authentication + + // Read out all input parameter values into variables + $query = $request->query->get('query'); + $limit = $request->query->get('limit'); + $offset = $request->query->get('offset'); + $attributes = $request->query->get('attributes'); + + // Use the default value if no value was provided + + // Deserialize the input values that needs it + try { + $query = $this->deserialize($query, 'string', 'string'); + $limit = $this->deserialize($limit, 'int', 'string'); + $offset = $this->deserialize($offset, 'int', 'string'); + $attributes = $this->deserialize($attributes, 'string', 'string'); + } catch (SerializerRuntimeException $exception) { + return $this->createBadRequestResponse($exception->getMessage()); + } + + // Validate the input values + $asserts = []; + $asserts[] = new Assert\NotNull(); + $asserts[] = new Assert\Type("string"); + $response = $this->validate($query, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("int"); + $asserts[] = new Assert\GreaterThanOrEqual(0); + $response = $this->validate($limit, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("int"); + $asserts[] = new Assert\GreaterThanOrEqual(0); + $response = $this->validate($offset, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("string"); + $asserts[] = new Assert\Regex("/^[a-zA-Z0-9\\-_]+(,[a-zA-Z0-9\\-_]+)*$/"); + $response = $this->validate($attributes, $asserts); + if ($response instanceof Response) { + return $response; + } + + + try { + $handler = $this->getApiHandler(); + + + // Make the call to the business logic + $responseCode = 200; + $responseHeaders = []; + $result = $handler->usersSearchGet($query, $limit, $offset, $attributes, $responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 200: $message = 'OK'; break; @@ -688,29 +700,28 @@ public function usersSearchGetAction(Request $request) break; } - return new Response( - null !== $result ? $this->serialize($result, $responseFormat) : '', + return new Response( + $result !== null ?$this->serialize($result, $responseFormat):'', $responseCode, array_merge( $responseHeaders, [ - 'Content-Type' => $responseFormat, - 'X-OpenAPI-Message' => $message, + 'Content-Type' => $responseFormat, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } + } + + /** + * Returns the handler for this API controller. + * @return UserApiInterface + */ + public function getApiHandler() + { + return $this->apiServer->getApiHandler('user'); } - } - - /** - * Returns the handler for this API controller. - * - * @return UserApiInterface - */ - public function getApiHandler() - { - return $this->apiServer->getApiHandler('user'); - } } diff --git a/Controller/UtilityController.php b/Controller/UtilityController.php index de8f1c56..b7bd6874 100755 --- a/Controller/UtilityController.php +++ b/Controller/UtilityController.php @@ -2,23 +2,23 @@ /** * UtilityController - * PHP version 7.1.3. + * PHP version 8.1.1 * * @category Class - * + * @package OpenAPI\Server\Controller * @author OpenAPI Generator team - * - * @see https://github.com/openapitools/openapi-generator + * @link https://github.com/openapitools/openapi-generator */ /** - * Catroweb API. + * Catroweb API * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.1.0 + * The version of the OpenAPI document: v1.1.1 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git + * */ /** @@ -29,141 +29,143 @@ namespace OpenAPI\Server\Controller; -use Exception; +use \Exception; use JMS\Serializer\Exception\RuntimeException as SerializerRuntimeException; -use OpenAPI\Server\Api\UtilityApiInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Exception\HttpException; use Symfony\Component\Validator\Constraints as Assert; +use OpenAPI\Server\Api\UtilityApiInterface; +use OpenAPI\Server\Model\SurveyResponse; /** - * UtilityController Class Doc Comment. + * UtilityController Class Doc Comment * * @category Class - * + * @package OpenAPI\Server\Controller * @author OpenAPI Generator team - * - * @see https://github.com/openapitools/openapi-generator + * @link https://github.com/openapitools/openapi-generator */ class UtilityController extends Controller { - /** - * Operation healthGet. - * - * Health Check - * - * @param Request $request the Symfony request to handle - * - * @return Response the Symfony response - */ - public function healthGetAction(Request $request) - { - // Handle authentication - - // Read out all input parameter values into variables - - // Use the default value if no value was provided - - // Validate the input values - - try { - $handler = $this->getApiHandler(); - - // Make the call to the business logic - $responseCode = 204; - $responseHeaders = []; - $result = $handler->healthGet($responseCode, $responseHeaders); - - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { + + /** + * Operation healthGet + * + * Health Check + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function healthGetAction(Request $request) + { + // Handle authentication + + // Read out all input parameter values into variables + + // Use the default value if no value was provided + + // Validate the input values + + + try { + $handler = $this->getApiHandler(); + + + // Make the call to the business logic + $responseCode = 204; + $responseHeaders = []; + $result = $handler->healthGet($responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 204: $message = 'System is alive and healthy!'; break; } - return new Response( + return new Response( '', $responseCode, array_merge( $responseHeaders, [ - 'X-OpenAPI-Message' => $message, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); - } - } - - /** - * Operation surveyLangCodeGet. - * - * Get survey link for given language code. - * - * @param Request $request the Symfony request to handle - * @param mixed $lang_code - * - * @return Response the Symfony response - */ - public function surveyLangCodeGetAction(Request $request, $lang_code) - { - // Figure out what data format to return to the client - $produces = ['application/json']; - // Figure out what the client accepts - $clientAccepts = $request->headers->has('Accept') ? $request->headers->get('Accept') : '*/*'; - $responseFormat = $this->getOutputFormat($clientAccepts, $produces); - if (null === $responseFormat) { - return new Response('', 406); - } - - // Handle authentication - - // Read out all input parameter values into variables - $flavor = $request->query->get('flavor'); - - // Use the default value if no value was provided - - // Deserialize the input values that needs it - try { - $lang_code = $this->deserialize($lang_code, 'string', 'string'); - $flavor = $this->deserialize($flavor, 'string', 'string'); - } catch (SerializerRuntimeException $exception) { - return $this->createBadRequestResponse($exception->getMessage()); + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } } - // Validate the input values - $asserts = []; - $asserts[] = new Assert\NotNull(); - $asserts[] = new Assert\Type('string'); - $response = $this->validate($lang_code, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; - $asserts[] = new Assert\Type('string'); - $response = $this->validate($flavor, $asserts); - if ($response instanceof Response) { - return $response; - } - - try { - $handler = $this->getApiHandler(); - - // Make the call to the business logic - $responseCode = 200; - $responseHeaders = []; - $result = $handler->surveyLangCodeGet($lang_code, $flavor, $responseCode, $responseHeaders); - - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { + /** + * Operation surveyLangCodeGet + * + * Get survey link for given language code. + * + * @param Request $request The Symfony request to handle. + * @return Response The Symfony response. + */ + public function surveyLangCodeGetAction(Request $request, $lang_code) + { + // Figure out what data format to return to the client + $produces = ['application/json']; + // Figure out what the client accepts + $clientAccepts = $request->headers->has('Accept')?$request->headers->get('Accept'):'*/*'; + $responseFormat = $this->getOutputFormat($clientAccepts, $produces); + if ($responseFormat === null) { + return new Response('', 406); + } + + // Handle authentication + + // Read out all input parameter values into variables + $flavor = $request->query->get('flavor'); + + // Use the default value if no value was provided + + // Deserialize the input values that needs it + try { + $lang_code = $this->deserialize($lang_code, 'string', 'string'); + $flavor = $this->deserialize($flavor, 'string', 'string'); + } catch (SerializerRuntimeException $exception) { + return $this->createBadRequestResponse($exception->getMessage()); + } + + // Validate the input values + $asserts = []; + $asserts[] = new Assert\NotNull(); + $asserts[] = new Assert\Type("string"); + $response = $this->validate($lang_code, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type("string"); + $response = $this->validate($flavor, $asserts); + if ($response instanceof Response) { + return $response; + } + + + try { + $handler = $this->getApiHandler(); + + + // Make the call to the business logic + $responseCode = 200; + $responseHeaders = []; + $result = $handler->surveyLangCodeGet($lang_code, $flavor, $responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { case 200: $message = 'OK'; break; @@ -178,29 +180,28 @@ public function surveyLangCodeGetAction(Request $request, $lang_code) break; } - return new Response( - null !== $result ? $this->serialize($result, $responseFormat) : '', + return new Response( + $result !== null ?$this->serialize($result, $responseFormat):'', $responseCode, array_merge( $responseHeaders, [ - 'Content-Type' => $responseFormat, - 'X-OpenAPI-Message' => $message, + 'Content-Type' => $responseFormat, + 'X-OpenAPI-Message' => $message ] ) ); - } catch (Exception $fallthrough) { - return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } + } + + /** + * Returns the handler for this API controller. + * @return UtilityApiInterface + */ + public function getApiHandler() + { + return $this->apiServer->getApiHandler('utility'); } - } - - /** - * Returns the handler for this API controller. - * - * @return UtilityApiInterface - */ - public function getApiHandler() - { - return $this->apiServer->getApiHandler('utility'); - } } diff --git a/DependencyInjection/Compiler/OpenAPIServerApiPass.php b/DependencyInjection/Compiler/OpenAPIServerApiPass.php index b87a5f0a..ac0265c6 100755 --- a/DependencyInjection/Compiler/OpenAPIServerApiPass.php +++ b/DependencyInjection/Compiler/OpenAPIServerApiPass.php @@ -1,24 +1,24 @@ has('open_api_server.api.api_server')) { - return; - } - $definition = $container->findDefinition('open_api_server.api.api_server'); + /** + * You can modify the container here before it is dumped to PHP code. + * + * @param ContainerBuilder $container + */ + public function process(ContainerBuilder $container) { + // always first check if the primary service is defined + if (!$container->has('open_api_server.api.api_server')) { + return; + } + + $definition = $container->findDefinition('open_api_server.api.api_server'); - // find all service IDs with the open_api_server.api tag - $taggedServices = $container->findTaggedServiceIds('open_api_server.api'); + // find all service IDs with the open_api_server.api tag + $taggedServices = $container->findTaggedServiceIds('open_api_server.api'); - foreach ($taggedServices as $id => $tags) { - foreach ($tags as $tag) { - // add the transport service to the ChainTransport service - $definition->addMethodCall('addApiHandler', [$tag['api'], new Reference($id)]); - } + foreach ($taggedServices as $id => $tags) { + foreach ($tags as $tag) { + // add the transport service to the ChainTransport service + $definition->addMethodCall('addApiHandler', [$tag['api'], new Reference($id)]); + } + } } - } } diff --git a/DependencyInjection/OpenAPIServerExtension.php b/DependencyInjection/OpenAPIServerExtension.php index eaa5f2d5..36d6d813 100755 --- a/DependencyInjection/OpenAPIServerExtension.php +++ b/DependencyInjection/OpenAPIServerExtension.php @@ -1,24 +1,24 @@ load('services.yml'); - } + public function load(array $configs, ContainerBuilder $container) + { + $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); + $loader->load('services.yml'); + } - public function getAlias() - { - return 'open_api_server'; - } + public function getAlias(): string + { + return 'open_api_server'; + } } diff --git a/Model/BaseUser.php b/Model/BaseUser.php index ce4e8e9e..307a9449 100755 --- a/Model/BaseUser.php +++ b/Model/BaseUser.php @@ -1,24 +1,24 @@ email = isset($data['email']) ? $data['email'] : null; - $this->username = isset($data['username']) ? $data['username'] : null; - $this->password = isset($data['password']) ? $data['password'] : null; - $this->picture = isset($data['picture']) ? $data['picture'] : null; - $this->about = isset($data['about']) ? $data['about'] : null; - $this->currently_working_on = isset($data['currently_working_on']) ? $data['currently_working_on'] : null; - } - - /** - * Gets email. - */ - public function getEmail(): ?string - { - return $this->email; - } - - /** - * Sets email. - * - * @param string|null $email Email of the user - * - * @return $this - */ - public function setEmail(string $email = null) - { - $this->email = $email; - - return $this; - } - - /** - * Gets username. - */ - public function getUsername(): ?string - { - return $this->username; - } - - /** - * Sets username. - * - * @param string|null $username Name of the user | minLength: 3 | maxLength: 180 - * - * @return $this - */ - public function setUsername(string $username = null) - { - $this->username = $username; - - return $this; - } - - /** - * Gets password. - */ - public function getPassword(): ?string - { - return $this->password; - } - - /** - * Sets password. - * - * @param string|null $password A secure password | minLength: 6 | maxLength: 4096 - * - * @return $this - */ - public function setPassword(string $password = null) - { - $this->password = $password; - - return $this; - } - - /** - * Gets picture. - */ - public function getPicture(): ?string - { - return $this->picture; - } - - /** - * Sets picture. - * - * @param string|null $picture the profile picture of the user in data URI scheme - * - * @return $this - */ - public function setPicture(string $picture = null) - { - $this->picture = $picture; - - return $this; - } - - /** - * Gets about. - */ - public function getAbout(): ?string - { - return $this->about; - } - - /** - * Sets about. - * - * @param string|null $about an introduction of the user - * - * @return $this - */ - public function setAbout(string $about = null) - { - $this->about = $about; - - return $this; - } - - /** - * Gets currently_working_on. - */ - public function getCurrentlyWorkingOn(): ?string - { - return $this->currently_working_on; - } - - /** - * Sets currently_working_on. - * - * @param string|null $currently_working_on a short description about the project the user is currently working on - * - * @return $this - */ - public function setCurrentlyWorkingOn(string $currently_working_on = null) - { - $this->currently_working_on = $currently_working_on; - - return $this; - } + /** + * Email of the user + * + * @var string|null + * @SerializedName("email") + * @Assert\Type("string") + * @Type("string") + */ + protected $email; + + /** + * Name of the user | minLength: 3 | maxLength: 180 + * + * @var string|null + * @SerializedName("username") + * @Assert\Type("string") + * @Type("string") + */ + protected $username; + + /** + * A secure password | minLength: 6 | maxLength: 4096 + * + * @var string|null + * @SerializedName("password") + * @Assert\Type("string") + * @Type("string") + */ + protected $password; + + /** + * The profile picture of the user in data URI scheme. + * + * @var string|null + * @SerializedName("picture") + * @Assert\Type("string") + * @Type("string") + */ + protected $picture; + + /** + * An introduction of the user. + * + * @var string|null + * @SerializedName("about") + * @Assert\Type("string") + * @Type("string") + */ + protected $about; + + /** + * A short description about the project the user is currently working on. + * + * @var string|null + * @SerializedName("currentlyWorkingOn") + * @Assert\Type("string") + * @Type("string") + */ + protected $currently_working_on; + + /** + * Constructor + * @param mixed[] $data Associated array of property values initializing the model + */ + public function __construct(array $data = null) + { + $this->email = isset($data['email']) ? $data['email'] : null; + $this->username = isset($data['username']) ? $data['username'] : null; + $this->password = isset($data['password']) ? $data['password'] : null; + $this->picture = isset($data['picture']) ? $data['picture'] : null; + $this->about = isset($data['about']) ? $data['about'] : null; + $this->currently_working_on = isset($data['currently_working_on']) ? $data['currently_working_on'] : null; + } + + /** + * Gets email. + * + * @return string|null + */ + public function getEmail(): ?string + { + return $this->email; + } + + /** + * Sets email. + * + * @param string|null $email Email of the user + * + * @return $this + */ + public function setEmail(string $email = null) + { + $this->email = $email; + + return $this; + } + + /** + * Gets username. + * + * @return string|null + */ + public function getUsername(): ?string + { + return $this->username; + } + + /** + * Sets username. + * + * @param string|null $username Name of the user | minLength: 3 | maxLength: 180 + * + * @return $this + */ + public function setUsername(string $username = null) + { + $this->username = $username; + + return $this; + } + + /** + * Gets password. + * + * @return string|null + */ + public function getPassword(): ?string + { + return $this->password; + } + + /** + * Sets password. + * + * @param string|null $password A secure password | minLength: 6 | maxLength: 4096 + * + * @return $this + */ + public function setPassword(string $password = null) + { + $this->password = $password; + + return $this; + } + + /** + * Gets picture. + * + * @return string|null + */ + public function getPicture(): ?string + { + return $this->picture; + } + + /** + * Sets picture. + * + * @param string|null $picture The profile picture of the user in data URI scheme. + * + * @return $this + */ + public function setPicture(string $picture = null) + { + $this->picture = $picture; + + return $this; + } + + /** + * Gets about. + * + * @return string|null + */ + public function getAbout(): ?string + { + return $this->about; + } + + /** + * Sets about. + * + * @param string|null $about An introduction of the user. + * + * @return $this + */ + public function setAbout(string $about = null) + { + $this->about = $about; + + return $this; + } + + /** + * Gets currently_working_on. + * + * @return string|null + */ + public function getCurrentlyWorkingOn(): ?string + { + return $this->currently_working_on; + } + + /** + * Sets currently_working_on. + * + * @param string|null $currently_working_on A short description about the project the user is currently working on. + * + * @return $this + */ + public function setCurrentlyWorkingOn(string $currently_working_on = null) + { + $this->currently_working_on = $currently_working_on; + + return $this; + } } + + diff --git a/Model/BasicUserDataResponse.php b/Model/BasicUserDataResponse.php index 465f4bcd..4266cf5b 100755 --- a/Model/BasicUserDataResponse.php +++ b/Model/BasicUserDataResponse.php @@ -1,24 +1,24 @@ id = isset($data['id']) ? $data['id'] : null; - $this->username = isset($data['username']) ? $data['username'] : null; - $this->picture = isset($data['picture']) ? $data['picture'] : null; - $this->about = isset($data['about']) ? $data['about'] : null; - $this->currently_working_on = isset($data['currently_working_on']) ? $data['currently_working_on'] : null; - $this->projects = isset($data['projects']) ? $data['projects'] : null; - $this->followers = isset($data['followers']) ? $data['followers'] : null; - $this->following = isset($data['following']) ? $data['following'] : null; - } - - /** - * Gets id. - */ - public function getId(): ?string - { - return $this->id; - } - - /** - * Sets id. - * - * @param string|null $id Unique ID of the user - * - * @return $this - */ - public function setId(string $id = null) - { - $this->id = $id; - - return $this; - } - - /** - * Gets username. - */ - public function getUsername(): ?string - { - return $this->username; - } - - /** - * Sets username. - * - * @param string|null $username Nickname of the user - * - * @return $this - */ - public function setUsername(string $username = null) - { - $this->username = $username; - - return $this; - } - - /** - * Gets picture. - */ - public function getPicture(): ?string - { - return $this->picture; - } - - /** - * Sets picture. - * - * @param string|null $picture the profile picture of the user in data URI scheme - * - * @return $this - */ - public function setPicture(string $picture = null) - { - $this->picture = $picture; - - return $this; - } - - /** - * Gets about. - */ - public function getAbout(): ?string - { - return $this->about; - } - - /** - * Sets about. - * - * @param string|null $about an introduction of the user - * - * @return $this - */ - public function setAbout(string $about = null) - { - $this->about = $about; - - return $this; - } - - /** - * Gets currently_working_on. - */ - public function getCurrentlyWorkingOn(): ?string - { - return $this->currently_working_on; - } - - /** - * Sets currently_working_on. - * - * @param string|null $currently_working_on a short description about the project the user is currently working on - * - * @return $this - */ - public function setCurrentlyWorkingOn(string $currently_working_on = null) - { - $this->currently_working_on = $currently_working_on; - - return $this; - } - - /** - * Gets projects. - */ - public function getProjects(): ?int - { - return $this->projects; - } - - /** - * Sets projects. - * - * @param int|null $projects Amount of projects of the user - * - * @return $this - */ - public function setProjects(int $projects = null) - { - $this->projects = $projects; - - return $this; - } - - /** - * Gets followers. - */ - public function getFollowers(): ?int - { - return $this->followers; - } - - /** - * Sets followers. - * - * @param int|null $followers Amount of users that follow this user - * - * @return $this - */ - public function setFollowers(int $followers = null) - { - $this->followers = $followers; - - return $this; - } - - /** - * Gets following. - */ - public function getFollowing(): ?int - { - return $this->following; - } - - /** - * Sets following. - * - * @param int|null $following Amount of users followed by this user - * - * @return $this - */ - public function setFollowing(int $following = null) - { - $this->following = $following; - - return $this; - } + /** + * Unique ID of the user + * + * @var string|null + * @SerializedName("id") + * @Assert\Type("string") + * @Type("string") + */ + protected $id; + + /** + * Nickname of the user + * + * @var string|null + * @SerializedName("username") + * @Assert\Type("string") + * @Type("string") + */ + protected $username; + + /** + * The profile picture of the user in data URI scheme. + * + * @var string|null + * @SerializedName("picture") + * @Assert\Type("string") + * @Type("string") + */ + protected $picture; + + /** + * An introduction of the user. + * + * @var string|null + * @SerializedName("about") + * @Assert\Type("string") + * @Type("string") + */ + protected $about; + + /** + * A short description about the project the user is currently working on. + * + * @var string|null + * @SerializedName("currentlyWorkingOn") + * @Assert\Type("string") + * @Type("string") + */ + protected $currently_working_on; + + /** + * Amount of projects of the user + * + * @var int|null + * @SerializedName("projects") + * @Assert\Type("int") + * @Type("int") + */ + protected $projects; + + /** + * Amount of users that follow this user + * + * @var int|null + * @SerializedName("followers") + * @Assert\Type("int") + * @Type("int") + */ + protected $followers; + + /** + * Amount of users followed by this user + * + * @var int|null + * @SerializedName("following") + * @Assert\Type("int") + * @Type("int") + */ + protected $following; + + /** + * Constructor + * @param mixed[] $data Associated array of property values initializing the model + */ + public function __construct(array $data = null) + { + $this->id = isset($data['id']) ? $data['id'] : null; + $this->username = isset($data['username']) ? $data['username'] : null; + $this->picture = isset($data['picture']) ? $data['picture'] : null; + $this->about = isset($data['about']) ? $data['about'] : null; + $this->currently_working_on = isset($data['currently_working_on']) ? $data['currently_working_on'] : null; + $this->projects = isset($data['projects']) ? $data['projects'] : null; + $this->followers = isset($data['followers']) ? $data['followers'] : null; + $this->following = isset($data['following']) ? $data['following'] : null; + } + + /** + * Gets id. + * + * @return string|null + */ + public function getId(): ?string + { + return $this->id; + } + + /** + * Sets id. + * + * @param string|null $id Unique ID of the user + * + * @return $this + */ + public function setId(string $id = null) + { + $this->id = $id; + + return $this; + } + + /** + * Gets username. + * + * @return string|null + */ + public function getUsername(): ?string + { + return $this->username; + } + + /** + * Sets username. + * + * @param string|null $username Nickname of the user + * + * @return $this + */ + public function setUsername(string $username = null) + { + $this->username = $username; + + return $this; + } + + /** + * Gets picture. + * + * @return string|null + */ + public function getPicture(): ?string + { + return $this->picture; + } + + /** + * Sets picture. + * + * @param string|null $picture The profile picture of the user in data URI scheme. + * + * @return $this + */ + public function setPicture(string $picture = null) + { + $this->picture = $picture; + + return $this; + } + + /** + * Gets about. + * + * @return string|null + */ + public function getAbout(): ?string + { + return $this->about; + } + + /** + * Sets about. + * + * @param string|null $about An introduction of the user. + * + * @return $this + */ + public function setAbout(string $about = null) + { + $this->about = $about; + + return $this; + } + + /** + * Gets currently_working_on. + * + * @return string|null + */ + public function getCurrentlyWorkingOn(): ?string + { + return $this->currently_working_on; + } + + /** + * Sets currently_working_on. + * + * @param string|null $currently_working_on A short description about the project the user is currently working on. + * + * @return $this + */ + public function setCurrentlyWorkingOn(string $currently_working_on = null) + { + $this->currently_working_on = $currently_working_on; + + return $this; + } + + /** + * Gets projects. + * + * @return int|null + */ + public function getProjects(): ?int + { + return $this->projects; + } + + /** + * Sets projects. + * + * @param int|null $projects Amount of projects of the user + * + * @return $this + */ + public function setProjects(int $projects = null) + { + $this->projects = $projects; + + return $this; + } + + /** + * Gets followers. + * + * @return int|null + */ + public function getFollowers(): ?int + { + return $this->followers; + } + + /** + * Sets followers. + * + * @param int|null $followers Amount of users that follow this user + * + * @return $this + */ + public function setFollowers(int $followers = null) + { + $this->followers = $followers; + + return $this; + } + + /** + * Gets following. + * + * @return int|null + */ + public function getFollowing(): ?int + { + return $this->following; + } + + /** + * Sets following. + * + * @param int|null $following Amount of users followed by this user + * + * @return $this + */ + public function setFollowing(int $following = null) + { + $this->following = $following; + + return $this; + } } + + diff --git a/Model/DryRun.php b/Model/DryRun.php index e0820cff..c1ddf7c7 100755 --- a/Model/DryRun.php +++ b/Model/DryRun.php @@ -1,24 +1,24 @@ dry_run = isset($data['dry_run']) ? $data['dry_run'] : false; - } + /** + * Constructor + * @param mixed[] $data Associated array of property values initializing the model + */ + public function __construct(array $data = null) + { + $this->dry_run = isset($data['dry_run']) ? $data['dry_run'] : false; + } - /** - * Gets dry_run. - */ - public function isDryRun(): ?bool - { - return $this->dry_run; - } + /** + * Gets dry_run. + * + * @return bool|null + */ + public function isDryRun(): ?bool + { + return $this->dry_run; + } - /** - * Sets dry_run. - * - * @param bool|null $dry_run Indicates wether a request should only be verified or executed - * - * @return $this - */ - public function setDryRun(bool $dry_run = null) - { - $this->dry_run = $dry_run; + /** + * Sets dry_run. + * + * @param bool|null $dry_run Indicates wether a request should only be verified or executed + * + * @return $this + */ + public function setDryRun(bool $dry_run = null) + { + $this->dry_run = $dry_run; - return $this; - } + return $this; + } } + + diff --git a/Model/ExtendedUserDataResponse.php b/Model/ExtendedUserDataResponse.php index f5b2c85e..64555b53 100755 --- a/Model/ExtendedUserDataResponse.php +++ b/Model/ExtendedUserDataResponse.php @@ -1,24 +1,24 @@ id = isset($data['id']) ? $data['id'] : null; - $this->username = isset($data['username']) ? $data['username'] : null; - $this->picture = isset($data['picture']) ? $data['picture'] : null; - $this->about = isset($data['about']) ? $data['about'] : null; - $this->currently_working_on = isset($data['currently_working_on']) ? $data['currently_working_on'] : null; - $this->projects = isset($data['projects']) ? $data['projects'] : null; - $this->followers = isset($data['followers']) ? $data['followers'] : null; - $this->following = isset($data['following']) ? $data['following'] : null; - $this->email = isset($data['email']) ? $data['email'] : null; - } - - /** - * Gets id. - */ - public function getId(): ?string - { - return $this->id; - } - - /** - * Sets id. - * - * @param string|null $id Unique ID of the user - * - * @return $this - */ - public function setId(string $id = null) - { - $this->id = $id; - - return $this; - } - - /** - * Gets username. - */ - public function getUsername(): ?string - { - return $this->username; - } - - /** - * Sets username. - * - * @param string|null $username Nickname of the user - * - * @return $this - */ - public function setUsername(string $username = null) - { - $this->username = $username; - - return $this; - } - - /** - * Gets picture. - */ - public function getPicture(): ?string - { - return $this->picture; - } - - /** - * Sets picture. - * - * @param string|null $picture the profile picture of the user in data URI scheme - * - * @return $this - */ - public function setPicture(string $picture = null) - { - $this->picture = $picture; - - return $this; - } - - /** - * Gets about. - */ - public function getAbout(): ?string - { - return $this->about; - } - - /** - * Sets about. - * - * @param string|null $about an introduction of the user - * - * @return $this - */ - public function setAbout(string $about = null) - { - $this->about = $about; - - return $this; - } - - /** - * Gets currently_working_on. - */ - public function getCurrentlyWorkingOn(): ?string - { - return $this->currently_working_on; - } - - /** - * Sets currently_working_on. - * - * @param string|null $currently_working_on a short description about the project the user is currently working on - * - * @return $this - */ - public function setCurrentlyWorkingOn(string $currently_working_on = null) - { - $this->currently_working_on = $currently_working_on; - - return $this; - } - - /** - * Gets projects. - */ - public function getProjects(): ?int - { - return $this->projects; - } - - /** - * Sets projects. - * - * @param int|null $projects Amount of projects of the user - * - * @return $this - */ - public function setProjects(int $projects = null) - { - $this->projects = $projects; - - return $this; - } - - /** - * Gets followers. - */ - public function getFollowers(): ?int - { - return $this->followers; - } - - /** - * Sets followers. - * - * @param int|null $followers Amount of users that follow this user - * - * @return $this - */ - public function setFollowers(int $followers = null) - { - $this->followers = $followers; - - return $this; - } - - /** - * Gets following. - */ - public function getFollowing(): ?int - { - return $this->following; - } - - /** - * Sets following. - * - * @param int|null $following Amount of users followed by this user - * - * @return $this - */ - public function setFollowing(int $following = null) - { - $this->following = $following; - - return $this; - } - - /** - * Gets email. - */ - public function getEmail(): ?string - { - return $this->email; - } - - /** - * Sets email. - * - * @param string|null $email EMail of the user - * - * @return $this - */ - public function setEmail(string $email = null) - { - $this->email = $email; - - return $this; - } + /** + * Unique ID of the user + * + * @var string|null + * @SerializedName("id") + * @Assert\Type("string") + * @Type("string") + */ + protected $id; + + /** + * Nickname of the user + * + * @var string|null + * @SerializedName("username") + * @Assert\Type("string") + * @Type("string") + */ + protected $username; + + /** + * The profile picture of the user in data URI scheme. + * + * @var string|null + * @SerializedName("picture") + * @Assert\Type("string") + * @Type("string") + */ + protected $picture; + + /** + * An introduction of the user. + * + * @var string|null + * @SerializedName("about") + * @Assert\Type("string") + * @Type("string") + */ + protected $about; + + /** + * A short description about the project the user is currently working on. + * + * @var string|null + * @SerializedName("currentlyWorkingOn") + * @Assert\Type("string") + * @Type("string") + */ + protected $currently_working_on; + + /** + * Amount of projects of the user + * + * @var int|null + * @SerializedName("projects") + * @Assert\Type("int") + * @Type("int") + */ + protected $projects; + + /** + * Amount of users that follow this user + * + * @var int|null + * @SerializedName("followers") + * @Assert\Type("int") + * @Type("int") + */ + protected $followers; + + /** + * Amount of users followed by this user + * + * @var int|null + * @SerializedName("following") + * @Assert\Type("int") + * @Type("int") + */ + protected $following; + + /** + * EMail of the user + * + * @var string|null + * @SerializedName("email") + * @Assert\Type("string") + * @Type("string") + */ + protected $email; + + /** + * Constructor + * @param mixed[] $data Associated array of property values initializing the model + */ + public function __construct(array $data = null) + { + $this->id = isset($data['id']) ? $data['id'] : null; + $this->username = isset($data['username']) ? $data['username'] : null; + $this->picture = isset($data['picture']) ? $data['picture'] : null; + $this->about = isset($data['about']) ? $data['about'] : null; + $this->currently_working_on = isset($data['currently_working_on']) ? $data['currently_working_on'] : null; + $this->projects = isset($data['projects']) ? $data['projects'] : null; + $this->followers = isset($data['followers']) ? $data['followers'] : null; + $this->following = isset($data['following']) ? $data['following'] : null; + $this->email = isset($data['email']) ? $data['email'] : null; + } + + /** + * Gets id. + * + * @return string|null + */ + public function getId(): ?string + { + return $this->id; + } + + /** + * Sets id. + * + * @param string|null $id Unique ID of the user + * + * @return $this + */ + public function setId(string $id = null) + { + $this->id = $id; + + return $this; + } + + /** + * Gets username. + * + * @return string|null + */ + public function getUsername(): ?string + { + return $this->username; + } + + /** + * Sets username. + * + * @param string|null $username Nickname of the user + * + * @return $this + */ + public function setUsername(string $username = null) + { + $this->username = $username; + + return $this; + } + + /** + * Gets picture. + * + * @return string|null + */ + public function getPicture(): ?string + { + return $this->picture; + } + + /** + * Sets picture. + * + * @param string|null $picture The profile picture of the user in data URI scheme. + * + * @return $this + */ + public function setPicture(string $picture = null) + { + $this->picture = $picture; + + return $this; + } + + /** + * Gets about. + * + * @return string|null + */ + public function getAbout(): ?string + { + return $this->about; + } + + /** + * Sets about. + * + * @param string|null $about An introduction of the user. + * + * @return $this + */ + public function setAbout(string $about = null) + { + $this->about = $about; + + return $this; + } + + /** + * Gets currently_working_on. + * + * @return string|null + */ + public function getCurrentlyWorkingOn(): ?string + { + return $this->currently_working_on; + } + + /** + * Sets currently_working_on. + * + * @param string|null $currently_working_on A short description about the project the user is currently working on. + * + * @return $this + */ + public function setCurrentlyWorkingOn(string $currently_working_on = null) + { + $this->currently_working_on = $currently_working_on; + + return $this; + } + + /** + * Gets projects. + * + * @return int|null + */ + public function getProjects(): ?int + { + return $this->projects; + } + + /** + * Sets projects. + * + * @param int|null $projects Amount of projects of the user + * + * @return $this + */ + public function setProjects(int $projects = null) + { + $this->projects = $projects; + + return $this; + } + + /** + * Gets followers. + * + * @return int|null + */ + public function getFollowers(): ?int + { + return $this->followers; + } + + /** + * Sets followers. + * + * @param int|null $followers Amount of users that follow this user + * + * @return $this + */ + public function setFollowers(int $followers = null) + { + $this->followers = $followers; + + return $this; + } + + /** + * Gets following. + * + * @return int|null + */ + public function getFollowing(): ?int + { + return $this->following; + } + + /** + * Sets following. + * + * @param int|null $following Amount of users followed by this user + * + * @return $this + */ + public function setFollowing(int $following = null) + { + $this->following = $following; + + return $this; + } + + /** + * Gets email. + * + * @return string|null + */ + public function getEmail(): ?string + { + return $this->email; + } + + /** + * Sets email. + * + * @param string|null $email EMail of the user + * + * @return $this + */ + public function setEmail(string $email = null) + { + $this->email = $email; + + return $this; + } } + + diff --git a/Model/ExtendedUserDataResponseAllOf.php b/Model/ExtendedUserDataResponseAllOf.php index 89016641..08533f7f 100755 --- a/Model/ExtendedUserDataResponseAllOf.php +++ b/Model/ExtendedUserDataResponseAllOf.php @@ -1,24 +1,24 @@ email = isset($data['email']) ? $data['email'] : null; - } + /** + * Constructor + * @param mixed[] $data Associated array of property values initializing the model + */ + public function __construct(array $data = null) + { + $this->email = isset($data['email']) ? $data['email'] : null; + } - /** - * Gets email. - */ - public function getEmail(): ?string - { - return $this->email; - } + /** + * Gets email. + * + * @return string|null + */ + public function getEmail(): ?string + { + return $this->email; + } - /** - * Sets email. - * - * @param string|null $email EMail of the user - * - * @return $this - */ - public function setEmail(string $email = null) - { - $this->email = $email; + /** + * Sets email. + * + * @param string|null $email EMail of the user + * + * @return $this + */ + public function setEmail(string $email = null) + { + $this->email = $email; - return $this; - } + return $this; + } } + + diff --git a/Model/ExtensionResponse.php b/Model/ExtensionResponse.php index b108f2ee..3b6985fd 100755 --- a/Model/ExtensionResponse.php +++ b/Model/ExtensionResponse.php @@ -1,24 +1,24 @@ id = isset($data['id']) ? $data['id'] : null; - $this->text = isset($data['text']) ? $data['text'] : null; - } + /** + * Constructor + * @param mixed[] $data Associated array of property values initializing the model + */ + public function __construct(array $data = null) + { + $this->id = isset($data['id']) ? $data['id'] : null; + $this->text = isset($data['text']) ? $data['text'] : null; + } - /** - * Gets id. - */ - public function getId(): ?string - { - return $this->id; - } + /** + * Gets id. + * + * @return string|null + */ + public function getId(): ?string + { + return $this->id; + } - /** - * Sets id. - * - * @param string|null $id The internal title of the extension - * - * @return $this - */ - public function setId(string $id = null) - { - $this->id = $id; + /** + * Sets id. + * + * @param string|null $id The internal title of the extension + * + * @return $this + */ + public function setId(string $id = null) + { + $this->id = $id; - return $this; - } + return $this; + } - /** - * Gets text. - */ - public function getText(): ?string - { - return $this->text; - } + /** + * Gets text. + * + * @return string|null + */ + public function getText(): ?string + { + return $this->text; + } - /** - * Sets text. - * - * @param string|null $text the translated text of the project extension - * - * @return $this - */ - public function setText(string $text = null) - { - $this->text = $text; + /** + * Sets text. + * + * @param string|null $text The translated text of the project extension. + * + * @return $this + */ + public function setText(string $text = null) + { + $this->text = $text; - return $this; - } + return $this; + } } + + diff --git a/Model/FeaturedProjectResponse.php b/Model/FeaturedProjectResponse.php index e6ac4c6a..d9bbc12c 100755 --- a/Model/FeaturedProjectResponse.php +++ b/Model/FeaturedProjectResponse.php @@ -1,24 +1,24 @@ id = isset($data['id']) ? $data['id'] : null; - $this->project_id = isset($data['project_id']) ? $data['project_id'] : null; - $this->project_url = isset($data['project_url']) ? $data['project_url'] : null; - $this->url = isset($data['url']) ? $data['url'] : null; - $this->name = isset($data['name']) ? $data['name'] : null; - $this->author = isset($data['author']) ? $data['author'] : null; - $this->featured_image = isset($data['featured_image']) ? $data['featured_image'] : null; - } - - /** - * Gets id. - */ - public function getId(): ?string - { - return $this->id; - } - - /** - * Sets id. - * - * @return $this - */ - public function setId(string $id = null) - { - $this->id = $id; - - return $this; - } - - /** - * Gets project_id. - */ - public function getProjectId(): ?string - { - return $this->project_id; - } - - /** - * Sets project_id. - * - * @return $this - */ - public function setProjectId(string $project_id = null) - { - $this->project_id = $project_id; - - return $this; - } - - /** - * Gets project_url. - */ - public function getProjectUrl(): ?string - { - return $this->project_url; - } - - /** - * Sets project_url. - * - * @return $this - */ - public function setProjectUrl(string $project_url = null) - { - $this->project_url = $project_url; - - return $this; - } - - /** - * Gets url. - */ - public function getUrl(): ?string - { - return $this->url; - } - - /** - * Sets url. - * - * @return $this - */ - public function setUrl(string $url = null) - { - $this->url = $url; - - return $this; - } - - /** - * Gets name. - */ - public function getName(): ?string - { - return $this->name; - } - - /** - * Sets name. - * - * @return $this - */ - public function setName(string $name = null) - { - $this->name = $name; - - return $this; - } - - /** - * Gets author. - */ - public function getAuthor(): ?string - { - return $this->author; - } - - /** - * Sets author. - * - * @return $this - */ - public function setAuthor(string $author = null) - { - $this->author = $author; - - return $this; - } - - /** - * Gets featured_image. - */ - public function getFeaturedImage(): ?string - { - return $this->featured_image; - } - - /** - * Sets featured_image. - * - * @return $this - */ - public function setFeaturedImage(string $featured_image = null) - { - $this->featured_image = $featured_image; - - return $this; - } + /** + * @var string|null + * @SerializedName("id") + * @Assert\Type("string") + * @Type("string") + */ + protected $id; + + /** + * @var string|null + * @SerializedName("project_id") + * @Assert\Type("string") + * @Type("string") + */ + protected $project_id; + + /** + * @var string|null + * @SerializedName("project_url") + * @Assert\Type("string") + * @Type("string") + */ + protected $project_url; + + /** + * @var string|null + * @SerializedName("url") + * @Assert\Type("string") + * @Type("string") + */ + protected $url; + + /** + * @var string|null + * @SerializedName("name") + * @Assert\Type("string") + * @Type("string") + */ + protected $name; + + /** + * @var string|null + * @SerializedName("author") + * @Assert\Type("string") + * @Type("string") + */ + protected $author; + + /** + * @var string|null + * @SerializedName("featured_image") + * @Assert\Type("string") + * @Type("string") + */ + protected $featured_image; + + /** + * Constructor + * @param mixed[] $data Associated array of property values initializing the model + */ + public function __construct(array $data = null) + { + $this->id = isset($data['id']) ? $data['id'] : null; + $this->project_id = isset($data['project_id']) ? $data['project_id'] : null; + $this->project_url = isset($data['project_url']) ? $data['project_url'] : null; + $this->url = isset($data['url']) ? $data['url'] : null; + $this->name = isset($data['name']) ? $data['name'] : null; + $this->author = isset($data['author']) ? $data['author'] : null; + $this->featured_image = isset($data['featured_image']) ? $data['featured_image'] : null; + } + + /** + * Gets id. + * + * @return string|null + */ + public function getId(): ?string + { + return $this->id; + } + + /** + * Sets id. + * + * @param string|null $id + * + * @return $this + */ + public function setId(string $id = null) + { + $this->id = $id; + + return $this; + } + + /** + * Gets project_id. + * + * @return string|null + */ + public function getProjectId(): ?string + { + return $this->project_id; + } + + /** + * Sets project_id. + * + * @param string|null $project_id + * + * @return $this + */ + public function setProjectId(string $project_id = null) + { + $this->project_id = $project_id; + + return $this; + } + + /** + * Gets project_url. + * + * @return string|null + */ + public function getProjectUrl(): ?string + { + return $this->project_url; + } + + /** + * Sets project_url. + * + * @param string|null $project_url + * + * @return $this + */ + public function setProjectUrl(string $project_url = null) + { + $this->project_url = $project_url; + + return $this; + } + + /** + * Gets url. + * + * @return string|null + */ + public function getUrl(): ?string + { + return $this->url; + } + + /** + * Sets url. + * + * @param string|null $url + * + * @return $this + */ + public function setUrl(string $url = null) + { + $this->url = $url; + + return $this; + } + + /** + * Gets name. + * + * @return string|null + */ + public function getName(): ?string + { + return $this->name; + } + + /** + * Sets name. + * + * @param string|null $name + * + * @return $this + */ + public function setName(string $name = null) + { + $this->name = $name; + + return $this; + } + + /** + * Gets author. + * + * @return string|null + */ + public function getAuthor(): ?string + { + return $this->author; + } + + /** + * Sets author. + * + * @param string|null $author + * + * @return $this + */ + public function setAuthor(string $author = null) + { + $this->author = $author; + + return $this; + } + + /** + * Gets featured_image. + * + * @return string|null + */ + public function getFeaturedImage(): ?string + { + return $this->featured_image; + } + + /** + * Sets featured_image. + * + * @param string|null $featured_image + * + * @return $this + */ + public function setFeaturedImage(string $featured_image = null) + { + $this->featured_image = $featured_image; + + return $this; + } } + + diff --git a/Model/JWTResponse.php b/Model/JWTResponse.php index 18dce881..8580a597 100755 --- a/Model/JWTResponse.php +++ b/Model/JWTResponse.php @@ -1,24 +1,24 @@ token = isset($data['token']) ? $data['token'] : null; - $this->refresh_token = isset($data['refresh_token']) ? $data['refresh_token'] : null; - } + /** + * Constructor + * @param mixed[] $data Associated array of property values initializing the model + */ + public function __construct(array $data = null) + { + $this->token = isset($data['token']) ? $data['token'] : null; + $this->refresh_token = isset($data['refresh_token']) ? $data['refresh_token'] : null; + } - /** - * Gets token. - */ - public function getToken(): ?string - { - return $this->token; - } + /** + * Gets token. + * + * @return string|null + */ + public function getToken(): ?string + { + return $this->token; + } - /** - * Sets token. - * - * @return $this - */ - public function setToken(string $token = null) - { - $this->token = $token; + /** + * Sets token. + * + * @param string|null $token + * + * @return $this + */ + public function setToken(string $token = null) + { + $this->token = $token; - return $this; - } + return $this; + } - /** - * Gets refresh_token. - */ - public function getRefreshToken(): ?string - { - return $this->refresh_token; - } + /** + * Gets refresh_token. + * + * @return string|null + */ + public function getRefreshToken(): ?string + { + return $this->refresh_token; + } - /** - * Sets refresh_token. - * - * @return $this - */ - public function setRefreshToken(string $refresh_token = null) - { - $this->refresh_token = $refresh_token; + /** + * Sets refresh_token. + * + * @param string|null $refresh_token + * + * @return $this + */ + public function setRefreshToken(string $refresh_token = null) + { + $this->refresh_token = $refresh_token; - return $this; - } + return $this; + } } + + diff --git a/Model/LoginRequest.php b/Model/LoginRequest.php index b63da2e5..240ec5bc 100755 --- a/Model/LoginRequest.php +++ b/Model/LoginRequest.php @@ -1,24 +1,24 @@ username = isset($data['username']) ? $data['username'] : null; - $this->password = isset($data['password']) ? $data['password'] : null; - } + /** + * Constructor + * @param mixed[] $data Associated array of property values initializing the model + */ + public function __construct(array $data = null) + { + $this->username = isset($data['username']) ? $data['username'] : null; + $this->password = isset($data['password']) ? $data['password'] : null; + } - /** - * Gets username. - */ - public function getUsername(): ?string - { - return $this->username; - } + /** + * Gets username. + * + * @return string|null + */ + public function getUsername(): ?string + { + return $this->username; + } - /** - * Sets username. - * - * @param string|null $username Name of the user - * - * @return $this - */ - public function setUsername(string $username = null) - { - $this->username = $username; + /** + * Sets username. + * + * @param string|null $username Name of the user + * + * @return $this + */ + public function setUsername(string $username = null) + { + $this->username = $username; - return $this; - } + return $this; + } - /** - * Gets password. - */ - public function getPassword(): ?string - { - return $this->password; - } + /** + * Gets password. + * + * @return string|null + */ + public function getPassword(): ?string + { + return $this->password; + } - /** - * Sets password. - * - * @param string|null $password A secure password - * - * @return $this - */ - public function setPassword(string $password = null) - { - $this->password = $password; + /** + * Sets password. + * + * @param string|null $password A secure password + * + * @return $this + */ + public function setPassword(string $password = null) + { + $this->password = $password; - return $this; - } + return $this; + } } + + diff --git a/Model/MediaCategoryResponse.php b/Model/MediaCategoryResponse.php index f71725c3..7b433189 100755 --- a/Model/MediaCategoryResponse.php +++ b/Model/MediaCategoryResponse.php @@ -1,24 +1,24 @@ id = isset($data['id']) ? $data['id'] : null; - $this->name = isset($data['name']) ? $data['name'] : null; - $this->priority = isset($data['priority']) ? $data['priority'] : null; - } - - /** - * Gets id. - */ - public function getId(): ?int - { - return $this->id; - } - - /** - * Sets id. - * - * @param int|null $id ID of the category - * - * @return $this - */ - public function setId(int $id = null) - { - $this->id = $id; - - return $this; - } - - /** - * Gets name. - */ - public function getName(): ?string - { - return $this->name; - } - - /** - * Sets name. - * - * @param string|null $name Name of the category - * - * @return $this - */ - public function setName(string $name = null) - { - $this->name = $name; - - return $this; - } - - /** - * Gets priority. - */ - public function getPriority(): ?int - { - return $this->priority; - } - - /** - * Sets priority. - * - * @param int|null $priority Shows how important a category is (0 is the least priority) - * - * @return $this - */ - public function setPriority(int $priority = null) - { - $this->priority = $priority; - - return $this; - } + /** + * ID of the category + * + * @var int|null + * @SerializedName("id") + * @Assert\Type("int") + * @Type("int") + */ + protected $id; + + /** + * Name of the category + * + * @var string|null + * @SerializedName("name") + * @Assert\Type("string") + * @Type("string") + */ + protected $name; + + /** + * Shows how important a category is (0 is the least priority) + * + * @var int|null + * @SerializedName("priority") + * @Assert\Type("int") + * @Type("int") + * @Assert\GreaterThanOrEqual(0) + */ + protected $priority; + + /** + * Constructor + * @param mixed[] $data Associated array of property values initializing the model + */ + public function __construct(array $data = null) + { + $this->id = isset($data['id']) ? $data['id'] : null; + $this->name = isset($data['name']) ? $data['name'] : null; + $this->priority = isset($data['priority']) ? $data['priority'] : null; + } + + /** + * Gets id. + * + * @return int|null + */ + public function getId(): ?int + { + return $this->id; + } + + /** + * Sets id. + * + * @param int|null $id ID of the category + * + * @return $this + */ + public function setId(int $id = null) + { + $this->id = $id; + + return $this; + } + + /** + * Gets name. + * + * @return string|null + */ + public function getName(): ?string + { + return $this->name; + } + + /** + * Sets name. + * + * @param string|null $name Name of the category + * + * @return $this + */ + public function setName(string $name = null) + { + $this->name = $name; + + return $this; + } + + /** + * Gets priority. + * + * @return int|null + */ + public function getPriority(): ?int + { + return $this->priority; + } + + /** + * Sets priority. + * + * @param int|null $priority Shows how important a category is (0 is the least priority) + * + * @return $this + */ + public function setPriority(int $priority = null) + { + $this->priority = $priority; + + return $this; + } } + + diff --git a/Model/MediaFileResponse.php b/Model/MediaFileResponse.php index 9a33868a..27d1aa3c 100755 --- a/Model/MediaFileResponse.php +++ b/Model/MediaFileResponse.php @@ -1,24 +1,24 @@ ") - */ - protected $flavors; - - /** - * @var string[]|null - * @SerializedName("packages") - * @Assert\All({ - * @Assert\Type("string") - * }) - * @Type("array") - */ - protected $packages; - - /** - * @var string|null - * @SerializedName("category") - * @Assert\Type("string") - * @Type("string") - */ - protected $category; - - /** - * @var string|null - * @SerializedName("author") - * @Assert\Type("string") - * @Type("string") - */ - protected $author; - - /** - * @var string|null - * @SerializedName("extension") - * @Assert\Type("string") - * @Type("string") - */ - protected $extension; - - /** - * @var string|null - * @SerializedName("download_url") - * @Assert\Type("string") - * @Type("string") - */ - protected $download_url; - - /** - * Size of the file in bytes. - * - * @var int|null - * @SerializedName("size") - * @Assert\Type("int") - * @Type("int") - */ - protected $size; - - /** - * Type of the media file. - * - * @var string|null - * @SerializedName("file_type") - * @Assert\Choice({ "project", "image", "sound", "video", "other" }) - * @Assert\Type("string") - * @Type("string") - */ - protected $file_type; - - /** - * Constructor. - * - * @param mixed[] $data Associated array of property values initializing the model - */ - public function __construct(array $data = null) - { - $this->id = isset($data['id']) ? $data['id'] : null; - $this->name = isset($data['name']) ? $data['name'] : null; - $this->flavors = isset($data['flavors']) ? $data['flavors'] : null; - $this->packages = isset($data['packages']) ? $data['packages'] : null; - $this->category = isset($data['category']) ? $data['category'] : null; - $this->author = isset($data['author']) ? $data['author'] : null; - $this->extension = isset($data['extension']) ? $data['extension'] : null; - $this->download_url = isset($data['download_url']) ? $data['download_url'] : null; - $this->size = isset($data['size']) ? $data['size'] : null; - $this->file_type = isset($data['file_type']) ? $data['file_type'] : null; - } - - /** - * Gets id. - */ - public function getId(): ?int - { - return $this->id; - } - - /** - * Sets id. - * - * @return $this - */ - public function setId(int $id = null) - { - $this->id = $id; - - return $this; - } - - /** - * Gets name. - */ - public function getName(): ?string - { - return $this->name; - } - - /** - * Sets name. - * - * @return $this - */ - public function setName(string $name = null) - { - $this->name = $name; - - return $this; - } - - /** - * Gets flavors. - * - * @return string[]|null - */ - public function getFlavors(): ?array - { - return $this->flavors; - } - - /** - * Sets flavors. - * - * @param string[]|null $flavors - * - * @return $this - */ - public function setFlavors(array $flavors = null) - { - $this->flavors = $flavors; - - return $this; - } - - /** - * Gets packages. - * - * @return string[]|null - */ - public function getPackages(): ?array - { - return $this->packages; - } - - /** - * Sets packages. - * - * @param string[]|null $packages - * - * @return $this - */ - public function setPackages(array $packages = null) - { - $this->packages = $packages; - - return $this; - } - - /** - * Gets category. - */ - public function getCategory(): ?string - { - return $this->category; - } - - /** - * Sets category. - * - * @return $this - */ - public function setCategory(string $category = null) - { - $this->category = $category; - - return $this; - } - - /** - * Gets author. - */ - public function getAuthor(): ?string - { - return $this->author; - } - - /** - * Sets author. - * - * @return $this - */ - public function setAuthor(string $author = null) - { - $this->author = $author; - - return $this; - } - - /** - * Gets extension. - */ - public function getExtension(): ?string - { - return $this->extension; - } - - /** - * Sets extension. - * - * @return $this - */ - public function setExtension(string $extension = null) - { - $this->extension = $extension; - - return $this; - } - - /** - * Gets download_url. - */ - public function getDownloadUrl(): ?string - { - return $this->download_url; - } - - /** - * Sets download_url. - * - * @return $this - */ - public function setDownloadUrl(string $download_url = null) - { - $this->download_url = $download_url; - - return $this; - } - - /** - * Gets size. - */ - public function getSize(): ?int - { - return $this->size; - } - - /** - * Sets size. - * - * @param int|null $size Size of the file in bytes - * - * @return $this - */ - public function setSize(int $size = null) - { - $this->size = $size; - - return $this; - } - - /** - * Gets file_type. - */ - public function getFileType(): ?string - { - return $this->file_type; - } - - /** - * Sets file_type. - * - * @param string|null $file_type Type of the media file - * - * @return $this - */ - public function setFileType(string $file_type = null) - { - $this->file_type = $file_type; - - return $this; - } + /** + * @var int|null + * @SerializedName("id") + * @Assert\Type("int") + * @Type("int") + */ + protected $id; + + /** + * @var string|null + * @SerializedName("name") + * @Assert\Type("string") + * @Type("string") + */ + protected $name; + + /** + * @var string[]|null + * @SerializedName("flavors") + * @Assert\All({ + * @Assert\Type("string") + * }) + * @Type("array") + */ + protected $flavors; + + /** + * @var string[]|null + * @SerializedName("packages") + * @Assert\All({ + * @Assert\Type("string") + * }) + * @Type("array") + */ + protected $packages; + + /** + * @var string|null + * @SerializedName("category") + * @Assert\Type("string") + * @Type("string") + */ + protected $category; + + /** + * @var string|null + * @SerializedName("author") + * @Assert\Type("string") + * @Type("string") + */ + protected $author; + + /** + * @var string|null + * @SerializedName("extension") + * @Assert\Type("string") + * @Type("string") + */ + protected $extension; + + /** + * @var string|null + * @SerializedName("download_url") + * @Assert\Type("string") + * @Type("string") + */ + protected $download_url; + + /** + * Size of the file in bytes + * + * @var int|null + * @SerializedName("size") + * @Assert\Type("int") + * @Type("int") + */ + protected $size; + + /** + * Type of the media file + * + * @var string|null + * @SerializedName("file_type") + * @Assert\Choice({ "project", "image", "sound", "video", "other" }) + * @Assert\Type("string") + * @Type("string") + */ + protected $file_type; + + /** + * Constructor + * @param mixed[] $data Associated array of property values initializing the model + */ + public function __construct(array $data = null) + { + $this->id = isset($data['id']) ? $data['id'] : null; + $this->name = isset($data['name']) ? $data['name'] : null; + $this->flavors = isset($data['flavors']) ? $data['flavors'] : null; + $this->packages = isset($data['packages']) ? $data['packages'] : null; + $this->category = isset($data['category']) ? $data['category'] : null; + $this->author = isset($data['author']) ? $data['author'] : null; + $this->extension = isset($data['extension']) ? $data['extension'] : null; + $this->download_url = isset($data['download_url']) ? $data['download_url'] : null; + $this->size = isset($data['size']) ? $data['size'] : null; + $this->file_type = isset($data['file_type']) ? $data['file_type'] : null; + } + + /** + * Gets id. + * + * @return int|null + */ + public function getId(): ?int + { + return $this->id; + } + + /** + * Sets id. + * + * @param int|null $id + * + * @return $this + */ + public function setId(int $id = null) + { + $this->id = $id; + + return $this; + } + + /** + * Gets name. + * + * @return string|null + */ + public function getName(): ?string + { + return $this->name; + } + + /** + * Sets name. + * + * @param string|null $name + * + * @return $this + */ + public function setName(string $name = null) + { + $this->name = $name; + + return $this; + } + + /** + * Gets flavors. + * + * @return string[]|null + */ + public function getFlavors(): ?array + { + return $this->flavors; + } + + /** + * Sets flavors. + * + * @param string[]|null $flavors + * + * @return $this + */ + public function setFlavors(array $flavors = null) + { + $this->flavors = $flavors; + + return $this; + } + + /** + * Gets packages. + * + * @return string[]|null + */ + public function getPackages(): ?array + { + return $this->packages; + } + + /** + * Sets packages. + * + * @param string[]|null $packages + * + * @return $this + */ + public function setPackages(array $packages = null) + { + $this->packages = $packages; + + return $this; + } + + /** + * Gets category. + * + * @return string|null + */ + public function getCategory(): ?string + { + return $this->category; + } + + /** + * Sets category. + * + * @param string|null $category + * + * @return $this + */ + public function setCategory(string $category = null) + { + $this->category = $category; + + return $this; + } + + /** + * Gets author. + * + * @return string|null + */ + public function getAuthor(): ?string + { + return $this->author; + } + + /** + * Sets author. + * + * @param string|null $author + * + * @return $this + */ + public function setAuthor(string $author = null) + { + $this->author = $author; + + return $this; + } + + /** + * Gets extension. + * + * @return string|null + */ + public function getExtension(): ?string + { + return $this->extension; + } + + /** + * Sets extension. + * + * @param string|null $extension + * + * @return $this + */ + public function setExtension(string $extension = null) + { + $this->extension = $extension; + + return $this; + } + + /** + * Gets download_url. + * + * @return string|null + */ + public function getDownloadUrl(): ?string + { + return $this->download_url; + } + + /** + * Sets download_url. + * + * @param string|null $download_url + * + * @return $this + */ + public function setDownloadUrl(string $download_url = null) + { + $this->download_url = $download_url; + + return $this; + } + + /** + * Gets size. + * + * @return int|null + */ + public function getSize(): ?int + { + return $this->size; + } + + /** + * Sets size. + * + * @param int|null $size Size of the file in bytes + * + * @return $this + */ + public function setSize(int $size = null) + { + $this->size = $size; + + return $this; + } + + /** + * Gets file_type. + * + * @return string|null + */ + public function getFileType(): ?string + { + return $this->file_type; + } + + /** + * Sets file_type. + * + * @param string|null $file_type Type of the media file + * + * @return $this + */ + public function setFileType(string $file_type = null) + { + $this->file_type = $file_type; + + return $this; + } } + + diff --git a/Model/MediaPackageResponse.php b/Model/MediaPackageResponse.php index c91d10c8..0b488b85 100755 --- a/Model/MediaPackageResponse.php +++ b/Model/MediaPackageResponse.php @@ -1,24 +1,24 @@ ") - */ - protected $categories; - - /** - * Constructor. - * - * @param mixed[] $data Associated array of property values initializing the model - */ - public function __construct(array $data = null) - { - $this->id = isset($data['id']) ? $data['id'] : null; - $this->name = isset($data['name']) ? $data['name'] : null; - $this->url = isset($data['url']) ? $data['url'] : null; - $this->categories = isset($data['categories']) ? $data['categories'] : null; - } - - /** - * Gets id. - */ - public function getId(): ?int - { - return $this->id; - } - - /** - * Sets id. - * - * @param int|null $id ID of the package - * - * @return $this - */ - public function setId(int $id = null) - { - $this->id = $id; - - return $this; - } - - /** - * Gets name. - */ - public function getName(): ?string - { - return $this->name; - } - - /** - * Sets name. - * - * @param string|null $name Name of the package - * - * @return $this - */ - public function setName(string $name = null) - { - $this->name = $name; - - return $this; - } - - /** - * Gets url. - */ - public function getUrl(): ?string - { - return $this->url; - } - - /** - * Sets url. - * - * @param string|null $url Absolute path to the package - * - * @return $this - */ - public function setUrl(string $url = null) - { - $this->url = $url; - - return $this; - } - - /** - * Gets categories. - * - * @return array[]|null - */ - public function getCategories(): ?array - { - return $this->categories; - } - - /** - * Sets categories. - * - * @param array[]|null $categories - * - * @return $this - */ - public function setCategories(array $categories = null) - { - $this->categories = $categories; - - return $this; - } + /** + * ID of the package + * + * @var int|null + * @SerializedName("id") + * @Assert\Type("int") + * @Type("int") + */ + protected $id; + + /** + * Name of the package + * + * @var string|null + * @SerializedName("name") + * @Assert\Type("string") + * @Type("string") + */ + protected $name; + + /** + * Absolute path to the package + * + * @var string|null + * @SerializedName("url") + * @Assert\Type("string") + * @Type("string") + */ + protected $url; + + /** + * @var array[]|null + * @SerializedName("categories") + * @Assert\All({ + * @Assert\Type("OpenAPI\Server\Model\MediaCategoryResponse") + * }) + * @Type("array") + */ + protected $categories; + + /** + * Constructor + * @param mixed[] $data Associated array of property values initializing the model + */ + public function __construct(array $data = null) + { + $this->id = isset($data['id']) ? $data['id'] : null; + $this->name = isset($data['name']) ? $data['name'] : null; + $this->url = isset($data['url']) ? $data['url'] : null; + $this->categories = isset($data['categories']) ? $data['categories'] : null; + } + + /** + * Gets id. + * + * @return int|null + */ + public function getId(): ?int + { + return $this->id; + } + + /** + * Sets id. + * + * @param int|null $id ID of the package + * + * @return $this + */ + public function setId(int $id = null) + { + $this->id = $id; + + return $this; + } + + /** + * Gets name. + * + * @return string|null + */ + public function getName(): ?string + { + return $this->name; + } + + /** + * Sets name. + * + * @param string|null $name Name of the package + * + * @return $this + */ + public function setName(string $name = null) + { + $this->name = $name; + + return $this; + } + + /** + * Gets url. + * + * @return string|null + */ + public function getUrl(): ?string + { + return $this->url; + } + + /** + * Sets url. + * + * @param string|null $url Absolute path to the package + * + * @return $this + */ + public function setUrl(string $url = null) + { + $this->url = $url; + + return $this; + } + + /** + * Gets categories. + * + * @return array[]|null + */ + public function getCategories(): ?array + { + return $this->categories; + } + + /** + * Sets categories. + * + * @param array[]|null $categories + * + * @return $this + */ + public function setCategories(array $categories = null) + { + $this->categories = $categories; + + return $this; + } } + + diff --git a/Model/NotificationContent.php b/Model/NotificationContent.php index c7ebcccd..337a6ceb 100755 --- a/Model/NotificationContent.php +++ b/Model/NotificationContent.php @@ -1,24 +1,24 @@ from = isset($data['from']) ? $data['from'] : null; - $this->from_name = isset($data['from_name']) ? $data['from_name'] : null; - $this->program = isset($data['program']) ? $data['program'] : null; - $this->program_name = isset($data['program_name']) ? $data['program_name'] : null; - $this->avatar = isset($data['avatar']) ? $data['avatar'] : null; - $this->remixed_program = isset($data['remixed_program']) ? $data['remixed_program'] : null; - $this->remixed_program_name = isset($data['remixed_program_name']) ? $data['remixed_program_name'] : null; - $this->message = isset($data['message']) ? $data['message'] : null; - $this->prize = isset($data['prize']) ? $data['prize'] : null; - } - - /** - * Gets from. - */ - public function getFrom(): ?string - { - return $this->from; - } - - /** - * Sets from. - * - * @param string|null $from Id of the user who caused the notification - * - * @return $this - */ - public function setFrom(string $from = null) - { - $this->from = $from; - - return $this; - } - - /** - * Gets from_name. - */ - public function getFromName(): ?string - { - return $this->from_name; - } - - /** - * Sets from_name. - * - * @param string|null $from_name Username of the user who caused the notification - * - * @return $this - */ - public function setFromName(string $from_name = null) - { - $this->from_name = $from_name; - - return $this; - } - - /** - * Gets program. - */ - public function getProgram(): ?string - { - return $this->program; - } - - /** - * Sets program. - * - * @param string|null $program Id of the program for which the notification is about - * - * @return $this - */ - public function setProgram(string $program = null) - { - $this->program = $program; - - return $this; - } - - /** - * Gets program_name. - */ - public function getProgramName(): ?string - { - return $this->program_name; - } - - /** - * Sets program_name. - * - * @param string|null $program_name Name of the program for which the notification is about - * - * @return $this - */ - public function setProgramName(string $program_name = null) - { - $this->program_name = $program_name; - - return $this; - } - - /** - * Gets avatar. - */ - public function getAvatar(): ?string - { - return $this->avatar; - } - - /** - * Sets avatar. - * - * @param string|null $avatar Avatar of the user who caused the notification - * - * @return $this - */ - public function setAvatar(string $avatar = null) - { - $this->avatar = $avatar; - - return $this; - } - - /** - * Gets remixed_program. - */ - public function getRemixedProgram(): ?string - { - return $this->remixed_program; - } - - /** - * Sets remixed_program. - * - * @param string|null $remixed_program Id of the remixed program - * - * @return $this - */ - public function setRemixedProgram(string $remixed_program = null) - { - $this->remixed_program = $remixed_program; - - return $this; - } - - /** - * Gets remixed_program_name. - */ - public function getRemixedProgramName(): ?string - { - return $this->remixed_program_name; - } - - /** - * Sets remixed_program_name. - * - * @param string|null $remixed_program_name Name of the remixed program - * - * @return $this - */ - public function setRemixedProgramName(string $remixed_program_name = null) - { - $this->remixed_program_name = $remixed_program_name; - - return $this; - } - - /** - * Gets message. - */ - public function getMessage(): ?string - { - return $this->message; - } - - /** - * Sets message. - * - * @param string|null $message Notification message - * - * @return $this - */ - public function setMessage(string $message = null) - { - $this->message = $message; - - return $this; - } - - /** - * Gets prize. - */ - public function getPrize(): ?string - { - return $this->prize; - } - - /** - * Sets prize. - * - * @param string|null $prize Prize for anniversary notifications - * - * @return $this - */ - public function setPrize(string $prize = null) - { - $this->prize = $prize; - - return $this; - } + /** + * Id of the user who caused the notification + * + * @var string|null + * @SerializedName("from") + * @Assert\Type("string") + * @Type("string") + */ + protected $from; + + /** + * Username of the user who caused the notification + * + * @var string|null + * @SerializedName("from_name") + * @Assert\Type("string") + * @Type("string") + */ + protected $from_name; + + /** + * Id of the program for which the notification is about + * + * @var string|null + * @SerializedName("program") + * @Assert\Type("string") + * @Type("string") + */ + protected $program; + + /** + * Name of the program for which the notification is about + * + * @var string|null + * @SerializedName("program_name") + * @Assert\Type("string") + * @Type("string") + */ + protected $program_name; + + /** + * Avatar of the user who caused the notification + * + * @var string|null + * @SerializedName("avatar") + * @Assert\Type("string") + * @Type("string") + */ + protected $avatar; + + /** + * Id of the remixed program + * + * @var string|null + * @SerializedName("remixed_program") + * @Assert\Type("string") + * @Type("string") + */ + protected $remixed_program; + + /** + * Name of the remixed program + * + * @var string|null + * @SerializedName("remixed_program_name") + * @Assert\Type("string") + * @Type("string") + */ + protected $remixed_program_name; + + /** + * Notification message + * + * @var string|null + * @SerializedName("message") + * @Assert\Type("string") + * @Type("string") + */ + protected $message; + + /** + * Prize for anniversary notifications + * + * @var string|null + * @SerializedName("prize") + * @Assert\Type("string") + * @Type("string") + */ + protected $prize; + + /** + * Constructor + * @param mixed[] $data Associated array of property values initializing the model + */ + public function __construct(array $data = null) + { + $this->from = isset($data['from']) ? $data['from'] : null; + $this->from_name = isset($data['from_name']) ? $data['from_name'] : null; + $this->program = isset($data['program']) ? $data['program'] : null; + $this->program_name = isset($data['program_name']) ? $data['program_name'] : null; + $this->avatar = isset($data['avatar']) ? $data['avatar'] : null; + $this->remixed_program = isset($data['remixed_program']) ? $data['remixed_program'] : null; + $this->remixed_program_name = isset($data['remixed_program_name']) ? $data['remixed_program_name'] : null; + $this->message = isset($data['message']) ? $data['message'] : null; + $this->prize = isset($data['prize']) ? $data['prize'] : null; + } + + /** + * Gets from. + * + * @return string|null + */ + public function getFrom(): ?string + { + return $this->from; + } + + /** + * Sets from. + * + * @param string|null $from Id of the user who caused the notification + * + * @return $this + */ + public function setFrom(string $from = null) + { + $this->from = $from; + + return $this; + } + + /** + * Gets from_name. + * + * @return string|null + */ + public function getFromName(): ?string + { + return $this->from_name; + } + + /** + * Sets from_name. + * + * @param string|null $from_name Username of the user who caused the notification + * + * @return $this + */ + public function setFromName(string $from_name = null) + { + $this->from_name = $from_name; + + return $this; + } + + /** + * Gets program. + * + * @return string|null + */ + public function getProgram(): ?string + { + return $this->program; + } + + /** + * Sets program. + * + * @param string|null $program Id of the program for which the notification is about + * + * @return $this + */ + public function setProgram(string $program = null) + { + $this->program = $program; + + return $this; + } + + /** + * Gets program_name. + * + * @return string|null + */ + public function getProgramName(): ?string + { + return $this->program_name; + } + + /** + * Sets program_name. + * + * @param string|null $program_name Name of the program for which the notification is about + * + * @return $this + */ + public function setProgramName(string $program_name = null) + { + $this->program_name = $program_name; + + return $this; + } + + /** + * Gets avatar. + * + * @return string|null + */ + public function getAvatar(): ?string + { + return $this->avatar; + } + + /** + * Sets avatar. + * + * @param string|null $avatar Avatar of the user who caused the notification + * + * @return $this + */ + public function setAvatar(string $avatar = null) + { + $this->avatar = $avatar; + + return $this; + } + + /** + * Gets remixed_program. + * + * @return string|null + */ + public function getRemixedProgram(): ?string + { + return $this->remixed_program; + } + + /** + * Sets remixed_program. + * + * @param string|null $remixed_program Id of the remixed program + * + * @return $this + */ + public function setRemixedProgram(string $remixed_program = null) + { + $this->remixed_program = $remixed_program; + + return $this; + } + + /** + * Gets remixed_program_name. + * + * @return string|null + */ + public function getRemixedProgramName(): ?string + { + return $this->remixed_program_name; + } + + /** + * Sets remixed_program_name. + * + * @param string|null $remixed_program_name Name of the remixed program + * + * @return $this + */ + public function setRemixedProgramName(string $remixed_program_name = null) + { + $this->remixed_program_name = $remixed_program_name; + + return $this; + } + + /** + * Gets message. + * + * @return string|null + */ + public function getMessage(): ?string + { + return $this->message; + } + + /** + * Sets message. + * + * @param string|null $message Notification message + * + * @return $this + */ + public function setMessage(string $message = null) + { + $this->message = $message; + + return $this; + } + + /** + * Gets prize. + * + * @return string|null + */ + public function getPrize(): ?string + { + return $this->prize; + } + + /** + * Sets prize. + * + * @param string|null $prize Prize for anniversary notifications + * + * @return $this + */ + public function setPrize(string $prize = null) + { + $this->prize = $prize; + + return $this; + } } + + diff --git a/Model/NotificationResponse.php b/Model/NotificationResponse.php index 13d65504..cba90372 100755 --- a/Model/NotificationResponse.php +++ b/Model/NotificationResponse.php @@ -1,24 +1,24 @@ ") - */ - protected $content; - - /** - * Constructor. - * - * @param mixed[] $data Associated array of property values initializing the model - */ - public function __construct(array $data = null) - { - $this->id = isset($data['id']) ? $data['id'] : null; - $this->type = isset($data['type']) ? $data['type'] : null; - $this->seen = isset($data['seen']) ? $data['seen'] : null; - $this->content = isset($data['content']) ? $data['content'] : null; - } - - /** - * Gets id. - */ - public function getId(): ?int - { - return $this->id; - } - - /** - * Sets id. - * - * @param int|null $id Id of the notification - * - * @return $this - */ - public function setId(int $id = null) - { - $this->id = $id; - - return $this; - } - - /** - * Gets type. - */ - public function getType(): ?string - { - return $this->type; - } - - /** - * Sets type. - * - * @param string|null $type Notification Type - * - * @return $this - */ - public function setType(string $type = null) - { - $this->type = $type; - - return $this; - } - - /** - * Gets seen. - */ - public function isSeen(): ?bool - { - return $this->seen; - } - - /** - * Sets seen. - * - * @param bool|null $seen Seen status of the notification - * - * @return $this - */ - public function setSeen(bool $seen = null) - { - $this->seen = $seen; - - return $this; - } - - /** - * Gets content. - * - * @return OpenAPI\Server\Model\NotificationContent[]|null - */ - public function getContent(): ?array - { - return $this->content; - } - - /** - * Sets content. - * - * @param OpenAPI\Server\Model\NotificationContent[]|null $content - * - * @return $this - */ - public function setContent(array $content = null) - { - $this->content = $content; - - return $this; - } + /** + * Id of the notification + * + * @var int|null + * @SerializedName("id") + * @Assert\Type("int") + * @Type("int") + */ + protected $id; + + /** + * Notification Type + * + * @var string|null + * @SerializedName("type") + * @Assert\Type("string") + * @Type("string") + */ + protected $type; + + /** + * Seen status of the notification + * + * @var bool|null + * @SerializedName("seen") + * @Assert\Type("bool") + * @Type("bool") + */ + protected $seen; + + /** + * @var OpenAPI\Server\Model\NotificationContent[]|null + * @SerializedName("content") + * @Assert\All({ + * @Assert\Type("OpenAPI\Server\Model\NotificationContent") + * }) + * @Type("array") + */ + protected $content; + + /** + * Constructor + * @param mixed[] $data Associated array of property values initializing the model + */ + public function __construct(array $data = null) + { + $this->id = isset($data['id']) ? $data['id'] : null; + $this->type = isset($data['type']) ? $data['type'] : null; + $this->seen = isset($data['seen']) ? $data['seen'] : null; + $this->content = isset($data['content']) ? $data['content'] : null; + } + + /** + * Gets id. + * + * @return int|null + */ + public function getId(): ?int + { + return $this->id; + } + + /** + * Sets id. + * + * @param int|null $id Id of the notification + * + * @return $this + */ + public function setId(int $id = null) + { + $this->id = $id; + + return $this; + } + + /** + * Gets type. + * + * @return string|null + */ + public function getType(): ?string + { + return $this->type; + } + + /** + * Sets type. + * + * @param string|null $type Notification Type + * + * @return $this + */ + public function setType(string $type = null) + { + $this->type = $type; + + return $this; + } + + /** + * Gets seen. + * + * @return bool|null + */ + public function isSeen(): ?bool + { + return $this->seen; + } + + /** + * Sets seen. + * + * @param bool|null $seen Seen status of the notification + * + * @return $this + */ + public function setSeen(bool $seen = null) + { + $this->seen = $seen; + + return $this; + } + + /** + * Gets content. + * + * @return OpenAPI\Server\Model\NotificationContent[]|null + */ + public function getContent(): ?array + { + return $this->content; + } + + /** + * Sets content. + * + * @param OpenAPI\Server\Model\NotificationContent[]|null $content + * + * @return $this + */ + public function setContent(array $content = null) + { + $this->content = $content; + + return $this; + } } + + diff --git a/Model/NotificationsCountResponse.php b/Model/NotificationsCountResponse.php index 34094363..26b6dedf 100755 --- a/Model/NotificationsCountResponse.php +++ b/Model/NotificationsCountResponse.php @@ -1,24 +1,24 @@ total = isset($data['total']) ? $data['total'] : null; - $this->like = isset($data['like']) ? $data['like'] : null; - $this->follower = isset($data['follower']) ? $data['follower'] : null; - $this->comment = isset($data['comment']) ? $data['comment'] : null; - $this->remix = isset($data['remix']) ? $data['remix'] : null; - } - - /** - * Gets total. - */ - public function getTotal(): ?int - { - return $this->total; - } - - /** - * Sets total. - * - * @return $this - */ - public function setTotal(int $total = null) - { - $this->total = $total; - - return $this; - } - - /** - * Gets like. - */ - public function getLike(): ?int - { - return $this->like; - } - - /** - * Sets like. - * - * @return $this - */ - public function setLike(int $like = null) - { - $this->like = $like; - - return $this; - } - - /** - * Gets follower. - */ - public function getFollower(): ?int - { - return $this->follower; - } - - /** - * Sets follower. - * - * @return $this - */ - public function setFollower(int $follower = null) - { - $this->follower = $follower; - - return $this; - } - - /** - * Gets comment. - */ - public function getComment(): ?int - { - return $this->comment; - } - - /** - * Sets comment. - * - * @return $this - */ - public function setComment(int $comment = null) - { - $this->comment = $comment; - - return $this; - } - - /** - * Gets remix. - */ - public function getRemix(): ?int - { - return $this->remix; - } - - /** - * Sets remix. - * - * @return $this - */ - public function setRemix(int $remix = null) - { - $this->remix = $remix; - - return $this; - } + /** + * @var int|null + * @SerializedName("total") + * @Assert\Type("int") + * @Type("int") + */ + protected $total; + + /** + * @var int|null + * @SerializedName("like") + * @Assert\Type("int") + * @Type("int") + */ + protected $like; + + /** + * @var int|null + * @SerializedName("follower") + * @Assert\Type("int") + * @Type("int") + */ + protected $follower; + + /** + * @var int|null + * @SerializedName("comment") + * @Assert\Type("int") + * @Type("int") + */ + protected $comment; + + /** + * @var int|null + * @SerializedName("remix") + * @Assert\Type("int") + * @Type("int") + */ + protected $remix; + + /** + * Constructor + * @param mixed[] $data Associated array of property values initializing the model + */ + public function __construct(array $data = null) + { + $this->total = isset($data['total']) ? $data['total'] : null; + $this->like = isset($data['like']) ? $data['like'] : null; + $this->follower = isset($data['follower']) ? $data['follower'] : null; + $this->comment = isset($data['comment']) ? $data['comment'] : null; + $this->remix = isset($data['remix']) ? $data['remix'] : null; + } + + /** + * Gets total. + * + * @return int|null + */ + public function getTotal(): ?int + { + return $this->total; + } + + /** + * Sets total. + * + * @param int|null $total + * + * @return $this + */ + public function setTotal(int $total = null) + { + $this->total = $total; + + return $this; + } + + /** + * Gets like. + * + * @return int|null + */ + public function getLike(): ?int + { + return $this->like; + } + + /** + * Sets like. + * + * @param int|null $like + * + * @return $this + */ + public function setLike(int $like = null) + { + $this->like = $like; + + return $this; + } + + /** + * Gets follower. + * + * @return int|null + */ + public function getFollower(): ?int + { + return $this->follower; + } + + /** + * Sets follower. + * + * @param int|null $follower + * + * @return $this + */ + public function setFollower(int $follower = null) + { + $this->follower = $follower; + + return $this; + } + + /** + * Gets comment. + * + * @return int|null + */ + public function getComment(): ?int + { + return $this->comment; + } + + /** + * Sets comment. + * + * @param int|null $comment + * + * @return $this + */ + public function setComment(int $comment = null) + { + $this->comment = $comment; + + return $this; + } + + /** + * Gets remix. + * + * @return int|null + */ + public function getRemix(): ?int + { + return $this->remix; + } + + /** + * Sets remix. + * + * @param int|null $remix + * + * @return $this + */ + public function setRemix(int $remix = null) + { + $this->remix = $remix; + + return $this; + } } + + diff --git a/Model/NotificationsType.php b/Model/NotificationsType.php index 43e3346a..15547560 100755 --- a/Model/NotificationsType.php +++ b/Model/NotificationsType.php @@ -1,24 +1,24 @@ id_token = isset($data['id_token']) ? $data['id_token'] : null; - $this->resource_owner = isset($data['resource_owner']) ? $data['resource_owner'] : null; - } + /** + * Constructor + * @param mixed[] $data Associated array of property values initializing the model + */ + public function __construct(array $data = null) + { + $this->id_token = isset($data['id_token']) ? $data['id_token'] : null; + $this->resource_owner = isset($data['resource_owner']) ? $data['resource_owner'] : null; + } - /** - * Gets id_token. - */ - public function getIdToken(): ?string - { - return $this->id_token; - } + /** + * Gets id_token. + * + * @return string|null + */ + public function getIdToken(): ?string + { + return $this->id_token; + } - /** - * Sets id_token. - * - * @param string|null $id_token User ID token - * - * @return $this - */ - public function setIdToken(string $id_token = null) - { - $this->id_token = $id_token; + /** + * Sets id_token. + * + * @param string|null $id_token User ID token + * + * @return $this + */ + public function setIdToken(string $id_token = null) + { + $this->id_token = $id_token; - return $this; - } + return $this; + } - /** - * Gets resource_owner. - */ - public function getResourceOwner(): ?string - { - return $this->resource_owner; - } + /** + * Gets resource_owner. + * + * @return string|null + */ + public function getResourceOwner(): ?string + { + return $this->resource_owner; + } - /** - * Sets resource_owner. - * - * @param string|null $resource_owner OAuth provider - * - * @return $this - */ - public function setResourceOwner(string $resource_owner = null) - { - $this->resource_owner = $resource_owner; + /** + * Sets resource_owner. + * + * @param string|null $resource_owner OAuth provider + * + * @return $this + */ + public function setResourceOwner(string $resource_owner = null) + { + $this->resource_owner = $resource_owner; - return $this; - } + return $this; + } } + + diff --git a/Model/ProjectReportRequest.php b/Model/ProjectReportRequest.php index 6bc4b6e0..04719d65 100755 --- a/Model/ProjectReportRequest.php +++ b/Model/ProjectReportRequest.php @@ -1,24 +1,24 @@ category = isset($data['category']) ? $data['category'] : null; - } + /** + * Constructor + * @param mixed[] $data Associated array of property values initializing the model + */ + public function __construct(array $data = null) + { + $this->category = isset($data['category']) ? $data['category'] : null; + } - /** - * Gets category. - */ - public function getCategory(): ?string - { - return $this->category; - } + /** + * Gets category. + * + * @return string|null + */ + public function getCategory(): ?string + { + return $this->category; + } - /** - * Sets category. - * - * @return $this - */ - public function setCategory(string $category = null) - { - $this->category = $category; + /** + * Sets category. + * + * @param string|null $category + * + * @return $this + */ + public function setCategory(string $category = null) + { + $this->category = $category; - return $this; - } + return $this; + } } + + diff --git a/Model/ProjectResponse.php b/Model/ProjectResponse.php index c5d49e5e..2134dfd7 100755 --- a/Model/ProjectResponse.php +++ b/Model/ProjectResponse.php @@ -1,24 +1,24 @@ ") - */ - protected $tags; - - /** - * @var int|null - * @SerializedName("uploaded") - * @Assert\Type("int") - * @Type("int") - */ - protected $uploaded; - - /** - * @var string|null - * @SerializedName("uploaded_string") - * @Assert\Type("string") - * @Type("string") - */ - protected $uploaded_string; - - /** - * @var string|null - * @SerializedName("screenshot_large") - * @Assert\Type("string") - * @Type("string") - */ - protected $screenshot_large; - - /** - * @var string|null - * @SerializedName("screenshot_small") - * @Assert\Type("string") - * @Type("string") - */ - protected $screenshot_small; - - /** - * @var string|null - * @SerializedName("project_url") - * @Assert\Type("string") - * @Type("string") - */ - protected $project_url; - - /** - * @var string|null - * @SerializedName("download_url") - * @Assert\Type("string") - * @Type("string") - */ - protected $download_url; - - /** - * filesize in megabytes. - * - * @var float|null - * @SerializedName("filesize") - * @Assert\Type("float") - * @Type("float") - */ - protected $filesize; - - /** - * Constructor. - * - * @param mixed[] $data Associated array of property values initializing the model - */ - public function __construct(array $data = null) - { - $this->id = isset($data['id']) ? $data['id'] : null; - $this->name = isset($data['name']) ? $data['name'] : null; - $this->author = isset($data['author']) ? $data['author'] : null; - $this->description = isset($data['description']) ? $data['description'] : null; - $this->version = isset($data['version']) ? $data['version'] : null; - $this->views = isset($data['views']) ? $data['views'] : null; - $this->downloads = isset($data['downloads']) ? $data['downloads'] : null; - $this->reactions = isset($data['reactions']) ? $data['reactions'] : null; - $this->comments = isset($data['comments']) ? $data['comments'] : null; - $this->private = isset($data['private']) ? $data['private'] : null; - $this->flavor = isset($data['flavor']) ? $data['flavor'] : null; - $this->tags = isset($data['tags']) ? $data['tags'] : null; - $this->uploaded = isset($data['uploaded']) ? $data['uploaded'] : null; - $this->uploaded_string = isset($data['uploaded_string']) ? $data['uploaded_string'] : null; - $this->screenshot_large = isset($data['screenshot_large']) ? $data['screenshot_large'] : null; - $this->screenshot_small = isset($data['screenshot_small']) ? $data['screenshot_small'] : null; - $this->project_url = isset($data['project_url']) ? $data['project_url'] : null; - $this->download_url = isset($data['download_url']) ? $data['download_url'] : null; - $this->filesize = isset($data['filesize']) ? $data['filesize'] : null; - } - - /** - * Gets id. - */ - public function getId(): ?string - { - return $this->id; - } - - /** - * Sets id. - * - * @return $this - */ - public function setId(string $id = null) - { - $this->id = $id; - - return $this; - } - - /** - * Gets name. - */ - public function getName(): ?string - { - return $this->name; - } - - /** - * Sets name. - * - * @return $this - */ - public function setName(string $name = null) - { - $this->name = $name; - - return $this; - } - - /** - * Gets author. - */ - public function getAuthor(): ?string - { - return $this->author; - } - - /** - * Sets author. - * - * @return $this - */ - public function setAuthor(string $author = null) - { - $this->author = $author; - - return $this; - } - - /** - * Gets description. - */ - public function getDescription(): ?string - { - return $this->description; - } - - /** - * Sets description. - * - * @return $this - */ - public function setDescription(string $description = null) - { - $this->description = $description; - - return $this; - } - - /** - * Gets version. - */ - public function getVersion(): ?string - { - return $this->version; - } - - /** - * Sets version. - * - * @return $this - */ - public function setVersion(string $version = null) - { - $this->version = $version; - - return $this; - } - - /** - * Gets views. - */ - public function getViews(): ?int - { - return $this->views; - } - - /** - * Sets views. - * - * @return $this - */ - public function setViews(int $views = null) - { - $this->views = $views; - - return $this; - } - - /** - * Gets downloads. - */ - public function getDownloads(): ?int - { - return $this->downloads; - } - - /** - * Sets downloads. - * - * @return $this - */ - public function setDownloads(int $downloads = null) - { - $this->downloads = $downloads; - - return $this; - } - - /** - * Gets reactions. - */ - public function getReactions(): ?int - { - return $this->reactions; - } - - /** - * Sets reactions. - * - * @return $this - */ - public function setReactions(int $reactions = null) - { - $this->reactions = $reactions; - - return $this; - } - - /** - * Gets comments. - */ - public function getComments(): ?int - { - return $this->comments; - } - - /** - * Sets comments. - * - * @return $this - */ - public function setComments(int $comments = null) - { - $this->comments = $comments; - - return $this; - } - - /** - * Gets private. - */ - public function isPrivate(): ?bool - { - return $this->private; - } - - /** - * Sets private. - * - * @return $this - */ - public function setPrivate(bool $private = null) - { - $this->private = $private; - - return $this; - } - - /** - * Gets flavor. - */ - public function getFlavor(): ?string - { - return $this->flavor; - } - - /** - * Sets flavor. - * - * @return $this - */ - public function setFlavor(string $flavor = null) - { - $this->flavor = $flavor; - - return $this; - } - - /** - * Gets tags. - * - * @return string[]|null - */ - public function getTags(): ?array - { - return $this->tags; - } - - /** - * Sets tags. - * - * @param string[]|null $tags - * - * @return $this - */ - public function setTags(array $tags = null) - { - $this->tags = $tags; - - return $this; - } - - /** - * Gets uploaded. - */ - public function getUploaded(): ?int - { - return $this->uploaded; - } - - /** - * Sets uploaded. - * - * @return $this - */ - public function setUploaded(int $uploaded = null) - { - $this->uploaded = $uploaded; - - return $this; - } - - /** - * Gets uploaded_string. - */ - public function getUploadedString(): ?string - { - return $this->uploaded_string; - } - - /** - * Sets uploaded_string. - * - * @return $this - */ - public function setUploadedString(string $uploaded_string = null) - { - $this->uploaded_string = $uploaded_string; - - return $this; - } - - /** - * Gets screenshot_large. - */ - public function getScreenshotLarge(): ?string - { - return $this->screenshot_large; - } - - /** - * Sets screenshot_large. - * - * @return $this - */ - public function setScreenshotLarge(string $screenshot_large = null) - { - $this->screenshot_large = $screenshot_large; - - return $this; - } - - /** - * Gets screenshot_small. - */ - public function getScreenshotSmall(): ?string - { - return $this->screenshot_small; - } - - /** - * Sets screenshot_small. - * - * @return $this - */ - public function setScreenshotSmall(string $screenshot_small = null) - { - $this->screenshot_small = $screenshot_small; - - return $this; - } - - /** - * Gets project_url. - */ - public function getProjectUrl(): ?string - { - return $this->project_url; - } - - /** - * Sets project_url. - * - * @return $this - */ - public function setProjectUrl(string $project_url = null) - { - $this->project_url = $project_url; - - return $this; - } - - /** - * Gets download_url. - */ - public function getDownloadUrl(): ?string - { - return $this->download_url; - } - - /** - * Sets download_url. - * - * @return $this - */ - public function setDownloadUrl(string $download_url = null) - { - $this->download_url = $download_url; - - return $this; - } - - /** - * Gets filesize. - */ - public function getFilesize(): ?float - { - return $this->filesize; - } - - /** - * Sets filesize. - * - * @param float|null $filesize filesize in megabytes - * - * @return $this - */ - public function setFilesize(float $filesize = null) - { - $this->filesize = $filesize; - - return $this; - } + /** + * @var string|null + * @SerializedName("id") + * @Assert\Type("string") + * @Type("string") + */ + protected $id; + + /** + * @var string|null + * @SerializedName("name") + * @Assert\Type("string") + * @Type("string") + */ + protected $name; + + /** + * @var string|null + * @SerializedName("author") + * @Assert\Type("string") + * @Type("string") + */ + protected $author; + + /** + * @var string|null + * @SerializedName("description") + * @Assert\Type("string") + * @Type("string") + */ + protected $description; + + /** + * @var string|null + * @SerializedName("version") + * @Assert\Type("string") + * @Type("string") + */ + protected $version; + + /** + * @var int|null + * @SerializedName("views") + * @Assert\Type("int") + * @Type("int") + */ + protected $views; + + /** + * @var int|null + * @SerializedName("downloads") + * @Assert\Type("int") + * @Type("int") + */ + protected $downloads; + + /** + * @var int|null + * @SerializedName("reactions") + * @Assert\Type("int") + * @Type("int") + */ + protected $reactions; + + /** + * @var int|null + * @SerializedName("comments") + * @Assert\Type("int") + * @Type("int") + */ + protected $comments; + + /** + * @var bool|null + * @SerializedName("private") + * @Assert\Type("bool") + * @Type("bool") + */ + protected $private; + + /** + * @var string|null + * @SerializedName("flavor") + * @Assert\Type("string") + * @Type("string") + */ + protected $flavor; + + /** + * @var string[]|null + * @SerializedName("tags") + * @Assert\All({ + * @Assert\Type("string") + * }) + * @Type("array") + */ + protected $tags; + + /** + * @var int|null + * @SerializedName("uploaded") + * @Assert\Type("int") + * @Type("int") + */ + protected $uploaded; + + /** + * @var string|null + * @SerializedName("uploaded_string") + * @Assert\Type("string") + * @Type("string") + */ + protected $uploaded_string; + + /** + * @var string|null + * @SerializedName("screenshot_large") + * @Assert\Type("string") + * @Type("string") + */ + protected $screenshot_large; + + /** + * @var string|null + * @SerializedName("screenshot_small") + * @Assert\Type("string") + * @Type("string") + */ + protected $screenshot_small; + + /** + * @var string|null + * @SerializedName("project_url") + * @Assert\Type("string") + * @Type("string") + */ + protected $project_url; + + /** + * @var string|null + * @SerializedName("download_url") + * @Assert\Type("string") + * @Type("string") + */ + protected $download_url; + + /** + * filesize in megabytes + * + * @var float|null + * @SerializedName("filesize") + * @Assert\Type("float") + * @Type("float") + */ + protected $filesize; + + /** + * Constructor + * @param mixed[] $data Associated array of property values initializing the model + */ + public function __construct(array $data = null) + { + $this->id = isset($data['id']) ? $data['id'] : null; + $this->name = isset($data['name']) ? $data['name'] : null; + $this->author = isset($data['author']) ? $data['author'] : null; + $this->description = isset($data['description']) ? $data['description'] : null; + $this->version = isset($data['version']) ? $data['version'] : null; + $this->views = isset($data['views']) ? $data['views'] : null; + $this->downloads = isset($data['downloads']) ? $data['downloads'] : null; + $this->reactions = isset($data['reactions']) ? $data['reactions'] : null; + $this->comments = isset($data['comments']) ? $data['comments'] : null; + $this->private = isset($data['private']) ? $data['private'] : null; + $this->flavor = isset($data['flavor']) ? $data['flavor'] : null; + $this->tags = isset($data['tags']) ? $data['tags'] : null; + $this->uploaded = isset($data['uploaded']) ? $data['uploaded'] : null; + $this->uploaded_string = isset($data['uploaded_string']) ? $data['uploaded_string'] : null; + $this->screenshot_large = isset($data['screenshot_large']) ? $data['screenshot_large'] : null; + $this->screenshot_small = isset($data['screenshot_small']) ? $data['screenshot_small'] : null; + $this->project_url = isset($data['project_url']) ? $data['project_url'] : null; + $this->download_url = isset($data['download_url']) ? $data['download_url'] : null; + $this->filesize = isset($data['filesize']) ? $data['filesize'] : null; + } + + /** + * Gets id. + * + * @return string|null + */ + public function getId(): ?string + { + return $this->id; + } + + /** + * Sets id. + * + * @param string|null $id + * + * @return $this + */ + public function setId(string $id = null) + { + $this->id = $id; + + return $this; + } + + /** + * Gets name. + * + * @return string|null + */ + public function getName(): ?string + { + return $this->name; + } + + /** + * Sets name. + * + * @param string|null $name + * + * @return $this + */ + public function setName(string $name = null) + { + $this->name = $name; + + return $this; + } + + /** + * Gets author. + * + * @return string|null + */ + public function getAuthor(): ?string + { + return $this->author; + } + + /** + * Sets author. + * + * @param string|null $author + * + * @return $this + */ + public function setAuthor(string $author = null) + { + $this->author = $author; + + return $this; + } + + /** + * Gets description. + * + * @return string|null + */ + public function getDescription(): ?string + { + return $this->description; + } + + /** + * Sets description. + * + * @param string|null $description + * + * @return $this + */ + public function setDescription(string $description = null) + { + $this->description = $description; + + return $this; + } + + /** + * Gets version. + * + * @return string|null + */ + public function getVersion(): ?string + { + return $this->version; + } + + /** + * Sets version. + * + * @param string|null $version + * + * @return $this + */ + public function setVersion(string $version = null) + { + $this->version = $version; + + return $this; + } + + /** + * Gets views. + * + * @return int|null + */ + public function getViews(): ?int + { + return $this->views; + } + + /** + * Sets views. + * + * @param int|null $views + * + * @return $this + */ + public function setViews(int $views = null) + { + $this->views = $views; + + return $this; + } + + /** + * Gets downloads. + * + * @return int|null + */ + public function getDownloads(): ?int + { + return $this->downloads; + } + + /** + * Sets downloads. + * + * @param int|null $downloads + * + * @return $this + */ + public function setDownloads(int $downloads = null) + { + $this->downloads = $downloads; + + return $this; + } + + /** + * Gets reactions. + * + * @return int|null + */ + public function getReactions(): ?int + { + return $this->reactions; + } + + /** + * Sets reactions. + * + * @param int|null $reactions + * + * @return $this + */ + public function setReactions(int $reactions = null) + { + $this->reactions = $reactions; + + return $this; + } + + /** + * Gets comments. + * + * @return int|null + */ + public function getComments(): ?int + { + return $this->comments; + } + + /** + * Sets comments. + * + * @param int|null $comments + * + * @return $this + */ + public function setComments(int $comments = null) + { + $this->comments = $comments; + + return $this; + } + + /** + * Gets private. + * + * @return bool|null + */ + public function isPrivate(): ?bool + { + return $this->private; + } + + /** + * Sets private. + * + * @param bool|null $private + * + * @return $this + */ + public function setPrivate(bool $private = null) + { + $this->private = $private; + + return $this; + } + + /** + * Gets flavor. + * + * @return string|null + */ + public function getFlavor(): ?string + { + return $this->flavor; + } + + /** + * Sets flavor. + * + * @param string|null $flavor + * + * @return $this + */ + public function setFlavor(string $flavor = null) + { + $this->flavor = $flavor; + + return $this; + } + + /** + * Gets tags. + * + * @return string[]|null + */ + public function getTags(): ?array + { + return $this->tags; + } + + /** + * Sets tags. + * + * @param string[]|null $tags + * + * @return $this + */ + public function setTags(array $tags = null) + { + $this->tags = $tags; + + return $this; + } + + /** + * Gets uploaded. + * + * @return int|null + */ + public function getUploaded(): ?int + { + return $this->uploaded; + } + + /** + * Sets uploaded. + * + * @param int|null $uploaded + * + * @return $this + */ + public function setUploaded(int $uploaded = null) + { + $this->uploaded = $uploaded; + + return $this; + } + + /** + * Gets uploaded_string. + * + * @return string|null + */ + public function getUploadedString(): ?string + { + return $this->uploaded_string; + } + + /** + * Sets uploaded_string. + * + * @param string|null $uploaded_string + * + * @return $this + */ + public function setUploadedString(string $uploaded_string = null) + { + $this->uploaded_string = $uploaded_string; + + return $this; + } + + /** + * Gets screenshot_large. + * + * @return string|null + */ + public function getScreenshotLarge(): ?string + { + return $this->screenshot_large; + } + + /** + * Sets screenshot_large. + * + * @param string|null $screenshot_large + * + * @return $this + */ + public function setScreenshotLarge(string $screenshot_large = null) + { + $this->screenshot_large = $screenshot_large; + + return $this; + } + + /** + * Gets screenshot_small. + * + * @return string|null + */ + public function getScreenshotSmall(): ?string + { + return $this->screenshot_small; + } + + /** + * Sets screenshot_small. + * + * @param string|null $screenshot_small + * + * @return $this + */ + public function setScreenshotSmall(string $screenshot_small = null) + { + $this->screenshot_small = $screenshot_small; + + return $this; + } + + /** + * Gets project_url. + * + * @return string|null + */ + public function getProjectUrl(): ?string + { + return $this->project_url; + } + + /** + * Sets project_url. + * + * @param string|null $project_url + * + * @return $this + */ + public function setProjectUrl(string $project_url = null) + { + $this->project_url = $project_url; + + return $this; + } + + /** + * Gets download_url. + * + * @return string|null + */ + public function getDownloadUrl(): ?string + { + return $this->download_url; + } + + /** + * Sets download_url. + * + * @param string|null $download_url + * + * @return $this + */ + public function setDownloadUrl(string $download_url = null) + { + $this->download_url = $download_url; + + return $this; + } + + /** + * Gets filesize. + * + * @return float|null + */ + public function getFilesize(): ?float + { + return $this->filesize; + } + + /** + * Sets filesize. + * + * @param float|null $filesize filesize in megabytes + * + * @return $this + */ + public function setFilesize(float $filesize = null) + { + $this->filesize = $filesize; + + return $this; + } } + + diff --git a/Model/ProjectsCategory.php b/Model/ProjectsCategory.php index 71eb7fd7..7a6b419a 100755 --- a/Model/ProjectsCategory.php +++ b/Model/ProjectsCategory.php @@ -1,24 +1,24 @@ ") - */ - protected $projects_list; - - /** - * Constructor. - * - * @param mixed[] $data Associated array of property values initializing the model - */ - public function __construct(array $data = null) - { - $this->type = isset($data['type']) ? $data['type'] : null; - $this->name = isset($data['name']) ? $data['name'] : null; - $this->projects_list = isset($data['projects_list']) ? $data['projects_list'] : null; - } - - /** - * Gets type. - */ - public function getType(): ?string - { - return $this->type; - } - - /** - * Sets type. - * - * @param string|null $type the name of the categories in english - * - * @return $this - */ - public function setType(string $type = null) - { - $this->type = $type; - - return $this; - } - - /** - * Gets name. - */ - public function getName(): ?string - { - return $this->name; - } - - /** - * Sets name. - * - * @param string|null $name Translated name according to the language header - * - * @return $this - */ - public function setName(string $name = null) - { - $this->name = $name; - - return $this; - } - - /** - * Gets projects_list. - * - * @return OpenAPI\Server\Model\ProjectResponse[]|null - */ - public function getProjectsList(): ?array - { - return $this->projects_list; - } - - /** - * Sets projects_list. - * - * @param OpenAPI\Server\Model\ProjectResponse[]|null $projects_list Array of projects - * - * @return $this - */ - public function setProjectsList(array $projects_list = null) - { - $this->projects_list = $projects_list; - - return $this; - } + /** + * The name of the categories in english. + * + * @var string|null + * @SerializedName("type") + * @Assert\Type("string") + * @Type("string") + */ + protected $type; + + /** + * Translated name according to the language header + * + * @var string|null + * @SerializedName("name") + * @Assert\Type("string") + * @Type("string") + */ + protected $name; + + /** + * Array of projects + * + * @var OpenAPI\Server\Model\ProjectResponse[]|null + * @SerializedName("projectsList") + * @Assert\All({ + * @Assert\Type("OpenAPI\Server\Model\ProjectResponse") + * }) + * @Type("array") + */ + protected $projects_list; + + /** + * Constructor + * @param mixed[] $data Associated array of property values initializing the model + */ + public function __construct(array $data = null) + { + $this->type = isset($data['type']) ? $data['type'] : null; + $this->name = isset($data['name']) ? $data['name'] : null; + $this->projects_list = isset($data['projects_list']) ? $data['projects_list'] : null; + } + + /** + * Gets type. + * + * @return string|null + */ + public function getType(): ?string + { + return $this->type; + } + + /** + * Sets type. + * + * @param string|null $type The name of the categories in english. + * + * @return $this + */ + public function setType(string $type = null) + { + $this->type = $type; + + return $this; + } + + /** + * Gets name. + * + * @return string|null + */ + public function getName(): ?string + { + return $this->name; + } + + /** + * Sets name. + * + * @param string|null $name Translated name according to the language header + * + * @return $this + */ + public function setName(string $name = null) + { + $this->name = $name; + + return $this; + } + + /** + * Gets projects_list. + * + * @return OpenAPI\Server\Model\ProjectResponse[]|null + */ + public function getProjectsList(): ?array + { + return $this->projects_list; + } + + /** + * Sets projects_list. + * + * @param OpenAPI\Server\Model\ProjectResponse[]|null $projects_list Array of projects + * + * @return $this + */ + public function setProjectsList(array $projects_list = null) + { + $this->projects_list = $projects_list; + + return $this; + } } + + diff --git a/Model/RefreshRequest.php b/Model/RefreshRequest.php index 981ad07c..ac0604cd 100755 --- a/Model/RefreshRequest.php +++ b/Model/RefreshRequest.php @@ -1,24 +1,24 @@ refresh_token = isset($data['refresh_token']) ? $data['refresh_token'] : null; - } + /** + * Constructor + * @param mixed[] $data Associated array of property values initializing the model + */ + public function __construct(array $data = null) + { + $this->refresh_token = isset($data['refresh_token']) ? $data['refresh_token'] : null; + } - /** - * Gets refresh_token. - */ - public function getRefreshToken(): ?string - { - return $this->refresh_token; - } + /** + * Gets refresh_token. + * + * @return string|null + */ + public function getRefreshToken(): ?string + { + return $this->refresh_token; + } - /** - * Sets refresh_token. - * - * @return $this - */ - public function setRefreshToken(string $refresh_token = null) - { - $this->refresh_token = $refresh_token; + /** + * Sets refresh_token. + * + * @param string|null $refresh_token + * + * @return $this + */ + public function setRefreshToken(string $refresh_token = null) + { + $this->refresh_token = $refresh_token; - return $this; - } + return $this; + } } + + diff --git a/Model/RegisterErrorResponse.php b/Model/RegisterErrorResponse.php index 55742e67..c56e8749 100755 --- a/Model/RegisterErrorResponse.php +++ b/Model/RegisterErrorResponse.php @@ -1,24 +1,24 @@ email = isset($data['email']) ? $data['email'] : null; - $this->username = isset($data['username']) ? $data['username'] : null; - $this->password = isset($data['password']) ? $data['password'] : null; - } - - /** - * Gets email. - */ - public function getEmail(): ?string - { - return $this->email; - } - - /** - * Sets email. - * - * @return $this - */ - public function setEmail(string $email = null) - { - $this->email = $email; - - return $this; - } - - /** - * Gets username. - */ - public function getUsername(): ?string - { - return $this->username; - } - - /** - * Sets username. - * - * @return $this - */ - public function setUsername(string $username = null) - { - $this->username = $username; - - return $this; - } - - /** - * Gets password. - */ - public function getPassword(): ?string - { - return $this->password; - } - - /** - * Sets password. - * - * @return $this - */ - public function setPassword(string $password = null) - { - $this->password = $password; - - return $this; - } + /** + * @var string|null + * @SerializedName("email") + * @Assert\Choice({ "Email already in use", "Email invalid", "Email missing" }) + * @Assert\Type("string") + * @Type("string") + */ + protected $email; + + /** + * @var string|null + * @SerializedName("username") + * @Assert\Choice({ "Username too short", "Username too long", "Username already in use", "Username missing", "Username must not contain an email address" }) + * @Assert\Type("string") + * @Type("string") + */ + protected $username; + + /** + * @var string|null + * @SerializedName("password") + * @Assert\Choice({ "Password too short", "Password too long", "Password contains invalid chars", "Password missing" }) + * @Assert\Type("string") + * @Type("string") + */ + protected $password; + + /** + * Constructor + * @param mixed[] $data Associated array of property values initializing the model + */ + public function __construct(array $data = null) + { + $this->email = isset($data['email']) ? $data['email'] : null; + $this->username = isset($data['username']) ? $data['username'] : null; + $this->password = isset($data['password']) ? $data['password'] : null; + } + + /** + * Gets email. + * + * @return string|null + */ + public function getEmail(): ?string + { + return $this->email; + } + + /** + * Sets email. + * + * @param string|null $email + * + * @return $this + */ + public function setEmail(string $email = null) + { + $this->email = $email; + + return $this; + } + + /** + * Gets username. + * + * @return string|null + */ + public function getUsername(): ?string + { + return $this->username; + } + + /** + * Sets username. + * + * @param string|null $username + * + * @return $this + */ + public function setUsername(string $username = null) + { + $this->username = $username; + + return $this; + } + + /** + * Gets password. + * + * @return string|null + */ + public function getPassword(): ?string + { + return $this->password; + } + + /** + * Sets password. + * + * @param string|null $password + * + * @return $this + */ + public function setPassword(string $password = null) + { + $this->password = $password; + + return $this; + } } + + diff --git a/Model/RegisterRequest.php b/Model/RegisterRequest.php index 3ad85e87..4aa2b4a9 100755 --- a/Model/RegisterRequest.php +++ b/Model/RegisterRequest.php @@ -1,24 +1,24 @@ dry_run = isset($data['dry_run']) ? $data['dry_run'] : false; - $this->email = isset($data['email']) ? $data['email'] : null; - $this->username = isset($data['username']) ? $data['username'] : null; - $this->password = isset($data['password']) ? $data['password'] : null; - $this->picture = isset($data['picture']) ? $data['picture'] : null; - $this->about = isset($data['about']) ? $data['about'] : null; - $this->currently_working_on = isset($data['currently_working_on']) ? $data['currently_working_on'] : null; - } - - /** - * Gets dry_run. - */ - public function isDryRun(): ?bool - { - return $this->dry_run; - } - - /** - * Sets dry_run. - * - * @param bool|null $dry_run Indicates wether a request should only be verified or executed - * - * @return $this - */ - public function setDryRun(bool $dry_run = null) - { - $this->dry_run = $dry_run; - - return $this; - } - - /** - * Gets email. - */ - public function getEmail(): ?string - { - return $this->email; - } - - /** - * Sets email. - * - * @param string|null $email Email of the user - * - * @return $this - */ - public function setEmail(string $email = null) - { - $this->email = $email; - - return $this; - } - - /** - * Gets username. - */ - public function getUsername(): ?string - { - return $this->username; - } - - /** - * Sets username. - * - * @param string|null $username Name of the user | minLength: 3 | maxLength: 180 - * - * @return $this - */ - public function setUsername(string $username = null) - { - $this->username = $username; - - return $this; - } - - /** - * Gets password. - */ - public function getPassword(): ?string - { - return $this->password; - } - - /** - * Sets password. - * - * @param string|null $password A secure password | minLength: 6 | maxLength: 4096 - * - * @return $this - */ - public function setPassword(string $password = null) - { - $this->password = $password; - - return $this; - } - - /** - * Gets picture. - */ - public function getPicture(): ?string - { - return $this->picture; - } - - /** - * Sets picture. - * - * @param string|null $picture the profile picture of the user in data URI scheme - * - * @return $this - */ - public function setPicture(string $picture = null) - { - $this->picture = $picture; - - return $this; - } - - /** - * Gets about. - */ - public function getAbout(): ?string - { - return $this->about; - } - - /** - * Sets about. - * - * @param string|null $about an introduction of the user - * - * @return $this - */ - public function setAbout(string $about = null) - { - $this->about = $about; - - return $this; - } - - /** - * Gets currently_working_on. - */ - public function getCurrentlyWorkingOn(): ?string - { - return $this->currently_working_on; - } - - /** - * Sets currently_working_on. - * - * @param string|null $currently_working_on a short description about the project the user is currently working on - * - * @return $this - */ - public function setCurrentlyWorkingOn(string $currently_working_on = null) - { - $this->currently_working_on = $currently_working_on; - - return $this; - } + /** + * Indicates wether a request should only be verified or executed + * + * @var bool|null + * @SerializedName("dry-run") + * @Assert\Type("bool") + * @Type("bool") + */ + protected $dry_run; + + /** + * Email of the user + * + * @var string|null + * @SerializedName("email") + * @Assert\Type("string") + * @Type("string") + */ + protected $email; + + /** + * Name of the user | minLength: 3 | maxLength: 180 + * + * @var string|null + * @SerializedName("username") + * @Assert\Type("string") + * @Type("string") + */ + protected $username; + + /** + * A secure password | minLength: 6 | maxLength: 4096 + * + * @var string|null + * @SerializedName("password") + * @Assert\Type("string") + * @Type("string") + */ + protected $password; + + /** + * The profile picture of the user in data URI scheme. + * + * @var string|null + * @SerializedName("picture") + * @Assert\Type("string") + * @Type("string") + */ + protected $picture; + + /** + * An introduction of the user. + * + * @var string|null + * @SerializedName("about") + * @Assert\Type("string") + * @Type("string") + */ + protected $about; + + /** + * A short description about the project the user is currently working on. + * + * @var string|null + * @SerializedName("currentlyWorkingOn") + * @Assert\Type("string") + * @Type("string") + */ + protected $currently_working_on; + + /** + * Constructor + * @param mixed[] $data Associated array of property values initializing the model + */ + public function __construct(array $data = null) + { + $this->dry_run = isset($data['dry_run']) ? $data['dry_run'] : false; + $this->email = isset($data['email']) ? $data['email'] : null; + $this->username = isset($data['username']) ? $data['username'] : null; + $this->password = isset($data['password']) ? $data['password'] : null; + $this->picture = isset($data['picture']) ? $data['picture'] : null; + $this->about = isset($data['about']) ? $data['about'] : null; + $this->currently_working_on = isset($data['currently_working_on']) ? $data['currently_working_on'] : null; + } + + /** + * Gets dry_run. + * + * @return bool|null + */ + public function isDryRun(): ?bool + { + return $this->dry_run; + } + + /** + * Sets dry_run. + * + * @param bool|null $dry_run Indicates wether a request should only be verified or executed + * + * @return $this + */ + public function setDryRun(bool $dry_run = null) + { + $this->dry_run = $dry_run; + + return $this; + } + + /** + * Gets email. + * + * @return string|null + */ + public function getEmail(): ?string + { + return $this->email; + } + + /** + * Sets email. + * + * @param string|null $email Email of the user + * + * @return $this + */ + public function setEmail(string $email = null) + { + $this->email = $email; + + return $this; + } + + /** + * Gets username. + * + * @return string|null + */ + public function getUsername(): ?string + { + return $this->username; + } + + /** + * Sets username. + * + * @param string|null $username Name of the user | minLength: 3 | maxLength: 180 + * + * @return $this + */ + public function setUsername(string $username = null) + { + $this->username = $username; + + return $this; + } + + /** + * Gets password. + * + * @return string|null + */ + public function getPassword(): ?string + { + return $this->password; + } + + /** + * Sets password. + * + * @param string|null $password A secure password | minLength: 6 | maxLength: 4096 + * + * @return $this + */ + public function setPassword(string $password = null) + { + $this->password = $password; + + return $this; + } + + /** + * Gets picture. + * + * @return string|null + */ + public function getPicture(): ?string + { + return $this->picture; + } + + /** + * Sets picture. + * + * @param string|null $picture The profile picture of the user in data URI scheme. + * + * @return $this + */ + public function setPicture(string $picture = null) + { + $this->picture = $picture; + + return $this; + } + + /** + * Gets about. + * + * @return string|null + */ + public function getAbout(): ?string + { + return $this->about; + } + + /** + * Sets about. + * + * @param string|null $about An introduction of the user. + * + * @return $this + */ + public function setAbout(string $about = null) + { + $this->about = $about; + + return $this; + } + + /** + * Gets currently_working_on. + * + * @return string|null + */ + public function getCurrentlyWorkingOn(): ?string + { + return $this->currently_working_on; + } + + /** + * Sets currently_working_on. + * + * @param string|null $currently_working_on A short description about the project the user is currently working on. + * + * @return $this + */ + public function setCurrentlyWorkingOn(string $currently_working_on = null) + { + $this->currently_working_on = $currently_working_on; + + return $this; + } } + + diff --git a/Model/ResetPasswordErrorResponse.php b/Model/ResetPasswordErrorResponse.php index 05309f57..8a589017 100755 --- a/Model/ResetPasswordErrorResponse.php +++ b/Model/ResetPasswordErrorResponse.php @@ -1,24 +1,24 @@ email = isset($data['email']) ? $data['email'] : null; - } + /** + * Constructor + * @param mixed[] $data Associated array of property values initializing the model + */ + public function __construct(array $data = null) + { + $this->email = isset($data['email']) ? $data['email'] : null; + } - /** - * Gets email. - */ - public function getEmail(): ?string - { - return $this->email; - } + /** + * Gets email. + * + * @return string|null + */ + public function getEmail(): ?string + { + return $this->email; + } - /** - * Sets email. - * - * @return $this - */ - public function setEmail(string $email = null) - { - $this->email = $email; + /** + * Sets email. + * + * @param string|null $email + * + * @return $this + */ + public function setEmail(string $email = null) + { + $this->email = $email; - return $this; - } + return $this; + } } + + diff --git a/Model/ResetPasswordRequest.php b/Model/ResetPasswordRequest.php index d3788e96..d3ce6426 100755 --- a/Model/ResetPasswordRequest.php +++ b/Model/ResetPasswordRequest.php @@ -1,24 +1,24 @@ email = isset($data['email']) ? $data['email'] : null; - } + /** + * Constructor + * @param mixed[] $data Associated array of property values initializing the model + */ + public function __construct(array $data = null) + { + $this->email = isset($data['email']) ? $data['email'] : null; + } - /** - * Gets email. - */ - public function getEmail(): ?string - { - return $this->email; - } + /** + * Gets email. + * + * @return string|null + */ + public function getEmail(): ?string + { + return $this->email; + } - /** - * Sets email. - * - * @param string|null $email Email of the user - * - * @return $this - */ - public function setEmail(string $email = null) - { - $this->email = $email; + /** + * Sets email. + * + * @param string|null $email Email of the user + * + * @return $this + */ + public function setEmail(string $email = null) + { + $this->email = $email; - return $this; - } + return $this; + } } + + diff --git a/Model/SearchResponse.php b/Model/SearchResponse.php index 23649105..9be5440c 100755 --- a/Model/SearchResponse.php +++ b/Model/SearchResponse.php @@ -1,24 +1,24 @@ ") - */ - protected $projects; - - /** - * @var int|null - * @SerializedName("projects_total") - * @Assert\Type("int") - * @Type("int") - */ - protected $projects_total; - - /** - * Array of users. - * - * @var OpenAPI\Server\Model\BasicUserDataResponse[]|null - * @SerializedName("users") - * @Assert\All({ - * @Assert\Type("OpenAPI\Server\Model\BasicUserDataResponse") - * }) - * @Type("array") - */ - protected $users; - - /** - * @var int|null - * @SerializedName("users_total") - * @Assert\Type("int") - * @Type("int") - */ - protected $users_total; - - /** - * Constructor. - * - * @param mixed[] $data Associated array of property values initializing the model - */ - public function __construct(array $data = null) - { - $this->projects = isset($data['projects']) ? $data['projects'] : null; - $this->projects_total = isset($data['projects_total']) ? $data['projects_total'] : null; - $this->users = isset($data['users']) ? $data['users'] : null; - $this->users_total = isset($data['users_total']) ? $data['users_total'] : null; - } - - /** - * Gets projects. - * - * @return OpenAPI\Server\Model\ProjectResponse[]|null - */ - public function getProjects(): ?array - { - return $this->projects; - } - - /** - * Sets projects. - * - * @param OpenAPI\Server\Model\ProjectResponse[]|null $projects Array of projects - * - * @return $this - */ - public function setProjects(array $projects = null) - { - $this->projects = $projects; - - return $this; - } - - /** - * Gets projects_total. - */ - public function getProjectsTotal(): ?int - { - return $this->projects_total; - } - - /** - * Sets projects_total. - * - * @return $this - */ - public function setProjectsTotal(int $projects_total = null) - { - $this->projects_total = $projects_total; - - return $this; - } - - /** - * Gets users. - * - * @return OpenAPI\Server\Model\BasicUserDataResponse[]|null - */ - public function getUsers(): ?array - { - return $this->users; - } - - /** - * Sets users. - * - * @param OpenAPI\Server\Model\BasicUserDataResponse[]|null $users Array of users - * - * @return $this - */ - public function setUsers(array $users = null) - { - $this->users = $users; - - return $this; - } - - /** - * Gets users_total. - */ - public function getUsersTotal(): ?int - { - return $this->users_total; - } - - /** - * Sets users_total. - * - * @return $this - */ - public function setUsersTotal(int $users_total = null) - { - $this->users_total = $users_total; - - return $this; - } + /** + * Array of projects + * + * @var OpenAPI\Server\Model\ProjectResponse[]|null + * @SerializedName("projects") + * @Assert\All({ + * @Assert\Type("OpenAPI\Server\Model\ProjectResponse") + * }) + * @Type("array") + */ + protected $projects; + + /** + * @var int|null + * @SerializedName("projects_total") + * @Assert\Type("int") + * @Type("int") + */ + protected $projects_total; + + /** + * Array of users + * + * @var OpenAPI\Server\Model\BasicUserDataResponse[]|null + * @SerializedName("users") + * @Assert\All({ + * @Assert\Type("OpenAPI\Server\Model\BasicUserDataResponse") + * }) + * @Type("array") + */ + protected $users; + + /** + * @var int|null + * @SerializedName("users_total") + * @Assert\Type("int") + * @Type("int") + */ + protected $users_total; + + /** + * Constructor + * @param mixed[] $data Associated array of property values initializing the model + */ + public function __construct(array $data = null) + { + $this->projects = isset($data['projects']) ? $data['projects'] : null; + $this->projects_total = isset($data['projects_total']) ? $data['projects_total'] : null; + $this->users = isset($data['users']) ? $data['users'] : null; + $this->users_total = isset($data['users_total']) ? $data['users_total'] : null; + } + + /** + * Gets projects. + * + * @return OpenAPI\Server\Model\ProjectResponse[]|null + */ + public function getProjects(): ?array + { + return $this->projects; + } + + /** + * Sets projects. + * + * @param OpenAPI\Server\Model\ProjectResponse[]|null $projects Array of projects + * + * @return $this + */ + public function setProjects(array $projects = null) + { + $this->projects = $projects; + + return $this; + } + + /** + * Gets projects_total. + * + * @return int|null + */ + public function getProjectsTotal(): ?int + { + return $this->projects_total; + } + + /** + * Sets projects_total. + * + * @param int|null $projects_total + * + * @return $this + */ + public function setProjectsTotal(int $projects_total = null) + { + $this->projects_total = $projects_total; + + return $this; + } + + /** + * Gets users. + * + * @return OpenAPI\Server\Model\BasicUserDataResponse[]|null + */ + public function getUsers(): ?array + { + return $this->users; + } + + /** + * Sets users. + * + * @param OpenAPI\Server\Model\BasicUserDataResponse[]|null $users Array of users + * + * @return $this + */ + public function setUsers(array $users = null) + { + $this->users = $users; + + return $this; + } + + /** + * Gets users_total. + * + * @return int|null + */ + public function getUsersTotal(): ?int + { + return $this->users_total; + } + + /** + * Sets users_total. + * + * @param int|null $users_total + * + * @return $this + */ + public function setUsersTotal(int $users_total = null) + { + $this->users_total = $users_total; + + return $this; + } } + + diff --git a/Model/SurveyResponse.php b/Model/SurveyResponse.php index 07963bc7..a798312c 100755 --- a/Model/SurveyResponse.php +++ b/Model/SurveyResponse.php @@ -1,24 +1,24 @@ url = isset($data['url']) ? $data['url'] : null; - } + /** + * Constructor + * @param mixed[] $data Associated array of property values initializing the model + */ + public function __construct(array $data = null) + { + $this->url = isset($data['url']) ? $data['url'] : null; + } - /** - * Gets url. - */ - public function getUrl(): ?string - { - return $this->url; - } + /** + * Gets url. + * + * @return string|null + */ + public function getUrl(): ?string + { + return $this->url; + } - /** - * Sets url. - * - * @param string|null $url Url to a survey for the given language - * - * @return $this - */ - public function setUrl(string $url = null) - { - $this->url = $url; + /** + * Sets url. + * + * @param string|null $url Url to a survey for the given language + * + * @return $this + */ + public function setUrl(string $url = null) + { + $this->url = $url; - return $this; - } + return $this; + } } + + diff --git a/Model/TagResponse.php b/Model/TagResponse.php index 9d99534f..4a7459e9 100755 --- a/Model/TagResponse.php +++ b/Model/TagResponse.php @@ -1,24 +1,24 @@ id = isset($data['id']) ? $data['id'] : null; - $this->text = isset($data['text']) ? $data['text'] : null; - } + /** + * Constructor + * @param mixed[] $data Associated array of property values initializing the model + */ + public function __construct(array $data = null) + { + $this->id = isset($data['id']) ? $data['id'] : null; + $this->text = isset($data['text']) ? $data['text'] : null; + } - /** - * Gets id. - */ - public function getId(): ?string - { - return $this->id; - } + /** + * Gets id. + * + * @return string|null + */ + public function getId(): ?string + { + return $this->id; + } - /** - * Sets id. - * - * @param string|null $id The internal title of the title - * - * @return $this - */ - public function setId(string $id = null) - { - $this->id = $id; + /** + * Sets id. + * + * @param string|null $id The internal title of the title + * + * @return $this + */ + public function setId(string $id = null) + { + $this->id = $id; - return $this; - } + return $this; + } - /** - * Gets text. - */ - public function getText(): ?string - { - return $this->text; - } + /** + * Gets text. + * + * @return string|null + */ + public function getText(): ?string + { + return $this->text; + } - /** - * Sets text. - * - * @param string|null $text the translated text of the project tag - * - * @return $this - */ - public function setText(string $text = null) - { - $this->text = $text; + /** + * Sets text. + * + * @param string|null $text The translated text of the project tag. + * + * @return $this + */ + public function setText(string $text = null) + { + $this->text = $text; - return $this; - } + return $this; + } } + + diff --git a/Model/UpdateProjectErrorResponse.php b/Model/UpdateProjectErrorResponse.php index 67f4c143..a244055d 100755 --- a/Model/UpdateProjectErrorResponse.php +++ b/Model/UpdateProjectErrorResponse.php @@ -1,24 +1,24 @@ name = isset($data['name']) ? $data['name'] : null; - $this->description = isset($data['description']) ? $data['description'] : null; - $this->credits = isset($data['credits']) ? $data['credits'] : null; - $this->screenshot = isset($data['screenshot']) ? $data['screenshot'] : null; - } - - /** - * Gets name. - */ - public function getName(): ?string - { - return $this->name; - } - - /** - * Sets name. - * - * @return $this - */ - public function setName(string $name = null) - { - $this->name = $name; - - return $this; - } - - /** - * Gets description. - */ - public function getDescription(): ?string - { - return $this->description; - } - - /** - * Sets description. - * - * @return $this - */ - public function setDescription(string $description = null) - { - $this->description = $description; - - return $this; - } - - /** - * Gets credits. - */ - public function getCredits(): ?string - { - return $this->credits; - } - - /** - * Sets credits. - * - * @return $this - */ - public function setCredits(string $credits = null) - { - $this->credits = $credits; - - return $this; - } - - /** - * Gets screenshot. - */ - public function getScreenshot(): ?string - { - return $this->screenshot; - } - - /** - * Sets screenshot. - * - * @return $this - */ - public function setScreenshot(string $screenshot = null) - { - $this->screenshot = $screenshot; - - return $this; - } + /** + * @var string|null + * @SerializedName("name") + * @Assert\Choice({ "Name empty", "Name too long" }) + * @Assert\Type("string") + * @Type("string") + */ + protected $name; + + /** + * @var string|null + * @SerializedName("description") + * @Assert\Choice({ "Description too long" }) + * @Assert\Type("string") + * @Type("string") + */ + protected $description; + + /** + * @var string|null + * @SerializedName("credits") + * @Assert\Choice({ "Credits too long" }) + * @Assert\Type("string") + * @Type("string") + */ + protected $credits; + + /** + * @var string|null + * @SerializedName("screenshot") + * @Assert\Choice({ "Project screenshot invalid or not supported" }) + * @Assert\Type("string") + * @Type("string") + */ + protected $screenshot; + + /** + * Constructor + * @param mixed[] $data Associated array of property values initializing the model + */ + public function __construct(array $data = null) + { + $this->name = isset($data['name']) ? $data['name'] : null; + $this->description = isset($data['description']) ? $data['description'] : null; + $this->credits = isset($data['credits']) ? $data['credits'] : null; + $this->screenshot = isset($data['screenshot']) ? $data['screenshot'] : null; + } + + /** + * Gets name. + * + * @return string|null + */ + public function getName(): ?string + { + return $this->name; + } + + /** + * Sets name. + * + * @param string|null $name + * + * @return $this + */ + public function setName(string $name = null) + { + $this->name = $name; + + return $this; + } + + /** + * Gets description. + * + * @return string|null + */ + public function getDescription(): ?string + { + return $this->description; + } + + /** + * Sets description. + * + * @param string|null $description + * + * @return $this + */ + public function setDescription(string $description = null) + { + $this->description = $description; + + return $this; + } + + /** + * Gets credits. + * + * @return string|null + */ + public function getCredits(): ?string + { + return $this->credits; + } + + /** + * Sets credits. + * + * @param string|null $credits + * + * @return $this + */ + public function setCredits(string $credits = null) + { + $this->credits = $credits; + + return $this; + } + + /** + * Gets screenshot. + * + * @return string|null + */ + public function getScreenshot(): ?string + { + return $this->screenshot; + } + + /** + * Sets screenshot. + * + * @param string|null $screenshot + * + * @return $this + */ + public function setScreenshot(string $screenshot = null) + { + $this->screenshot = $screenshot; + + return $this; + } } + + diff --git a/Model/UpdateProjectFailureResponse.php b/Model/UpdateProjectFailureResponse.php index 6a631196..f68245e3 100755 --- a/Model/UpdateProjectFailureResponse.php +++ b/Model/UpdateProjectFailureResponse.php @@ -1,24 +1,24 @@ error = isset($data['error']) ? $data['error'] : null; - } + /** + * Constructor + * @param mixed[] $data Associated array of property values initializing the model + */ + public function __construct(array $data = null) + { + $this->error = isset($data['error']) ? $data['error'] : null; + } - /** - * Gets error. - */ - public function getError(): ?string - { - return $this->error; - } + /** + * Gets error. + * + * @return string|null + */ + public function getError(): ?string + { + return $this->error; + } - /** - * Sets error. - * - * @return $this - */ - public function setError(string $error = null) - { - $this->error = $error; + /** + * Sets error. + * + * @param string|null $error + * + * @return $this + */ + public function setError(string $error = null) + { + $this->error = $error; - return $this; - } + return $this; + } } + + diff --git a/Model/UpdateProjectRequest.php b/Model/UpdateProjectRequest.php index 8846e189..b588fea6 100755 --- a/Model/UpdateProjectRequest.php +++ b/Model/UpdateProjectRequest.php @@ -1,24 +1,24 @@ name = isset($data['name']) ? $data['name'] : null; - $this->description = isset($data['description']) ? $data['description'] : null; - $this->credits = isset($data['credits']) ? $data['credits'] : null; - $this->private = isset($data['private']) ? $data['private'] : null; - $this->screenshot = isset($data['screenshot']) ? $data['screenshot'] : null; - } - - /** - * Gets name. - */ - public function getName(): ?string - { - return $this->name; - } - - /** - * Sets name. - * - * @param string|null $name The name of the project. minLength: 1 | maxLength: 255 - * - * @return $this - */ - public function setName(string $name = null) - { - $this->name = $name; - - return $this; - } - - /** - * Gets description. - */ - public function getDescription(): ?string - { - return $this->description; - } - - /** - * Sets description. - * - * @param string|null $description a description of the project - * - * @return $this - */ - public function setDescription(string $description = null) - { - $this->description = $description; - - return $this; - } - - /** - * Gets credits. - */ - public function getCredits(): ?string - { - return $this->credits; - } - - /** - * Sets credits. - * - * @param string|null $credits Credits and notes for the project. E.g., credits for using ideas, scripts or artwork from other people. - * - * @return $this - */ - public function setCredits(string $credits = null) - { - $this->credits = $credits; - - return $this; - } - - /** - * Gets private. - */ - public function isPrivate(): ?bool - { - return $this->private; - } - - /** - * Sets private. - * - * @param bool|null $private whether a project is publicly visible (false) or only via direct link (true) - * - * @return $this - */ - public function setPrivate(bool $private = null) - { - $this->private = $private; - - return $this; - } - - /** - * Gets screenshot. - */ - public function getScreenshot(): ?string - { - return $this->screenshot; - } - - /** - * Sets screenshot. - * - * @param string|null $screenshot an image representing the project in data URI scheme - * - * @return $this - */ - public function setScreenshot(string $screenshot = null) - { - $this->screenshot = $screenshot; - - return $this; - } + /** + * The name of the project. minLength: 1 | maxLength: 255 + * + * @var string|null + * @SerializedName("name") + * @Assert\Type("string") + * @Type("string") + */ + protected $name; + + /** + * A description of the project. + * + * @var string|null + * @SerializedName("description") + * @Assert\Type("string") + * @Type("string") + */ + protected $description; + + /** + * Credits and notes for the project. E.g., credits for using ideas, scripts or artwork from other people. + * + * @var string|null + * @SerializedName("credits") + * @Assert\Type("string") + * @Type("string") + */ + protected $credits; + + /** + * Whether a project is publicly visible (false) or only via direct link (true). + * + * @var bool|null + * @SerializedName("private") + * @Assert\Type("bool") + * @Type("bool") + */ + protected $private; + + /** + * An image representing the project in data URI scheme. + * + * @var string|null + * @SerializedName("screenshot") + * @Assert\Type("string") + * @Type("string") + */ + protected $screenshot; + + /** + * Constructor + * @param mixed[] $data Associated array of property values initializing the model + */ + public function __construct(array $data = null) + { + $this->name = isset($data['name']) ? $data['name'] : null; + $this->description = isset($data['description']) ? $data['description'] : null; + $this->credits = isset($data['credits']) ? $data['credits'] : null; + $this->private = isset($data['private']) ? $data['private'] : null; + $this->screenshot = isset($data['screenshot']) ? $data['screenshot'] : null; + } + + /** + * Gets name. + * + * @return string|null + */ + public function getName(): ?string + { + return $this->name; + } + + /** + * Sets name. + * + * @param string|null $name The name of the project. minLength: 1 | maxLength: 255 + * + * @return $this + */ + public function setName(string $name = null) + { + $this->name = $name; + + return $this; + } + + /** + * Gets description. + * + * @return string|null + */ + public function getDescription(): ?string + { + return $this->description; + } + + /** + * Sets description. + * + * @param string|null $description A description of the project. + * + * @return $this + */ + public function setDescription(string $description = null) + { + $this->description = $description; + + return $this; + } + + /** + * Gets credits. + * + * @return string|null + */ + public function getCredits(): ?string + { + return $this->credits; + } + + /** + * Sets credits. + * + * @param string|null $credits Credits and notes for the project. E.g., credits for using ideas, scripts or artwork from other people. + * + * @return $this + */ + public function setCredits(string $credits = null) + { + $this->credits = $credits; + + return $this; + } + + /** + * Gets private. + * + * @return bool|null + */ + public function isPrivate(): ?bool + { + return $this->private; + } + + /** + * Sets private. + * + * @param bool|null $private Whether a project is publicly visible (false) or only via direct link (true). + * + * @return $this + */ + public function setPrivate(bool $private = null) + { + $this->private = $private; + + return $this; + } + + /** + * Gets screenshot. + * + * @return string|null + */ + public function getScreenshot(): ?string + { + return $this->screenshot; + } + + /** + * Sets screenshot. + * + * @param string|null $screenshot An image representing the project in data URI scheme. + * + * @return $this + */ + public function setScreenshot(string $screenshot = null) + { + $this->screenshot = $screenshot; + + return $this; + } } + + diff --git a/Model/UpdateUserErrorResponse.php b/Model/UpdateUserErrorResponse.php index 732437b1..b59bb542 100755 --- a/Model/UpdateUserErrorResponse.php +++ b/Model/UpdateUserErrorResponse.php @@ -1,24 +1,24 @@ email = isset($data['email']) ? $data['email'] : null; - $this->username = isset($data['username']) ? $data['username'] : null; - $this->password = isset($data['password']) ? $data['password'] : null; - $this->current_password = isset($data['current_password']) ? $data['current_password'] : null; - $this->picture = isset($data['picture']) ? $data['picture'] : null; - } - - /** - * Gets email. - */ - public function getEmail(): ?string - { - return $this->email; - } - - /** - * Sets email. - * - * @return $this - */ - public function setEmail(string $email = null) - { - $this->email = $email; - - return $this; - } - - /** - * Gets username. - */ - public function getUsername(): ?string - { - return $this->username; - } - - /** - * Sets username. - * - * @return $this - */ - public function setUsername(string $username = null) - { - $this->username = $username; - - return $this; - } - - /** - * Gets password. - */ - public function getPassword(): ?string - { - return $this->password; - } - - /** - * Sets password. - * - * @return $this - */ - public function setPassword(string $password = null) - { - $this->password = $password; - - return $this; - } - - /** - * Gets current_password. - */ - public function getCurrentPassword(): ?string - { - return $this->current_password; - } - - /** - * Sets current_password. - * - * @return $this - */ - public function setCurrentPassword(string $current_password = null) - { - $this->current_password = $current_password; - - return $this; - } - - /** - * Gets picture. - */ - public function getPicture(): ?string - { - return $this->picture; - } - - /** - * Sets picture. - * - * @return $this - */ - public function setPicture(string $picture = null) - { - $this->picture = $picture; - - return $this; - } + /** + * @var string|null + * @SerializedName("email") + * @Assert\Choice({ "Email already in use", "Email invalid" }) + * @Assert\Type("string") + * @Type("string") + */ + protected $email; + + /** + * @var string|null + * @SerializedName("username") + * @Assert\Choice({ "Username too short", "Username too long", "Username already in use", "Username must not contain an email address" }) + * @Assert\Type("string") + * @Type("string") + */ + protected $username; + + /** + * @var string|null + * @SerializedName("password") + * @Assert\Choice({ "Password too short", "Password too long", "Password contains invalid chars" }) + * @Assert\Type("string") + * @Type("string") + */ + protected $password; + + /** + * @var string|null + * @SerializedName("currentPassword") + * @Assert\Choice({ "Current password is missing", "Current password is wrong" }) + * @Assert\Type("string") + * @Type("string") + */ + protected $current_password; + + /** + * @var string|null + * @SerializedName("picture") + * @Assert\Choice({ "Profile picture invalid or not supported" }) + * @Assert\Type("string") + * @Type("string") + */ + protected $picture; + + /** + * Constructor + * @param mixed[] $data Associated array of property values initializing the model + */ + public function __construct(array $data = null) + { + $this->email = isset($data['email']) ? $data['email'] : null; + $this->username = isset($data['username']) ? $data['username'] : null; + $this->password = isset($data['password']) ? $data['password'] : null; + $this->current_password = isset($data['current_password']) ? $data['current_password'] : null; + $this->picture = isset($data['picture']) ? $data['picture'] : null; + } + + /** + * Gets email. + * + * @return string|null + */ + public function getEmail(): ?string + { + return $this->email; + } + + /** + * Sets email. + * + * @param string|null $email + * + * @return $this + */ + public function setEmail(string $email = null) + { + $this->email = $email; + + return $this; + } + + /** + * Gets username. + * + * @return string|null + */ + public function getUsername(): ?string + { + return $this->username; + } + + /** + * Sets username. + * + * @param string|null $username + * + * @return $this + */ + public function setUsername(string $username = null) + { + $this->username = $username; + + return $this; + } + + /** + * Gets password. + * + * @return string|null + */ + public function getPassword(): ?string + { + return $this->password; + } + + /** + * Sets password. + * + * @param string|null $password + * + * @return $this + */ + public function setPassword(string $password = null) + { + $this->password = $password; + + return $this; + } + + /** + * Gets current_password. + * + * @return string|null + */ + public function getCurrentPassword(): ?string + { + return $this->current_password; + } + + /** + * Sets current_password. + * + * @param string|null $current_password + * + * @return $this + */ + public function setCurrentPassword(string $current_password = null) + { + $this->current_password = $current_password; + + return $this; + } + + /** + * Gets picture. + * + * @return string|null + */ + public function getPicture(): ?string + { + return $this->picture; + } + + /** + * Sets picture. + * + * @param string|null $picture + * + * @return $this + */ + public function setPicture(string $picture = null) + { + $this->picture = $picture; + + return $this; + } } + + diff --git a/Model/UpdateUserRequest.php b/Model/UpdateUserRequest.php index fe928a4a..bb2a482f 100755 --- a/Model/UpdateUserRequest.php +++ b/Model/UpdateUserRequest.php @@ -1,24 +1,24 @@ dry_run = isset($data['dry_run']) ? $data['dry_run'] : false; - $this->email = isset($data['email']) ? $data['email'] : null; - $this->username = isset($data['username']) ? $data['username'] : null; - $this->password = isset($data['password']) ? $data['password'] : null; - $this->picture = isset($data['picture']) ? $data['picture'] : null; - $this->about = isset($data['about']) ? $data['about'] : null; - $this->currently_working_on = isset($data['currently_working_on']) ? $data['currently_working_on'] : null; - $this->current_password = isset($data['current_password']) ? $data['current_password'] : null; - } - - /** - * Gets dry_run. - */ - public function isDryRun(): ?bool - { - return $this->dry_run; - } - - /** - * Sets dry_run. - * - * @param bool|null $dry_run Indicates wether a request should only be verified or executed - * - * @return $this - */ - public function setDryRun(bool $dry_run = null) - { - $this->dry_run = $dry_run; - - return $this; - } - - /** - * Gets email. - */ - public function getEmail(): ?string - { - return $this->email; - } - - /** - * Sets email. - * - * @param string|null $email Email of the user - * - * @return $this - */ - public function setEmail(string $email = null) - { - $this->email = $email; - - return $this; - } - - /** - * Gets username. - */ - public function getUsername(): ?string - { - return $this->username; - } - - /** - * Sets username. - * - * @param string|null $username Name of the user | minLength: 3 | maxLength: 180 - * - * @return $this - */ - public function setUsername(string $username = null) - { - $this->username = $username; - - return $this; - } - - /** - * Gets password. - */ - public function getPassword(): ?string - { - return $this->password; - } - - /** - * Sets password. - * - * @param string|null $password A secure password | minLength: 6 | maxLength: 4096 - * - * @return $this - */ - public function setPassword(string $password = null) - { - $this->password = $password; - - return $this; - } - - /** - * Gets picture. - */ - public function getPicture(): ?string - { - return $this->picture; - } - - /** - * Sets picture. - * - * @param string|null $picture the profile picture of the user in data URI scheme - * - * @return $this - */ - public function setPicture(string $picture = null) - { - $this->picture = $picture; - - return $this; - } - - /** - * Gets about. - */ - public function getAbout(): ?string - { - return $this->about; - } - - /** - * Sets about. - * - * @param string|null $about an introduction of the user - * - * @return $this - */ - public function setAbout(string $about = null) - { - $this->about = $about; - - return $this; - } - - /** - * Gets currently_working_on. - */ - public function getCurrentlyWorkingOn(): ?string - { - return $this->currently_working_on; - } - - /** - * Sets currently_working_on. - * - * @param string|null $currently_working_on a short description about the project the user is currently working on - * - * @return $this - */ - public function setCurrentlyWorkingOn(string $currently_working_on = null) - { - $this->currently_working_on = $currently_working_on; - - return $this; - } - - /** - * Gets current_password. - */ - public function getCurrentPassword(): ?string - { - return $this->current_password; - } - - /** - * Sets current_password. - * - * @param string|null $current_password The current password of the user. Required for changing the password. - * - * @return $this - */ - public function setCurrentPassword(string $current_password = null) - { - $this->current_password = $current_password; - - return $this; - } + /** + * Indicates wether a request should only be verified or executed + * + * @var bool|null + * @SerializedName("dry-run") + * @Assert\Type("bool") + * @Type("bool") + */ + protected $dry_run; + + /** + * Email of the user + * + * @var string|null + * @SerializedName("email") + * @Assert\Type("string") + * @Type("string") + */ + protected $email; + + /** + * Name of the user | minLength: 3 | maxLength: 180 + * + * @var string|null + * @SerializedName("username") + * @Assert\Type("string") + * @Type("string") + */ + protected $username; + + /** + * A secure password | minLength: 6 | maxLength: 4096 + * + * @var string|null + * @SerializedName("password") + * @Assert\Type("string") + * @Type("string") + */ + protected $password; + + /** + * The profile picture of the user in data URI scheme. + * + * @var string|null + * @SerializedName("picture") + * @Assert\Type("string") + * @Type("string") + */ + protected $picture; + + /** + * An introduction of the user. + * + * @var string|null + * @SerializedName("about") + * @Assert\Type("string") + * @Type("string") + */ + protected $about; + + /** + * A short description about the project the user is currently working on. + * + * @var string|null + * @SerializedName("currentlyWorkingOn") + * @Assert\Type("string") + * @Type("string") + */ + protected $currently_working_on; + + /** + * The current password of the user. Required for changing the password. + * + * @var string|null + * @SerializedName("currentPassword") + * @Assert\Type("string") + * @Type("string") + */ + protected $current_password; + + /** + * Constructor + * @param mixed[] $data Associated array of property values initializing the model + */ + public function __construct(array $data = null) + { + $this->dry_run = isset($data['dry_run']) ? $data['dry_run'] : false; + $this->email = isset($data['email']) ? $data['email'] : null; + $this->username = isset($data['username']) ? $data['username'] : null; + $this->password = isset($data['password']) ? $data['password'] : null; + $this->picture = isset($data['picture']) ? $data['picture'] : null; + $this->about = isset($data['about']) ? $data['about'] : null; + $this->currently_working_on = isset($data['currently_working_on']) ? $data['currently_working_on'] : null; + $this->current_password = isset($data['current_password']) ? $data['current_password'] : null; + } + + /** + * Gets dry_run. + * + * @return bool|null + */ + public function isDryRun(): ?bool + { + return $this->dry_run; + } + + /** + * Sets dry_run. + * + * @param bool|null $dry_run Indicates wether a request should only be verified or executed + * + * @return $this + */ + public function setDryRun(bool $dry_run = null) + { + $this->dry_run = $dry_run; + + return $this; + } + + /** + * Gets email. + * + * @return string|null + */ + public function getEmail(): ?string + { + return $this->email; + } + + /** + * Sets email. + * + * @param string|null $email Email of the user + * + * @return $this + */ + public function setEmail(string $email = null) + { + $this->email = $email; + + return $this; + } + + /** + * Gets username. + * + * @return string|null + */ + public function getUsername(): ?string + { + return $this->username; + } + + /** + * Sets username. + * + * @param string|null $username Name of the user | minLength: 3 | maxLength: 180 + * + * @return $this + */ + public function setUsername(string $username = null) + { + $this->username = $username; + + return $this; + } + + /** + * Gets password. + * + * @return string|null + */ + public function getPassword(): ?string + { + return $this->password; + } + + /** + * Sets password. + * + * @param string|null $password A secure password | minLength: 6 | maxLength: 4096 + * + * @return $this + */ + public function setPassword(string $password = null) + { + $this->password = $password; + + return $this; + } + + /** + * Gets picture. + * + * @return string|null + */ + public function getPicture(): ?string + { + return $this->picture; + } + + /** + * Sets picture. + * + * @param string|null $picture The profile picture of the user in data URI scheme. + * + * @return $this + */ + public function setPicture(string $picture = null) + { + $this->picture = $picture; + + return $this; + } + + /** + * Gets about. + * + * @return string|null + */ + public function getAbout(): ?string + { + return $this->about; + } + + /** + * Sets about. + * + * @param string|null $about An introduction of the user. + * + * @return $this + */ + public function setAbout(string $about = null) + { + $this->about = $about; + + return $this; + } + + /** + * Gets currently_working_on. + * + * @return string|null + */ + public function getCurrentlyWorkingOn(): ?string + { + return $this->currently_working_on; + } + + /** + * Sets currently_working_on. + * + * @param string|null $currently_working_on A short description about the project the user is currently working on. + * + * @return $this + */ + public function setCurrentlyWorkingOn(string $currently_working_on = null) + { + $this->currently_working_on = $currently_working_on; + + return $this; + } + + /** + * Gets current_password. + * + * @return string|null + */ + public function getCurrentPassword(): ?string + { + return $this->current_password; + } + + /** + * Sets current_password. + * + * @param string|null $current_password The current password of the user. Required for changing the password. + * + * @return $this + */ + public function setCurrentPassword(string $current_password = null) + { + $this->current_password = $current_password; + + return $this; + } } + + diff --git a/Model/UpdateUserRequestAllOf.php b/Model/UpdateUserRequestAllOf.php index 16d6130b..e07cdb7b 100755 --- a/Model/UpdateUserRequestAllOf.php +++ b/Model/UpdateUserRequestAllOf.php @@ -1,24 +1,24 @@ current_password = isset($data['current_password']) ? $data['current_password'] : null; - } + /** + * Constructor + * @param mixed[] $data Associated array of property values initializing the model + */ + public function __construct(array $data = null) + { + $this->current_password = isset($data['current_password']) ? $data['current_password'] : null; + } - /** - * Gets current_password. - */ - public function getCurrentPassword(): ?string - { - return $this->current_password; - } + /** + * Gets current_password. + * + * @return string|null + */ + public function getCurrentPassword(): ?string + { + return $this->current_password; + } - /** - * Sets current_password. - * - * @param string|null $current_password The current password of the user. Required for changing the password. - * - * @return $this - */ - public function setCurrentPassword(string $current_password = null) - { - $this->current_password = $current_password; + /** + * Sets current_password. + * + * @param string|null $current_password The current password of the user. Required for changing the password. + * + * @return $this + */ + public function setCurrentPassword(string $current_password = null) + { + $this->current_password = $current_password; - return $this; - } + return $this; + } } + + diff --git a/Model/UpgradeTokenRequest.php b/Model/UpgradeTokenRequest.php index d334d259..c736a678 100755 --- a/Model/UpgradeTokenRequest.php +++ b/Model/UpgradeTokenRequest.php @@ -1,24 +1,24 @@ upload_token = isset($data['upload_token']) ? $data['upload_token'] : null; - } + /** + * Constructor + * @param mixed[] $data Associated array of property values initializing the model + */ + public function __construct(array $data = null) + { + $this->upload_token = isset($data['upload_token']) ? $data['upload_token'] : null; + } - /** - * Gets upload_token. - */ - public function getUploadToken(): ?string - { - return $this->upload_token; - } + /** + * Gets upload_token. + * + * @return string|null + */ + public function getUploadToken(): ?string + { + return $this->upload_token; + } - /** - * Sets upload_token. - * - * @return $this - */ - public function setUploadToken(string $upload_token = null) - { - $this->upload_token = $upload_token; + /** + * Sets upload_token. + * + * @param string|null $upload_token + * + * @return $this + */ + public function setUploadToken(string $upload_token = null) + { + $this->upload_token = $upload_token; - return $this; - } + return $this; + } } + + diff --git a/Model/UploadErrorResponse.php b/Model/UploadErrorResponse.php index fe094860..4b84c2ce 100755 --- a/Model/UploadErrorResponse.php +++ b/Model/UploadErrorResponse.php @@ -1,24 +1,24 @@ error = isset($data['error']) ? $data['error'] : null; - } + /** + * Constructor + * @param mixed[] $data Associated array of property values initializing the model + */ + public function __construct(array $data = null) + { + $this->error = isset($data['error']) ? $data['error'] : null; + } - /** - * Gets error. - */ - public function getError(): ?string - { - return $this->error; - } + /** + * Gets error. + * + * @return string|null + */ + public function getError(): ?string + { + return $this->error; + } - /** - * Sets error. - * - * @return $this - */ - public function setError(string $error = null) - { - $this->error = $error; + /** + * Sets error. + * + * @param string|null $error + * + * @return $this + */ + public function setError(string $error = null) + { + $this->error = $error; - return $this; - } + return $this; + } } + + diff --git a/OpenAPIServerBundle.php b/OpenAPIServerBundle.php index eeb08c05..b2ca460f 100755 --- a/OpenAPIServerBundle.php +++ b/OpenAPIServerBundle.php @@ -1,24 +1,24 @@ addCompilerPass(new OpenAPIServerApiPass()); - } + public function build(ContainerBuilder $container) + { + $container->addCompilerPass(new OpenAPIServerApiPass()); + } } diff --git a/README.md b/README.md index 4a9f0f0f..e380e0b0 100755 --- a/README.md +++ b/README.md @@ -3,13 +3,13 @@ API for the Catrobat Share Platform This [Symfony](https://symfony.com/) bundle is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: v1.1.0 +- API version: v1.1.1 - Build package: org.openapitools.codegen.languages.PhpSymfonyServerCodegen For more information, please visit [https://share.catrob.at](https://share.catrob.at) ## Requirements -PHP 7.1.3 and later +PHP 8.0 and later ## Installation & Usage @@ -46,26 +46,20 @@ composer install Step 1: Please follow the [installation procedure](#installation--usage) first. -Step 2: Enable the bundle in the kernel: +Step 2: Enable the bundle in the bundle configuration: ```php - ['all' => true], +]; ``` Step 3: Register the routes: ```yaml -# app/config/routing.yml +# app/config/routes.yaml open_api_server: resource: "@OpenAPIServerBundle/Resources/config/routing.yml" ``` @@ -86,7 +80,7 @@ class AuthenticationApi implements AuthenticationApiInterface // An interface is /** * Implementation of AuthenticationApiInterface#authenticationDelete */ - public function authenticationDelete(string $x_refresh) + public function authenticationDelete(string $x_refresh, &$responseCode, array &$responseHeaders): array|void { // Implement the operation ... } @@ -98,11 +92,10 @@ class AuthenticationApi implements AuthenticationApiInterface // An interface is Step 5: Tag your API implementation: ```yaml -# src/Acme/MyBundle/Resources/services.yml +# config/services.yml services: # ... - acme.my_bundle.api.authentication: - class: Acme\MyBundle\Api\AuthenticationApi + Acme\MyBundle\Api\AuthenticationApi: tags: - { name: "open_api_server.api", api: "authentication" } # ... diff --git a/Resources/config/routing.yml b/Resources/config/routing.yml index 57f2775c..800cf5d7 100755 --- a/Resources/config/routing.yml +++ b/Resources/config/routing.yml @@ -7,44 +7,44 @@ open_api_server_authentication_authenticationdelete: path: /authentication methods: [DELETE] defaults: - _controller: open_api_server.controller.authentication:authenticationDeleteAction + _controller: open_api_server.controller.authentication::authenticationDeleteAction open_api_server_authentication_authenticationget: path: /authentication methods: [GET] defaults: - _controller: open_api_server.controller.authentication:authenticationGetAction + _controller: open_api_server.controller.authentication::authenticationGetAction open_api_server_authentication_authenticationoauthpost: path: /authentication/oauth methods: [POST] defaults: - _controller: open_api_server.controller.authentication:authenticationOauthPostAction + _controller: open_api_server.controller.authentication::authenticationOauthPostAction open_api_server_authentication_authenticationpost: path: /authentication methods: [POST] defaults: - _controller: open_api_server.controller.authentication:authenticationPostAction + _controller: open_api_server.controller.authentication::authenticationPostAction open_api_server_authentication_authenticationrefreshpost: path: /authentication/refresh methods: [POST] defaults: - _controller: open_api_server.controller.authentication:authenticationRefreshPostAction + _controller: open_api_server.controller.authentication::authenticationRefreshPostAction open_api_server_authentication_authenticationupgradepost: path: /authentication/upgrade methods: [POST] defaults: - _controller: open_api_server.controller.authentication:authenticationUpgradePostAction + _controller: open_api_server.controller.authentication::authenticationUpgradePostAction # mediaLibrary open_api_server_mediaLibrary_mediafileidget: path: /media/file/{id} methods: [GET] defaults: - _controller: open_api_server.controller.mediaLibrary:mediaFileIdGetAction + _controller: open_api_server.controller.mediaLibrary::mediaFileIdGetAction requirements: id: '\d+' @@ -52,19 +52,19 @@ open_api_server_mediaLibrary_mediafilesget: path: /media/files methods: [GET] defaults: - _controller: open_api_server.controller.mediaLibrary:mediaFilesGetAction + _controller: open_api_server.controller.mediaLibrary::mediaFilesGetAction open_api_server_mediaLibrary_mediafilessearchget: path: /media/files/search methods: [GET] defaults: - _controller: open_api_server.controller.mediaLibrary:mediaFilesSearchGetAction + _controller: open_api_server.controller.mediaLibrary::mediaFilesSearchGetAction open_api_server_mediaLibrary_mediapackagenameget: path: /media/package/{name} methods: [GET] defaults: - _controller: open_api_server.controller.mediaLibrary:mediaPackageNameGetAction + _controller: open_api_server.controller.mediaLibrary::mediaPackageNameGetAction requirements: name: '^[a-zA-Z0-9\\-_]+$' @@ -73,7 +73,7 @@ open_api_server_notifications_notificationidreadput: path: /notification/{id}/read methods: [PUT] defaults: - _controller: open_api_server.controller.notifications:notificationIdReadPutAction + _controller: open_api_server.controller.notifications::notificationIdReadPutAction requirements: id: '\d+' @@ -81,26 +81,26 @@ open_api_server_notifications_notificationscountget: path: /notifications/count methods: [GET] defaults: - _controller: open_api_server.controller.notifications:notificationsCountGetAction + _controller: open_api_server.controller.notifications::notificationsCountGetAction open_api_server_notifications_notificationsget: path: /notifications methods: [GET] defaults: - _controller: open_api_server.controller.notifications:notificationsGetAction + _controller: open_api_server.controller.notifications::notificationsGetAction open_api_server_notifications_notificationsreadput: path: /notifications/read methods: [PUT] defaults: - _controller: open_api_server.controller.notifications:notificationsReadPutAction + _controller: open_api_server.controller.notifications::notificationsReadPutAction # projects open_api_server_projects_projectidcatrobatget: path: /project/{id}/catrobat methods: [GET] defaults: - _controller: open_api_server.controller.projects:projectIdCatrobatGetAction + _controller: open_api_server.controller.projects::projectIdCatrobatGetAction requirements: id: '^[a-zA-Z0-9\\-]+$' @@ -108,7 +108,7 @@ open_api_server_projects_projectiddelete: path: /project/{id} methods: [DELETE] defaults: - _controller: open_api_server.controller.projects:projectIdDeleteAction + _controller: open_api_server.controller.projects::projectIdDeleteAction requirements: id: '^[a-zA-Z0-9\\-]+$' @@ -116,7 +116,7 @@ open_api_server_projects_projectidget: path: /project/{id} methods: [GET] defaults: - _controller: open_api_server.controller.projects:projectIdGetAction + _controller: open_api_server.controller.projects::projectIdGetAction requirements: id: '^[a-zA-Z0-9\\-]+$' @@ -124,7 +124,7 @@ open_api_server_projects_projectidput: path: /project/{id} methods: [PUT] defaults: - _controller: open_api_server.controller.projects:projectIdPutAction + _controller: open_api_server.controller.projects::projectIdPutAction requirements: id: '^[a-zA-Z0-9\\-]+$' @@ -132,7 +132,7 @@ open_api_server_projects_projectidrecommendationsget: path: /project/{id}/recommendations methods: [GET] defaults: - _controller: open_api_server.controller.projects:projectIdRecommendationsGetAction + _controller: open_api_server.controller.projects::projectIdRecommendationsGetAction requirements: id: '^[a-zA-Z0-9\\-]+$' @@ -140,7 +140,7 @@ open_api_server_projects_projectidreportpost: path: /project/{id}/report methods: [POST] defaults: - _controller: open_api_server.controller.projects:projectIdReportPostAction + _controller: open_api_server.controller.projects::projectIdReportPostAction requirements: id: '^[a-zA-Z0-9\\-]+$' @@ -148,55 +148,55 @@ open_api_server_projects_projectscategoriesget: path: /projects/categories methods: [GET] defaults: - _controller: open_api_server.controller.projects:projectsCategoriesGetAction + _controller: open_api_server.controller.projects::projectsCategoriesGetAction open_api_server_projects_projectsextensionsget: path: /projects/extensions methods: [GET] defaults: - _controller: open_api_server.controller.projects:projectsExtensionsGetAction + _controller: open_api_server.controller.projects::projectsExtensionsGetAction open_api_server_projects_projectsfeaturedget: path: /projects/featured methods: [GET] defaults: - _controller: open_api_server.controller.projects:projectsFeaturedGetAction + _controller: open_api_server.controller.projects::projectsFeaturedGetAction open_api_server_projects_projectsget: path: /projects methods: [GET] defaults: - _controller: open_api_server.controller.projects:projectsGetAction + _controller: open_api_server.controller.projects::projectsGetAction open_api_server_projects_projectspost: path: /projects methods: [POST] defaults: - _controller: open_api_server.controller.projects:projectsPostAction + _controller: open_api_server.controller.projects::projectsPostAction open_api_server_projects_projectssearchget: path: /projects/search methods: [GET] defaults: - _controller: open_api_server.controller.projects:projectsSearchGetAction + _controller: open_api_server.controller.projects::projectsSearchGetAction open_api_server_projects_projectstagsget: path: /projects/tags methods: [GET] defaults: - _controller: open_api_server.controller.projects:projectsTagsGetAction + _controller: open_api_server.controller.projects::projectsTagsGetAction open_api_server_projects_projectsuserget: path: /projects/user methods: [GET] defaults: - _controller: open_api_server.controller.projects:projectsUserGetAction + _controller: open_api_server.controller.projects::projectsUserGetAction open_api_server_projects_projectsuseridget: path: /projects/user/{id} methods: [GET] defaults: - _controller: open_api_server.controller.projects:projectsUserIdGetAction + _controller: open_api_server.controller.projects::projectsUserIdGetAction requirements: id: '^[a-zA-Z0-9\\-]+$' @@ -205,26 +205,26 @@ open_api_server_search_searchget: path: /search methods: [GET] defaults: - _controller: open_api_server.controller.search:searchGetAction + _controller: open_api_server.controller.search::searchGetAction # user open_api_server_user_userdelete: path: /user methods: [DELETE] defaults: - _controller: open_api_server.controller.user:userDeleteAction + _controller: open_api_server.controller.user::userDeleteAction open_api_server_user_userget: path: /user methods: [GET] defaults: - _controller: open_api_server.controller.user:userGetAction + _controller: open_api_server.controller.user::userGetAction open_api_server_user_useridget: path: /user/{id} methods: [GET] defaults: - _controller: open_api_server.controller.user:userIdGetAction + _controller: open_api_server.controller.user::userIdGetAction requirements: id: '^[a-zA-Z0-9\\-]+$' @@ -232,38 +232,38 @@ open_api_server_user_userpost: path: /user methods: [POST] defaults: - _controller: open_api_server.controller.user:userPostAction + _controller: open_api_server.controller.user::userPostAction open_api_server_user_userput: path: /user methods: [PUT] defaults: - _controller: open_api_server.controller.user:userPutAction + _controller: open_api_server.controller.user::userPutAction open_api_server_user_userresetpasswordpost: path: /user/reset-password methods: [POST] defaults: - _controller: open_api_server.controller.user:userResetPasswordPostAction + _controller: open_api_server.controller.user::userResetPasswordPostAction open_api_server_user_userssearchget: path: /users/search methods: [GET] defaults: - _controller: open_api_server.controller.user:usersSearchGetAction + _controller: open_api_server.controller.user::usersSearchGetAction # utility open_api_server_utility_healthget: path: /health methods: [GET] defaults: - _controller: open_api_server.controller.utility:healthGetAction + _controller: open_api_server.controller.utility::healthGetAction open_api_server_utility_surveylangcodeget: path: /survey/{lang_code} methods: [GET] defaults: - _controller: open_api_server.controller.utility:surveyLangCodeGetAction + _controller: open_api_server.controller.utility::surveyLangCodeGetAction requirements: lang_code: '[a-z0-9]+' diff --git a/Resources/config/services.yml b/Resources/config/services.yml index a34395af..04e265e9 100755 --- a/Resources/config/services.yml +++ b/Resources/config/services.yml @@ -27,8 +27,8 @@ services: - [setSerializer, ['@open_api_server.service.serializer']] - [setValidator, ['@open_api_server.service.validator']] - [setApiServer, ['@open_api_server.api.api_server']] + - [setContainer, ['@service_container']] tags: ['controller.service_arguments'] - autowire: true open_api_server.controller.mediaLibrary: class: OpenAPI\Server\Controller\MediaLibraryController @@ -36,8 +36,8 @@ services: - [setSerializer, ['@open_api_server.service.serializer']] - [setValidator, ['@open_api_server.service.validator']] - [setApiServer, ['@open_api_server.api.api_server']] + - [setContainer, ['@service_container']] tags: ['controller.service_arguments'] - autowire: true open_api_server.controller.notifications: class: OpenAPI\Server\Controller\NotificationsController @@ -45,8 +45,8 @@ services: - [setSerializer, ['@open_api_server.service.serializer']] - [setValidator, ['@open_api_server.service.validator']] - [setApiServer, ['@open_api_server.api.api_server']] + - [setContainer, ['@service_container']] tags: ['controller.service_arguments'] - autowire: true open_api_server.controller.projects: class: OpenAPI\Server\Controller\ProjectsController @@ -54,8 +54,8 @@ services: - [setSerializer, ['@open_api_server.service.serializer']] - [setValidator, ['@open_api_server.service.validator']] - [setApiServer, ['@open_api_server.api.api_server']] + - [setContainer, ['@service_container']] tags: ['controller.service_arguments'] - autowire: true open_api_server.controller.search: class: OpenAPI\Server\Controller\SearchController @@ -63,8 +63,8 @@ services: - [setSerializer, ['@open_api_server.service.serializer']] - [setValidator, ['@open_api_server.service.validator']] - [setApiServer, ['@open_api_server.api.api_server']] + - [setContainer, ['@service_container']] tags: ['controller.service_arguments'] - autowire: true open_api_server.controller.user: class: OpenAPI\Server\Controller\UserController @@ -72,8 +72,8 @@ services: - [setSerializer, ['@open_api_server.service.serializer']] - [setValidator, ['@open_api_server.service.validator']] - [setApiServer, ['@open_api_server.api.api_server']] + - [setContainer, ['@service_container']] tags: ['controller.service_arguments'] - autowire: true open_api_server.controller.utility: class: OpenAPI\Server\Controller\UtilityController @@ -81,6 +81,6 @@ services: - [setSerializer, ['@open_api_server.service.serializer']] - [setValidator, ['@open_api_server.service.validator']] - [setApiServer, ['@open_api_server.api.api_server']] + - [setContainer, ['@service_container']] tags: ['controller.service_arguments'] - autowire: true diff --git a/Resources/docs/Api/AuthenticationApiInterface.md b/Resources/docs/Api/AuthenticationApiInterface.md index 21a5bbb5..9be05572 100755 --- a/Resources/docs/Api/AuthenticationApiInterface.md +++ b/Resources/docs/Api/AuthenticationApiInterface.md @@ -14,11 +14,10 @@ Method | HTTP request | Description ## Service Declaration ```yaml -# src/Acme/MyBundle/Resources/services.yml +# config/services.yml services: # ... - acme.my_bundle.api.authentication: - class: Acme\MyBundle\Api\AuthenticationApi + Acme\MyBundle\Api\AuthenticationApi: tags: - { name: "open_api_server.api", api: "authentication" } # ... @@ -48,7 +47,7 @@ class AuthenticationApi implements AuthenticationApiInterface /** * Implementation of AuthenticationApiInterface#authenticationDelete */ - public function authenticationDelete(string $x_refresh) + public function authenticationDelete(string $x_refresh, &$responseCode, array &$responseHeaders): void { // Implement the operation ... } @@ -102,7 +101,7 @@ class AuthenticationApi implements AuthenticationApiInterface /** * Implementation of AuthenticationApiInterface#authenticationGet */ - public function authenticationGet() + public function authenticationGet(, &$responseCode, array &$responseHeaders): void { // Implement the operation ... } @@ -153,7 +152,7 @@ class AuthenticationApi implements AuthenticationApiInterface /** * Implementation of AuthenticationApiInterface#authenticationOauthPost */ - public function authenticationOauthPost(OAuthLoginRequest $o_auth_login_request) + public function authenticationOauthPost(OAuthLoginRequest $o_auth_login_request, &$responseCode, array &$responseHeaders): array|\OpenAPI\Server\Model\JWTResponse { // Implement the operation ... } @@ -207,7 +206,7 @@ class AuthenticationApi implements AuthenticationApiInterface /** * Implementation of AuthenticationApiInterface#authenticationPost */ - public function authenticationPost(LoginRequest $login_request) + public function authenticationPost(LoginRequest $login_request, &$responseCode, array &$responseHeaders): array|\OpenAPI\Server\Model\JWTResponse { // Implement the operation ... } @@ -261,7 +260,7 @@ class AuthenticationApi implements AuthenticationApiInterface /** * Implementation of AuthenticationApiInterface#authenticationRefreshPost */ - public function authenticationRefreshPost(RefreshRequest $refresh_request) + public function authenticationRefreshPost(RefreshRequest $refresh_request, &$responseCode, array &$responseHeaders): array|\OpenAPI\Server\Model\JWTResponse { // Implement the operation ... } @@ -315,7 +314,7 @@ class AuthenticationApi implements AuthenticationApiInterface /** * Implementation of AuthenticationApiInterface#authenticationUpgradePost */ - public function authenticationUpgradePost(UpgradeTokenRequest $upgrade_token_request) + public function authenticationUpgradePost(UpgradeTokenRequest $upgrade_token_request, &$responseCode, array &$responseHeaders): array|\OpenAPI\Server\Model\JWTResponse { // Implement the operation ... } diff --git a/Resources/docs/Api/MediaLibraryApiInterface.md b/Resources/docs/Api/MediaLibraryApiInterface.md index a95b8adb..7b4774da 100755 --- a/Resources/docs/Api/MediaLibraryApiInterface.md +++ b/Resources/docs/Api/MediaLibraryApiInterface.md @@ -12,11 +12,10 @@ Method | HTTP request | Description ## Service Declaration ```yaml -# src/Acme/MyBundle/Resources/services.yml +# config/services.yml services: # ... - acme.my_bundle.api.mediaLibrary: - class: Acme\MyBundle\Api\MediaLibraryApi + Acme\MyBundle\Api\MediaLibraryApi: tags: - { name: "open_api_server.api", api: "mediaLibrary" } # ... @@ -44,7 +43,7 @@ class MediaLibraryApi implements MediaLibraryApiInterface /** * Implementation of MediaLibraryApiInterface#mediaFileIdGet */ - public function mediaFileIdGet(int $id, string $attributes = null) + public function mediaFileIdGet(int $id, string $attributes = null, &$responseCode, array &$responseHeaders): array|\OpenAPI\Server\Model\MediaFileResponse { // Implement the operation ... } @@ -97,7 +96,7 @@ class MediaLibraryApi implements MediaLibraryApiInterface /** * Implementation of MediaLibraryApiInterface#mediaFilesGet */ - public function mediaFilesGet(int $limit = '20', int $offset = '0', string $attributes = null, string $flavor = null) + public function mediaFilesGet(int $limit = '20', int $offset = '0', string $attributes = null, string $flavor = null, &$responseCode, array &$responseHeaders): iterable { // Implement the operation ... } @@ -152,7 +151,7 @@ class MediaLibraryApi implements MediaLibraryApiInterface /** * Implementation of MediaLibraryApiInterface#mediaFilesSearchGet */ - public function mediaFilesSearchGet(string $query, int $limit = '20', int $offset = '0', string $attributes = null, string $flavor = null, string $package_name = null) + public function mediaFilesSearchGet(string $query, int $limit = '20', int $offset = '0', string $attributes = null, string $flavor = null, string $package_name = null, &$responseCode, array &$responseHeaders): iterable { // Implement the operation ... } @@ -209,7 +208,7 @@ class MediaLibraryApi implements MediaLibraryApiInterface /** * Implementation of MediaLibraryApiInterface#mediaPackageNameGet */ - public function mediaPackageNameGet(string $name, int $limit = '20', int $offset = '0', string $attributes = null) + public function mediaPackageNameGet(string $name, int $limit = '20', int $offset = '0', string $attributes = null, &$responseCode, array &$responseHeaders): iterable { // Implement the operation ... } diff --git a/Resources/docs/Api/NotificationsApiInterface.md b/Resources/docs/Api/NotificationsApiInterface.md index 356a9e53..748112de 100755 --- a/Resources/docs/Api/NotificationsApiInterface.md +++ b/Resources/docs/Api/NotificationsApiInterface.md @@ -12,11 +12,10 @@ Method | HTTP request | Description ## Service Declaration ```yaml -# src/Acme/MyBundle/Resources/services.yml +# config/services.yml services: # ... - acme.my_bundle.api.notifications: - class: Acme\MyBundle\Api\NotificationsApi + Acme\MyBundle\Api\NotificationsApi: tags: - { name: "open_api_server.api", api: "notifications" } # ... @@ -44,7 +43,7 @@ class NotificationsApi implements NotificationsApiInterface /** * Implementation of NotificationsApiInterface#notificationIdReadPut */ - public function notificationIdReadPut(int $id, string $accept_language = null) + public function notificationIdReadPut(int $id, string $accept_language = null, &$responseCode, array &$responseHeaders): void { // Implement the operation ... } @@ -97,7 +96,7 @@ class NotificationsApi implements NotificationsApiInterface /** * Implementation of NotificationsApiInterface#notificationsCountGet */ - public function notificationsCountGet() + public function notificationsCountGet(, &$responseCode, array &$responseHeaders): array|\OpenAPI\Server\Model\NotificationsCountResponse { // Implement the operation ... } @@ -146,7 +145,7 @@ class NotificationsApi implements NotificationsApiInterface /** * Implementation of NotificationsApiInterface#notificationsGet */ - public function notificationsGet(string $accept_language = null, int $limit = '20', int $offset = '0', string $attributes = null, NotificationsType $type = null) + public function notificationsGet(string $accept_language = null, int $limit = '20', int $offset = '0', string $attributes = null, $type = null, &$responseCode, array &$responseHeaders): iterable { // Implement the operation ... } @@ -163,7 +162,7 @@ Name | Type | Description | Notes **limit** | **int**| | [optional] [default to 20] **offset** | **int**| | [optional] [default to 0] **attributes** | **string**| | [optional] - **type** | [**OpenAPI\Server\Model\NotificationsType**](../Model/.md)| | [optional] + **type** | [**NotificationsType**](../Model/.md)| | [optional] ### Return type @@ -202,7 +201,7 @@ class NotificationsApi implements NotificationsApiInterface /** * Implementation of NotificationsApiInterface#notificationsReadPut */ - public function notificationsReadPut() + public function notificationsReadPut(, &$responseCode, array &$responseHeaders): void { // Implement the operation ... } diff --git a/Resources/docs/Api/ProjectsApiInterface.md b/Resources/docs/Api/ProjectsApiInterface.md index 5beb392f..2933cd56 100755 --- a/Resources/docs/Api/ProjectsApiInterface.md +++ b/Resources/docs/Api/ProjectsApiInterface.md @@ -23,11 +23,10 @@ Method | HTTP request | Description ## Service Declaration ```yaml -# src/Acme/MyBundle/Resources/services.yml +# config/services.yml services: # ... - acme.my_bundle.api.projects: - class: Acme\MyBundle\Api\ProjectsApi + Acme\MyBundle\Api\ProjectsApi: tags: - { name: "open_api_server.api", api: "projects" } # ... @@ -57,7 +56,7 @@ class ProjectsApi implements ProjectsApiInterface /** * Implementation of ProjectsApiInterface#projectIdCatrobatGet */ - public function projectIdCatrobatGet(string $id) + public function projectIdCatrobatGet(string $id, &$responseCode, array &$responseHeaders): array|UploadedFile { // Implement the operation ... } @@ -109,7 +108,7 @@ class ProjectsApi implements ProjectsApiInterface /** * Implementation of ProjectsApiInterface#projectIdDelete */ - public function projectIdDelete(string $id) + public function projectIdDelete(string $id, &$responseCode, array &$responseHeaders): void { // Implement the operation ... } @@ -161,7 +160,7 @@ class ProjectsApi implements ProjectsApiInterface /** * Implementation of ProjectsApiInterface#projectIdGet */ - public function projectIdGet(string $id) + public function projectIdGet(string $id, &$responseCode, array &$responseHeaders): array|\OpenAPI\Server\Model\ProjectResponse { // Implement the operation ... } @@ -215,7 +214,7 @@ class ProjectsApi implements ProjectsApiInterface /** * Implementation of ProjectsApiInterface#projectIdPut */ - public function projectIdPut(string $id, UpdateProjectRequest $update_project_request, string $accept_language = null) + public function projectIdPut(string $id, UpdateProjectRequest $update_project_request, string $accept_language = null, &$responseCode, array &$responseHeaders): array|\array { // Implement the operation ... } @@ -269,7 +268,7 @@ class ProjectsApi implements ProjectsApiInterface /** * Implementation of ProjectsApiInterface#projectIdRecommendationsGet */ - public function projectIdRecommendationsGet(string $id, string $category, string $accept_language = null, string $max_version = null, int $limit = '20', int $offset = '0', string $attributes = null, string $flavor = null) + public function projectIdRecommendationsGet(string $id, string $category, string $accept_language = null, string $max_version = null, int $limit = '20', int $offset = '0', string $attributes = null, string $flavor = null, &$responseCode, array &$responseHeaders): iterable { // Implement the operation ... } @@ -328,7 +327,7 @@ class ProjectsApi implements ProjectsApiInterface /** * Implementation of ProjectsApiInterface#projectIdReportPost */ - public function projectIdReportPost(string $id, ProjectReportRequest $project_report_request) + public function projectIdReportPost(string $id, ProjectReportRequest $project_report_request, &$responseCode, array &$responseHeaders): void { // Implement the operation ... } @@ -381,7 +380,7 @@ class ProjectsApi implements ProjectsApiInterface /** * Implementation of ProjectsApiInterface#projectsCategoriesGet */ - public function projectsCategoriesGet(string $max_version = null, string $flavor = null, string $accept_language = null) + public function projectsCategoriesGet(string $max_version = null, string $flavor = null, string $accept_language = null, &$responseCode, array &$responseHeaders): iterable { // Implement the operation ... } @@ -435,7 +434,7 @@ class ProjectsApi implements ProjectsApiInterface /** * Implementation of ProjectsApiInterface#projectsExtensionsGet */ - public function projectsExtensionsGet(string $accept_language = null) + public function projectsExtensionsGet(string $accept_language = null, &$responseCode, array &$responseHeaders): iterable { // Implement the operation ... } @@ -487,7 +486,7 @@ class ProjectsApi implements ProjectsApiInterface /** * Implementation of ProjectsApiInterface#projectsFeaturedGet */ - public function projectsFeaturedGet(string $platform = null, string $max_version = null, int $limit = '20', int $offset = '0', string $attributes = null, string $flavor = null) + public function projectsFeaturedGet(string $platform = null, string $max_version = null, int $limit = '20', int $offset = '0', string $attributes = null, string $flavor = null, &$responseCode, array &$responseHeaders): iterable { // Implement the operation ... } @@ -544,7 +543,7 @@ class ProjectsApi implements ProjectsApiInterface /** * Implementation of ProjectsApiInterface#projectsGet */ - public function projectsGet(string $category, string $accept_language = null, string $max_version = null, int $limit = '20', int $offset = '0', string $attributes = null, string $flavor = null) + public function projectsGet(string $category, string $accept_language = null, string $max_version = null, int $limit = '20', int $offset = '0', string $attributes = null, string $flavor = null, &$responseCode, array &$responseHeaders): iterable { // Implement the operation ... } @@ -602,7 +601,7 @@ class ProjectsApi implements ProjectsApiInterface /** * Implementation of ProjectsApiInterface#projectsPost */ - public function projectsPost(string $checksum, UploadedFile $file, string $accept_language = null, string $flavor = null, bool $private = null) + public function projectsPost(string $checksum, UploadedFile $file, string $accept_language = null, string $flavor = null, bool $private = null, &$responseCode, array &$responseHeaders): array|\array { // Implement the operation ... } @@ -658,7 +657,7 @@ class ProjectsApi implements ProjectsApiInterface /** * Implementation of ProjectsApiInterface#projectsSearchGet */ - public function projectsSearchGet(string $query, string $max_version = null, int $limit = '20', int $offset = '0', string $attributes = null, string $flavor = null) + public function projectsSearchGet(string $query, string $max_version = null, int $limit = '20', int $offset = '0', string $attributes = null, string $flavor = null, &$responseCode, array &$responseHeaders): iterable { // Implement the operation ... } @@ -715,7 +714,7 @@ class ProjectsApi implements ProjectsApiInterface /** * Implementation of ProjectsApiInterface#projectsTagsGet */ - public function projectsTagsGet(string $accept_language = null) + public function projectsTagsGet(string $accept_language = null, &$responseCode, array &$responseHeaders): iterable { // Implement the operation ... } @@ -767,7 +766,7 @@ class ProjectsApi implements ProjectsApiInterface /** * Implementation of ProjectsApiInterface#projectsUserGet */ - public function projectsUserGet(string $max_version = null, int $limit = '20', int $offset = '0', string $attributes = null, string $flavor = null) + public function projectsUserGet(string $max_version = null, int $limit = '20', int $offset = '0', string $attributes = null, string $flavor = null, &$responseCode, array &$responseHeaders): iterable { // Implement the operation ... } @@ -823,7 +822,7 @@ class ProjectsApi implements ProjectsApiInterface /** * Implementation of ProjectsApiInterface#projectsUserIdGet */ - public function projectsUserIdGet(string $id, string $max_version = null, int $limit = '20', int $offset = '0', string $attributes = null, string $flavor = null) + public function projectsUserIdGet(string $id, string $max_version = null, int $limit = '20', int $offset = '0', string $attributes = null, string $flavor = null, &$responseCode, array &$responseHeaders): iterable { // Implement the operation ... } diff --git a/Resources/docs/Api/SearchApiInterface.md b/Resources/docs/Api/SearchApiInterface.md index 966cd3f1..4edc10ac 100755 --- a/Resources/docs/Api/SearchApiInterface.md +++ b/Resources/docs/Api/SearchApiInterface.md @@ -9,11 +9,10 @@ Method | HTTP request | Description ## Service Declaration ```yaml -# src/Acme/MyBundle/Resources/services.yml +# config/services.yml services: # ... - acme.my_bundle.api.search: - class: Acme\MyBundle\Api\SearchApi + Acme\MyBundle\Api\SearchApi: tags: - { name: "open_api_server.api", api: "search" } # ... @@ -43,7 +42,7 @@ class SearchApi implements SearchApiInterface /** * Implementation of SearchApiInterface#searchGet */ - public function searchGet(string $query, string $type = null, int $limit = '20', int $offset = '0') + public function searchGet(string $query, string $type = null, int $limit = '20', int $offset = '0', &$responseCode, array &$responseHeaders): array|\OpenAPI\Server\Model\SearchResponse { // Implement the operation ... } diff --git a/Resources/docs/Api/UserApiInterface.md b/Resources/docs/Api/UserApiInterface.md index 51bffb2f..f35ff85d 100755 --- a/Resources/docs/Api/UserApiInterface.md +++ b/Resources/docs/Api/UserApiInterface.md @@ -15,11 +15,10 @@ Method | HTTP request | Description ## Service Declaration ```yaml -# src/Acme/MyBundle/Resources/services.yml +# config/services.yml services: # ... - acme.my_bundle.api.user: - class: Acme\MyBundle\Api\UserApi + Acme\MyBundle\Api\UserApi: tags: - { name: "open_api_server.api", api: "user" } # ... @@ -49,7 +48,7 @@ class UserApi implements UserApiInterface /** * Implementation of UserApiInterface#userDelete */ - public function userDelete() + public function userDelete(, &$responseCode, array &$responseHeaders): void { // Implement the operation ... } @@ -100,7 +99,7 @@ class UserApi implements UserApiInterface /** * Implementation of UserApiInterface#userGet */ - public function userGet() + public function userGet(, &$responseCode, array &$responseHeaders): array|\OpenAPI\Server\Model\ExtendedUserDataResponse { // Implement the operation ... } @@ -151,7 +150,7 @@ class UserApi implements UserApiInterface /** * Implementation of UserApiInterface#userIdGet */ - public function userIdGet(string $id) + public function userIdGet(string $id, &$responseCode, array &$responseHeaders): array|\OpenAPI\Server\Model\BasicUserDataResponse { // Implement the operation ... } @@ -205,7 +204,7 @@ class UserApi implements UserApiInterface /** * Implementation of UserApiInterface#userPost */ - public function userPost(RegisterRequest $register_request, string $accept_language = null) + public function userPost(RegisterRequest $register_request, string $accept_language = null, &$responseCode, array &$responseHeaders): array|\OpenAPI\Server\Model\JWTResponse { // Implement the operation ... } @@ -260,7 +259,7 @@ class UserApi implements UserApiInterface /** * Implementation of UserApiInterface#userPut */ - public function userPut(UpdateUserRequest $update_user_request, string $accept_language = null) + public function userPut(UpdateUserRequest $update_user_request, string $accept_language = null, &$responseCode, array &$responseHeaders): array|\array { // Implement the operation ... } @@ -315,7 +314,7 @@ class UserApi implements UserApiInterface /** * Implementation of UserApiInterface#userResetPasswordPost */ - public function userResetPasswordPost(ResetPasswordRequest $reset_password_request, string $accept_language = null) + public function userResetPasswordPost(ResetPasswordRequest $reset_password_request, string $accept_language = null, &$responseCode, array &$responseHeaders): array|\array { // Implement the operation ... } @@ -370,7 +369,7 @@ class UserApi implements UserApiInterface /** * Implementation of UserApiInterface#usersSearchGet */ - public function usersSearchGet(string $query, int $limit = '20', int $offset = '0', string $attributes = null) + public function usersSearchGet(string $query, int $limit = '20', int $offset = '0', string $attributes = null, &$responseCode, array &$responseHeaders): iterable { // Implement the operation ... } diff --git a/Resources/docs/Api/UtilityApiInterface.md b/Resources/docs/Api/UtilityApiInterface.md index 6ea35e8f..1f28afb8 100755 --- a/Resources/docs/Api/UtilityApiInterface.md +++ b/Resources/docs/Api/UtilityApiInterface.md @@ -10,11 +10,10 @@ Method | HTTP request | Description ## Service Declaration ```yaml -# src/Acme/MyBundle/Resources/services.yml +# config/services.yml services: # ... - acme.my_bundle.api.utility: - class: Acme\MyBundle\Api\UtilityApi + Acme\MyBundle\Api\UtilityApi: tags: - { name: "open_api_server.api", api: "utility" } # ... @@ -42,7 +41,7 @@ class UtilityApi implements UtilityApiInterface /** * Implementation of UtilityApiInterface#healthGet */ - public function healthGet() + public function healthGet(, &$responseCode, array &$responseHeaders): void { // Implement the operation ... } @@ -91,7 +90,7 @@ class UtilityApi implements UtilityApiInterface /** * Implementation of UtilityApiInterface#surveyLangCodeGet */ - public function surveyLangCodeGet(string $lang_code, string $flavor = null) + public function surveyLangCodeGet(string $lang_code, string $flavor = null, &$responseCode, array &$responseHeaders): array|\OpenAPI\Server\Model\SurveyResponse { // Implement the operation ... } diff --git a/Service/JmsSerializer.php b/Service/JmsSerializer.php index 87275414..8d301b5b 100755 --- a/Service/JmsSerializer.php +++ b/Service/JmsSerializer.php @@ -2,71 +2,70 @@ namespace OpenAPI\Server\Service; -use DateTime; +use JMS\Serializer\SerializerBuilder; use JMS\Serializer\Naming\CamelCaseNamingStrategy; use JMS\Serializer\Naming\SerializedNameAnnotationStrategy; -use JMS\Serializer\SerializerBuilder; use JMS\Serializer\Visitor\Factory\XmlDeserializationVisitorFactory; +use DateTime; use RuntimeException; class JmsSerializer implements SerializerInterface { - protected $serializer; - - public function __construct() - { - $namingStrategy = new SerializedNameAnnotationStrategy(new CamelCaseNamingStrategy()); - $this->serializer = SerializerBuilder::create() - ->setDeserializationVisitor('json', new StrictJsonDeserializationVisitorFactory()) - ->setDeserializationVisitor('xml', new XmlDeserializationVisitorFactory()) - ->setPropertyNamingStrategy($namingStrategy) - ->build() - ; - } - - public function serialize($data, $format) - { - return SerializerBuilder::create()->build()->serialize($data, $this->convertFormat($format)); - } - - public function deserialize($data, $type, $format) - { - if ('string' == $format) { - return $this->deserializeString($data, $type); + protected $serializer; + + public function __construct() + { + $namingStrategy = new SerializedNameAnnotationStrategy(new CamelCaseNamingStrategy()); + $this->serializer = SerializerBuilder::create() + ->setDeserializationVisitor('json', new StrictJsonDeserializationVisitorFactory()) + ->setDeserializationVisitor('xml', new XmlDeserializationVisitorFactory()) + ->setPropertyNamingStrategy($namingStrategy) + ->build(); + } + + public function serialize($data, $format) + { + return SerializerBuilder::create()->build()->serialize($data, $this->convertFormat($format)); } - // If we end up here, let JMS serializer handle the deserialization - return $this->serializer->deserialize($data, $type, $this->convertFormat($format)); - } + public function deserialize($data, $type, $format) + { + if ($format == 'string') { + return $this->deserializeString($data, $type); + } - private function convertFormat($format) - { - switch ($format) { + // If we end up here, let JMS serializer handle the deserialization + return $this->serializer->deserialize($data, $type, $this->convertFormat($format)); + } + + private function convertFormat($format) + { + switch ($format) { case 'application/json': return 'json'; case 'application/xml': return 'xml'; } - return null; - } - - private function deserializeString($data, $type) - { - // Figure out if we have an array format - if (1 === preg_match('/array<(csv|ssv|tsv|pipes),(int|string)>/i', $type, $matches)) { - return $this->deserializeArrayString($matches[1], $matches[2], $data); + return null; } - switch ($type) { + private function deserializeString($data, $type) + { + // Figure out if we have an array format + if (1 === preg_match('/array<(csv|ssv|tsv|pipes),(int|string)>/i', $type, $matches)) { + return $this->deserializeArrayString($matches[1], $matches[2], $data); + } + + switch ($type) { case 'int': case 'integer': if (is_int($data)) { - return $data; + return $data; } if (is_numeric($data)) { - return $data + 0; + return $data + 0; } break; @@ -74,12 +73,12 @@ private function deserializeString($data, $type) break; case 'boolean': case 'bool': - if ('true' === strtolower($data)) { - return true; + if (strtolower($data) === 'true') { + return true; } - if ('false' === strtolower($data)) { - return false; + if (strtolower($data) === 'false') { + return false; } break; @@ -87,17 +86,22 @@ private function deserializeString($data, $type) case '\DateTime': return new DateTime($data); default: - throw new RuntimeException(sprintf('Type %s is unsupported', $type)); + throw new RuntimeException(sprintf("Type %s is unsupported", $type)); } - // If we end up here, just return data - return $data; - } + // If we end up here, just return data + return $data; + } + + private function deserializeArrayString($format, $type, $data) + { + if($data === null) + { + return []; + } - private function deserializeArrayString($format, $type, $data) - { - // Parse the string using the correct separator - switch ($format) { + // Parse the string using the correct separator + switch ($format) { case 'csv': $data = explode(',', $data); break; @@ -110,15 +114,15 @@ private function deserializeArrayString($format, $type, $data) case 'pipes': $data = explode('|', $data); break; - default: + default; $data = []; } - // Deserialize each of the array elements - foreach ($data as $key => $item) { - $data[$key] = $this->deserializeString($item, $type); - } + // Deserialize each of the array elements + foreach ($data as $key => $item) { + $data[$key] = $this->deserializeString($item, $type); + } - return $data; - } + return $data; + } } diff --git a/Service/SerializerInterface.php b/Service/SerializerInterface.php index 945c1eb0..40ef08f4 100755 --- a/Service/SerializerInterface.php +++ b/Service/SerializerInterface.php @@ -4,24 +4,24 @@ interface SerializerInterface { - /** - * Serializes the given data to the specified output format. - * - * @param object|array|scalar $data - * @param string $format - * - * @return string - */ - public function serialize($data, $format); + /** + * Serializes the given data to the specified output format. + * + * @param object|array|scalar $data + * @param string $format + * + * @return string + */ + public function serialize($data, $format); - /** - * Deserializes the given data to the specified type. - * - * @param string $data - * @param string $type - * @param string $format - * - * @return object|array|scalar - */ - public function deserialize($data, $type, $format); + /** + * Deserializes the given data to the specified type. + * + * @param string $data + * @param string $type + * @param string $format + * + * @return object|array|scalar + */ + public function deserialize($data, $type, $format); } diff --git a/Service/StrictJsonDeserializationVisitor.php b/Service/StrictJsonDeserializationVisitor.php old mode 100755 new mode 100644 index 77f370fa..af59d95a --- a/Service/StrictJsonDeserializationVisitor.php +++ b/Service/StrictJsonDeserializationVisitor.php @@ -19,140 +19,141 @@ namespace OpenAPI\Server\Service; -use JMS\Serializer\GraphNavigatorInterface; use JMS\Serializer\JsonDeserializationVisitor; +use JMS\Serializer\GraphNavigatorInterface; use JMS\Serializer\Metadata\ClassMetadata; use JMS\Serializer\Metadata\PropertyMetadata; use JMS\Serializer\Visitor\DeserializationVisitorInterface; class StrictJsonDeserializationVisitor implements DeserializationVisitorInterface { - protected JsonDeserializationVisitor $jsonDeserializationVisitor; + protected JsonDeserializationVisitor $jsonDeserializationVisitor; - public function __construct( + public function __construct( int $options = 0, int $depth = 512 ) { - $this->jsonDeserializationVisitor = new JsonDeserializationVisitor($options, $depth); - } - - /** - * {@inheritdoc} - */ - public function visitNull($data, array $type) - { - return $this->jsonDeserializationVisitor->visitNull($data, $type); - } - - /** - * {@inheritdoc} - */ - public function visitString($data, array $type): string - { - if (!is_string($data)) { - throw TypeMismatchException::fromValue('string', $data); + $this->jsonDeserializationVisitor = new JsonDeserializationVisitor($options, $depth); + } + + /** + * {@inheritdoc} + */ + public function visitNull($data, array $type) + { + return $this->jsonDeserializationVisitor->visitNull($data, $type); + } + + /** + * {@inheritdoc} + */ + public function visitString($data, array $type): string + { + if (!is_string($data)) { + throw TypeMismatchException::fromValue('string', $data); + } + + return $this->jsonDeserializationVisitor->visitString($data, $type); + } + + /** + * {@inheritdoc} + */ + public function visitBoolean($data, array $type): bool + { + if (!is_bool($data)) { + throw TypeMismatchException::fromValue('boolean', $data); + } + + return $this->jsonDeserializationVisitor->visitBoolean($data, $type); + } + + /** + * {@inheritdoc} + */ + public function visitInteger($data, array $type): int + { + if (!is_int($data)) { + throw TypeMismatchException::fromValue('integer', $data); + } + + return $this->jsonDeserializationVisitor->visitInteger($data, $type); } - return $this->jsonDeserializationVisitor->visitString($data, $type); - } + /** + * {@inheritdoc} + */ + public function visitDouble($data, array $type): float + { + if (!is_float($data) && !is_integer($data)) { + throw TypeMismatchException::fromValue('double', $data); + } + + return $this->jsonDeserializationVisitor->visitDouble($data, $type); + } - /** - * {@inheritdoc} - */ - public function visitBoolean($data, array $type): bool - { - if (!is_bool($data)) { - throw TypeMismatchException::fromValue('boolean', $data); + /** + * {@inheritdoc} + */ + public function visitArray($data, array $type): array + { + return $this->jsonDeserializationVisitor->visitArray($data, $type); } - return $this->jsonDeserializationVisitor->visitBoolean($data, $type); - } + /** + * {@inheritdoc} + */ + public function visitDiscriminatorMapProperty($data, ClassMetadata $metadata): string + { + return $this->jsonDeserializationVisitor->visitDiscriminatorMapProperty($data, $metadata); + } - /** - * {@inheritdoc} - */ - public function visitInteger($data, array $type): int - { - if (!is_int($data)) { - throw TypeMismatchException::fromValue('integer', $data); + /** + * {@inheritdoc} + */ + public function startVisitingObject(ClassMetadata $metadata, object $data, array $type): void + { + $this->jsonDeserializationVisitor->startVisitingObject($metadata, $data, $type); } - return $this->jsonDeserializationVisitor->visitInteger($data, $type); - } + /** + * {@inheritdoc} + */ + public function visitProperty(PropertyMetadata $metadata, $data) + { + return $this->jsonDeserializationVisitor->visitProperty($metadata, $data); + } - /** - * {@inheritdoc} - */ - public function visitDouble($data, array $type): float - { - if (!is_float($data) && !is_integer($data)) { - throw TypeMismatchException::fromValue('double', $data); + /** + * {@inheritdoc} + */ + public function endVisitingObject(ClassMetadata $metadata, $data, array $type): object + { + return $this->jsonDeserializationVisitor->endVisitingObject($metadata, $data, $type); + } + + /** + * {@inheritdoc} + */ + public function getResult($data) + { + return $this->jsonDeserializationVisitor->getResult($data); + } + + /** + * {@inheritdoc} + */ + public function prepare($data) + { + return $this->jsonDeserializationVisitor->prepare($data); + } + + /** + * {@inheritdoc} + */ + public function setNavigator(GraphNavigatorInterface $navigator): void + { + $this->jsonDeserializationVisitor->setNavigator($navigator); } - return $this->jsonDeserializationVisitor->visitDouble($data, $type); - } - - /** - * {@inheritdoc} - */ - public function visitArray($data, array $type): array - { - return $this->jsonDeserializationVisitor->visitArray($data, $type); - } - - /** - * {@inheritdoc} - */ - public function visitDiscriminatorMapProperty($data, ClassMetadata $metadata): string - { - return $this->jsonDeserializationVisitor->visitDiscriminatorMapProperty($data, $metadata); - } - - /** - * {@inheritdoc} - */ - public function startVisitingObject(ClassMetadata $metadata, object $data, array $type): void - { - $this->jsonDeserializationVisitor->startVisitingObject($metadata, $data, $type); - } - - /** - * {@inheritdoc} - */ - public function visitProperty(PropertyMetadata $metadata, $data) - { - return $this->jsonDeserializationVisitor->visitProperty($metadata, $data); - } - - /** - * {@inheritdoc} - */ - public function endVisitingObject(ClassMetadata $metadata, $data, array $type): object - { - return $this->jsonDeserializationVisitor->endVisitingObject($metadata, $data, $type); - } - - /** - * {@inheritdoc} - */ - public function getResult($data) - { - return $this->jsonDeserializationVisitor->getResult($data); - } - - /** - * {@inheritdoc} - */ - public function prepare($data) - { - return $this->jsonDeserializationVisitor->prepare($data); - } - - /** - * {@inheritdoc} - */ - public function setNavigator(GraphNavigatorInterface $navigator): void - { - $this->jsonDeserializationVisitor->setNavigator($navigator); - } } diff --git a/Service/StrictJsonDeserializationVisitorFactory.php b/Service/StrictJsonDeserializationVisitorFactory.php index 6cd23f02..8e6977f6 100755 --- a/Service/StrictJsonDeserializationVisitorFactory.php +++ b/Service/StrictJsonDeserializationVisitorFactory.php @@ -9,25 +9,26 @@ final class StrictJsonDeserializationVisitorFactory implements DeserializationVisitorFactory { - private int $options = 0; - private int $depth = 512; + private int $options = 0; - public function getVisitor(): DeserializationVisitorInterface - { - return new StrictJsonDeserializationVisitor($this->options, $this->depth); - } + private int $depth = 512; - public function setOptions(int $options): self - { - $this->options = $options; + public function getVisitor(): DeserializationVisitorInterface + { + return new StrictJsonDeserializationVisitor($this->options, $this->depth); + } - return $this; - } + public function setOptions(int $options): self + { + $this->options = $options; - public function setDepth(int $depth): self - { - $this->depth = $depth; + return $this; + } - return $this; - } + public function setDepth(int $depth): self + { + $this->depth = $depth; + + return $this; + } } diff --git a/Service/SymfonyValidator.php b/Service/SymfonyValidator.php index 51d64389..87d4f077 100755 --- a/Service/SymfonyValidator.php +++ b/Service/SymfonyValidator.php @@ -6,15 +6,15 @@ class SymfonyValidator implements ValidatorInterface { - protected $validator; + protected $validator; - public function __construct(SymfonyValidatorInterface $validator) - { - $this->validator = $validator; - } + public function __construct(SymfonyValidatorInterface $validator) + { + $this->validator = $validator; + } - public function validate($value, $constraints = null, $groups = null) - { - return $this->validator->validate($value, $constraints, $groups); - } + public function validate($value, $constraints = null, $groups = null) + { + return $this->validator->validate($value, $constraints, $groups); + } } diff --git a/Service/TypeMismatchException.php b/Service/TypeMismatchException.php index 66236b35..6ec34a6c 100755 --- a/Service/TypeMismatchException.php +++ b/Service/TypeMismatchException.php @@ -22,31 +22,31 @@ class TypeMismatchException extends RuntimeException { - /** - * A handy method for building exception instance. - * - * @param string $expected_type - * @param mixed $actual_value - * - * @return TypeMismatchException - */ - public static function fromValue( + /** + * A handy method for building exception instance. + * + * @param string $expected_type + * @param mixed $actual_value + * @param DeserializationContext|null $context + * @return TypeMismatchException + */ + public static function fromValue( $expected_type, $actual_value, DeserializationContext $context = null ) { - if (null !== $context && count($context->getCurrentPath()) > 0) { - $property = sprintf('property "%s" to be ', implode('.', $context->getCurrentPath())); - } else { - $property = ''; - } + if (null !== $context && count($context->getCurrentPath()) > 0) { + $property = sprintf('property "%s" to be ', implode('.', $context->getCurrentPath())); + } else { + $property = ''; + } - return new static(sprintf( + return new static(sprintf( 'Expected %s%s, but got %s: %s', $property, $expected_type, gettype($actual_value), json_encode($actual_value) )); - } + } } diff --git a/Service/ValidatorInterface.php b/Service/ValidatorInterface.php index 50cbd45d..dea54184 100755 --- a/Service/ValidatorInterface.php +++ b/Service/ValidatorInterface.php @@ -4,22 +4,22 @@ interface ValidatorInterface { - /** - * Validates a value against a constraint or a list of constraints. - * - * If no constraint is passed, the constraint - * {@link \Symfony\Component\Validator\Constraints\Valid} is assumed. - * - * @param mixed $value The value to validate - * @param Constraint|Constraint[] $constraints The constraint(s) to validate - * against - * @param array|null $groups The validation groups to - * validate. If none is given, - * "Default" is assumed - * - * @return ConstraintViolationListInterface A list of constraint violations - * If the list is empty, validation - * succeeded - */ - public function validate($value, $constraints = null, $groups = null); + /** + * Validates a value against a constraint or a list of constraints. + * + * If no constraint is passed, the constraint + * {@link \Symfony\Component\Validator\Constraints\Valid} is assumed. + * + * @param mixed $value The value to validate + * @param Constraint|Constraint[] $constraints The constraint(s) to validate + * against + * @param array|null $groups The validation groups to + * validate. If none is given, + * "Default" is assumed + * + * @return ConstraintViolationListInterface A list of constraint violations + * If the list is empty, validation + * succeeded + */ + public function validate($value, $constraints = null, $groups = null); } diff --git a/Tests/Api/AuthenticationApiInterfaceTest.php b/Tests/Api/AuthenticationApiInterfaceTest.php new file mode 100644 index 00000000..5f819a08 --- /dev/null +++ b/Tests/Api/AuthenticationApiInterfaceTest.php @@ -0,0 +1,181 @@ +request('DELETE', $path); + } + + /** + * Test case for authenticationGet + * + * Check token. + * + */ + public function testAuthenticationGet() + { + $client = self::$client; + + $path = '/authentication'; + + $crawler = $client->request('GET', $path); + } + + /** + * Test case for authenticationOauthPost + * + * OAuth Login. + * + */ + public function testAuthenticationOauthPost() + { + $client = self::$client; + + $path = '/authentication/oauth'; + + $crawler = $client->request('POST', $path, [], [], ['CONTENT_TYPE' => 'application/json']); + } + + /** + * Test case for authenticationPost + * + * Login. + * + */ + public function testAuthenticationPost() + { + $client = self::$client; + + $path = '/authentication'; + + $crawler = $client->request('POST', $path, [], [], ['CONTENT_TYPE' => 'application/json']); + } + + /** + * Test case for authenticationRefreshPost + * + * Refresh token. + * + */ + public function testAuthenticationRefreshPost() + { + $client = self::$client; + + $path = '/authentication/refresh'; + + $crawler = $client->request('POST', $path, [], [], ['CONTENT_TYPE' => 'application/json']); + } + + /** + * Test case for authenticationUpgradePost + * + * Upgrade a deprecated token to JWT. + * + */ + public function testAuthenticationUpgradePost() + { + $client = self::$client; + + $path = '/authentication/upgrade'; + + $crawler = $client->request('POST', $path, [], [], ['CONTENT_TYPE' => 'application/json']); + } + + protected function genTestData($regexp) + { + $grammar = new \Hoa\File\Read('hoa://Library/Regex/Grammar.pp'); + $compiler = \Hoa\Compiler\Llk\Llk::load($grammar); + $ast = $compiler->parse($regexp); + $generator = new \Hoa\Regex\Visitor\Isotropic(new \Hoa\Math\Sampler\Random()); + + return $generator->visit($ast); + } +} diff --git a/Tests/Api/MediaLibraryApiInterfaceTest.php b/Tests/Api/MediaLibraryApiInterfaceTest.php new file mode 100644 index 00000000..a94965d5 --- /dev/null +++ b/Tests/Api/MediaLibraryApiInterfaceTest.php @@ -0,0 +1,157 @@ +genTestData('\d+'); + $path = str_replace($pattern, $data, $path); + + $crawler = $client->request('GET', $path); + } + + /** + * Test case for mediaFilesGet + * + * Get *all* content of the media library.. + * + */ + public function testMediaFilesGet() + { + $client = self::$client; + + $path = '/media/files'; + + $crawler = $client->request('GET', $path); + } + + /** + * Test case for mediaFilesSearchGet + * + * Search for mediafiles associated with keywords. + * + */ + public function testMediaFilesSearchGet() + { + $client = self::$client; + + $path = '/media/files/search'; + + $crawler = $client->request('GET', $path); + } + + /** + * Test case for mediaPackageNameGet + * + * Get media-library asstes of a named package. + * + */ + public function testMediaPackageNameGet() + { + $client = self::$client; + + $path = '/media/package/{name}'; + $pattern = '{name}'; + $data = $this->genTestData('^[a-zA-Z0-9\\-_]+$'); + $path = str_replace($pattern, $data, $path); + + $crawler = $client->request('GET', $path); + } + + protected function genTestData($regexp) + { + $grammar = new \Hoa\File\Read('hoa://Library/Regex/Grammar.pp'); + $compiler = \Hoa\Compiler\Llk\Llk::load($grammar); + $ast = $compiler->parse($regexp); + $generator = new \Hoa\Regex\Visitor\Isotropic(new \Hoa\Math\Sampler\Random()); + + return $generator->visit($ast); + } +} diff --git a/Tests/Api/NotificationsApiInterfaceTest.php b/Tests/Api/NotificationsApiInterfaceTest.php new file mode 100644 index 00000000..bc2c5974 --- /dev/null +++ b/Tests/Api/NotificationsApiInterfaceTest.php @@ -0,0 +1,154 @@ +genTestData('\d+'); + $path = str_replace($pattern, $data, $path); + + $crawler = $client->request('PUT', $path); + } + + /** + * Test case for notificationsCountGet + * + * Count the number of unseen notifications. + * + */ + public function testNotificationsCountGet() + { + $client = self::$client; + + $path = '/notifications/count'; + + $crawler = $client->request('GET', $path); + } + + /** + * Test case for notificationsGet + * + * Get user notifications -- StatusCode: 501 - Not yet implemented. + * + */ + public function testNotificationsGet() + { + $client = self::$client; + + $path = '/notifications'; + + $crawler = $client->request('GET', $path); + } + + /** + * Test case for notificationsReadPut + * + * Mark all notifications as read. + * + */ + public function testNotificationsReadPut() + { + $client = self::$client; + + $path = '/notifications/read'; + + $crawler = $client->request('PUT', $path); + } + + protected function genTestData($regexp) + { + $grammar = new \Hoa\File\Read('hoa://Library/Regex/Grammar.pp'); + $compiler = \Hoa\Compiler\Llk\Llk::load($grammar); + $ast = $compiler->parse($regexp); + $generator = new \Hoa\Regex\Visitor\Isotropic(new \Hoa\Math\Sampler\Random()); + + return $generator->visit($ast); + } +} diff --git a/Tests/Api/ProjectsApiInterfaceTest.php b/Tests/Api/ProjectsApiInterfaceTest.php new file mode 100644 index 00000000..648d7e5f --- /dev/null +++ b/Tests/Api/ProjectsApiInterfaceTest.php @@ -0,0 +1,337 @@ +genTestData('^[a-zA-Z0-9\\-]+$'); + $path = str_replace($pattern, $data, $path); + + $crawler = $client->request('GET', $path); + } + + /** + * Test case for projectIdDelete + * + * Delete a project. + * + */ + public function testProjectIdDelete() + { + $client = self::$client; + + $path = '/project/{id}'; + $pattern = '{id}'; + $data = $this->genTestData('^[a-zA-Z0-9\\-]+$'); + $path = str_replace($pattern, $data, $path); + + $crawler = $client->request('DELETE', $path); + } + + /** + * Test case for projectIdGet + * + * Get the information of a project. + * + */ + public function testProjectIdGet() + { + $client = self::$client; + + $path = '/project/{id}'; + $pattern = '{id}'; + $data = $this->genTestData('^[a-zA-Z0-9\\-]+$'); + $path = str_replace($pattern, $data, $path); + + $crawler = $client->request('GET', $path); + } + + /** + * Test case for projectIdPut + * + * Update details of a project. + * + */ + public function testProjectIdPut() + { + $client = self::$client; + + $path = '/project/{id}'; + $pattern = '{id}'; + $data = $this->genTestData('^[a-zA-Z0-9\\-]+$'); + $path = str_replace($pattern, $data, $path); + + $crawler = $client->request('PUT', $path, [], [], ['CONTENT_TYPE' => 'application/json']); + } + + /** + * Test case for projectIdRecommendationsGet + * + * Get recommended projects related to the specific project. + * + */ + public function testProjectIdRecommendationsGet() + { + $client = self::$client; + + $path = '/project/{id}/recommendations'; + $pattern = '{id}'; + $data = $this->genTestData('^[a-zA-Z0-9\\-]+$'); + $path = str_replace($pattern, $data, $path); + + $crawler = $client->request('GET', $path); + } + + /** + * Test case for projectIdReportPost + * + * Report a project -- StatusCode: 501 - Not yet implemented. + * + */ + public function testProjectIdReportPost() + { + $client = self::$client; + + $path = '/project/{id}/report'; + $pattern = '{id}'; + $data = $this->genTestData('^[a-zA-Z0-9\\-]+$'); + $path = str_replace($pattern, $data, $path); + + $crawler = $client->request('POST', $path, [], [], ['CONTENT_TYPE' => 'application/json']); + } + + /** + * Test case for projectsCategoriesGet + * + * Get default number of projects per category (Most downloaded etc.). + * + */ + public function testProjectsCategoriesGet() + { + $client = self::$client; + + $path = '/projects/categories'; + + $crawler = $client->request('GET', $path); + } + + /** + * Test case for projectsExtensionsGet + * + * Get all possible project extensions. Extensions are automatically added to projects based on their bricks.. + * + */ + public function testProjectsExtensionsGet() + { + $client = self::$client; + + $path = '/projects/extensions'; + + $crawler = $client->request('GET', $path); + } + + /** + * Test case for projectsFeaturedGet + * + * Get the currently featured projects. + * + */ + public function testProjectsFeaturedGet() + { + $client = self::$client; + + $path = '/projects/featured'; + + $crawler = $client->request('GET', $path); + } + + /** + * Test case for projectsGet + * + * Get projects. + * + */ + public function testProjectsGet() + { + $client = self::$client; + + $path = '/projects'; + + $crawler = $client->request('GET', $path); + } + + /** + * Test case for projectsPost + * + * Upload a catrobat project. + * + */ + public function testProjectsPost() + { + $client = self::$client; + + $path = '/projects'; + + $crawler = $client->request('POST', $path); + } + + /** + * Test case for projectsSearchGet + * + * Search for projects associated with a keywords. + * + */ + public function testProjectsSearchGet() + { + $client = self::$client; + + $path = '/projects/search'; + + $crawler = $client->request('GET', $path); + } + + /** + * Test case for projectsTagsGet + * + * Get all possible project tags. Some Tags will only be availabe during events.. + * + */ + public function testProjectsTagsGet() + { + $client = self::$client; + + $path = '/projects/tags'; + + $crawler = $client->request('GET', $path); + } + + /** + * Test case for projectsUserGet + * + * Get the projects of the logged in user. + * + */ + public function testProjectsUserGet() + { + $client = self::$client; + + $path = '/projects/user'; + + $crawler = $client->request('GET', $path); + } + + /** + * Test case for projectsUserIdGet + * + * Get the public projects of a given user. + * + */ + public function testProjectsUserIdGet() + { + $client = self::$client; + + $path = '/projects/user/{id}'; + $pattern = '{id}'; + $data = $this->genTestData('^[a-zA-Z0-9\\-]+$'); + $path = str_replace($pattern, $data, $path); + + $crawler = $client->request('GET', $path); + } + + protected function genTestData($regexp) + { + $grammar = new \Hoa\File\Read('hoa://Library/Regex/Grammar.pp'); + $compiler = \Hoa\Compiler\Llk\Llk::load($grammar); + $ast = $compiler->parse($regexp); + $generator = new \Hoa\Regex\Visitor\Isotropic(new \Hoa\Math\Sampler\Random()); + + return $generator->visit($ast); + } +} diff --git a/Tests/Api/SearchApiInterfaceTest.php b/Tests/Api/SearchApiInterfaceTest.php new file mode 100644 index 00000000..7b9e7c8a --- /dev/null +++ b/Tests/Api/SearchApiInterfaceTest.php @@ -0,0 +1,106 @@ +request('GET', $path); + } + + protected function genTestData($regexp) + { + $grammar = new \Hoa\File\Read('hoa://Library/Regex/Grammar.pp'); + $compiler = \Hoa\Compiler\Llk\Llk::load($grammar); + $ast = $compiler->parse($regexp); + $generator = new \Hoa\Regex\Visitor\Isotropic(new \Hoa\Math\Sampler\Random()); + + return $generator->visit($ast); + } +} diff --git a/Tests/Api/UserApiInterfaceTest.php b/Tests/Api/UserApiInterfaceTest.php new file mode 100644 index 00000000..f663715d --- /dev/null +++ b/Tests/Api/UserApiInterfaceTest.php @@ -0,0 +1,199 @@ +request('DELETE', $path); + } + + /** + * Test case for userGet + * + * Get your private user data. + * + */ + public function testUserGet() + { + $client = self::$client; + + $path = '/user'; + + $crawler = $client->request('GET', $path); + } + + /** + * Test case for userIdGet + * + * Get public user data. + * + */ + public function testUserIdGet() + { + $client = self::$client; + + $path = '/user/{id}'; + $pattern = '{id}'; + $data = $this->genTestData('^[a-zA-Z0-9\\-]+$'); + $path = str_replace($pattern, $data, $path); + + $crawler = $client->request('GET', $path); + } + + /** + * Test case for userPost + * + * Register. + * + */ + public function testUserPost() + { + $client = self::$client; + + $path = '/user'; + + $crawler = $client->request('POST', $path, [], [], ['CONTENT_TYPE' => 'application/json']); + } + + /** + * Test case for userPut + * + * Update User. + * + */ + public function testUserPut() + { + $client = self::$client; + + $path = '/user'; + + $crawler = $client->request('PUT', $path, [], [], ['CONTENT_TYPE' => 'application/json']); + } + + /** + * Test case for userResetPasswordPost + * + * Request email to reset password. + * + */ + public function testUserResetPasswordPost() + { + $client = self::$client; + + $path = '/user/reset-password'; + + $crawler = $client->request('POST', $path, [], [], ['CONTENT_TYPE' => 'application/json']); + } + + /** + * Test case for usersSearchGet + * + * Search for users. + * + */ + public function testUsersSearchGet() + { + $client = self::$client; + + $path = '/users/search'; + + $crawler = $client->request('GET', $path); + } + + protected function genTestData($regexp) + { + $grammar = new \Hoa\File\Read('hoa://Library/Regex/Grammar.pp'); + $compiler = \Hoa\Compiler\Llk\Llk::load($grammar); + $ast = $compiler->parse($regexp); + $generator = new \Hoa\Regex\Visitor\Isotropic(new \Hoa\Math\Sampler\Random()); + + return $generator->visit($ast); + } +} diff --git a/Tests/Api/UtilityApiInterfaceTest.php b/Tests/Api/UtilityApiInterfaceTest.php new file mode 100644 index 00000000..1d283800 --- /dev/null +++ b/Tests/Api/UtilityApiInterfaceTest.php @@ -0,0 +1,124 @@ +request('GET', $path); + } + + /** + * Test case for surveyLangCodeGet + * + * Get survey link for given language code.. + * + */ + public function testSurveyLangCodeGet() + { + $client = self::$client; + + $path = '/survey/{lang_code}'; + $pattern = '{lang_code}'; + $data = $this->genTestData('[a-z0-9]+'); + $path = str_replace($pattern, $data, $path); + + $crawler = $client->request('GET', $path); + } + + protected function genTestData($regexp) + { + $grammar = new \Hoa\File\Read('hoa://Library/Regex/Grammar.pp'); + $compiler = \Hoa\Compiler\Llk\Llk::load($grammar); + $ast = $compiler->parse($regexp); + $generator = new \Hoa\Regex\Visitor\Isotropic(new \Hoa\Math\Sampler\Random()); + + return $generator->visit($ast); + } +} diff --git a/Tests/AppKernel.php b/Tests/AppKernel.php new file mode 100644 index 00000000..9aed375a --- /dev/null +++ b/Tests/AppKernel.php @@ -0,0 +1,24 @@ +load(__DIR__.'/test_config.yml'); + } +} diff --git a/Tests/Controller/ControllerTest.php b/Tests/Controller/ControllerTest.php new file mode 100644 index 00000000..6469b77b --- /dev/null +++ b/Tests/Controller/ControllerTest.php @@ -0,0 +1,123 @@ +headers->set('CONTENT_TYPE', $contentType, true);// last one argument overrides header + $this->assertSame( + $expectedReturn, + Controller::isContentTypeAllowed($request, $consumes), + sprintf( + 'Failed assertion that "Content-Type: %s" %s by [%s] consumes array.', + $contentType, + ($expectedReturn) ? 'is allowed' : 'is forbidden', + implode(', ', $consumes) + ) + ); + } + + public function provideArgumentsForIsContentTypeAllowed() + { + return [ + 'usual JSON content type' => [ + 'application/json', + ['application/json'], + true, + ], + 'extended content type from PR #6078' => [ + 'application/json; charset=utf-8', + ['application/json'], + true, + ], + 'more than one content types' => [ + 'application/json', + ['application/xml', 'application/json; charset=utf-8'], + true, + ], + 'empty consumes array' => [ + 'application/json', + [], + true, + ], + 'empty consumes and content type' => [ + null, + [], + true, + ], + 'consumes everything' => [ + 'application/json', + ['*/*'], + true, + ], + 'fancy custom content type' => [ + 'foobar/foobaz', + ['application/xml', 'foobar/foobaz; charset=utf-8'], + true, + ], + 'empty content type' => [ + null, + ['application/xml', 'application/json; charset=utf-8'], + false, + ], + 'content type out of consumes' => [ + 'text/html', + ['application/xml', 'application/json; charset=utf-8'], + false, + ], + ]; + } +} diff --git a/Tests/Model/BaseUserTest.php b/Tests/Model/BaseUserTest.php new file mode 100644 index 00000000..7fab5773 --- /dev/null +++ b/Tests/Model/BaseUserTest.php @@ -0,0 +1,124 @@ +=7.4.0|>=8.0.2", "ext-curl": "*", "ext-json": "*", "ext-mbstring": "*", - "symfony/validator": "*", - "jms/serializer-bundle": "^3.5|^4.0", - "symfony/framework-bundle": "^4.4|^5.0|^6.0" + "symfony/validator": "^5.0|^6.0", + "jms/serializer-bundle": "^4.0", + "symfony/framework-bundle": "^5.0|^6.0" }, "require-dev": { - "symfony/browser-kit": "*" + "phpunit/phpunit": "^9.5", + "friendsofphp/php-cs-fixer": "*", + "symfony/browser-kit": "^5.0|^6.0", + "symfony/yaml": "^5.0|^6.0", + "hoa/regex": "~1.0" }, "autoload": { - "psr-4": { "OpenAPI\\Server\\" : "./" } - }, - "scripts": { - "test": "vendor/bin/phpunit" + "psr-4": { + "OpenAPI\\Server\\" : "./" + } } } diff --git a/composer.lock b/composer.lock index d6356c06..7d02d4ff 100755 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "2f0cb068e94a5a3b200a78a0ca4b9ac5", + "content-hash": "50106fb15f96ca9234395ad348225802", "packages": [ { "name": "doctrine/annotations", @@ -471,35 +471,30 @@ }, { "name": "phpstan/phpdoc-parser", - "version": "1.2.0", + "version": "1.5.1", "source": { "type": "git", "url": "https://github.com/phpstan/phpdoc-parser.git", - "reference": "dbc093d7af60eff5cd575d2ed761b15ed40bd08e" + "reference": "981cc368a216c988e862a75e526b6076987d1b50" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/dbc093d7af60eff5cd575d2ed761b15ed40bd08e", - "reference": "dbc093d7af60eff5cd575d2ed761b15ed40bd08e", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/981cc368a216c988e862a75e526b6076987d1b50", + "reference": "981cc368a216c988e862a75e526b6076987d1b50", "shasum": "" }, "require": { - "php": "^7.1 || ^8.0" + "php": "^7.2 || ^8.0" }, "require-dev": { "php-parallel-lint/php-parallel-lint": "^1.2", "phpstan/extension-installer": "^1.0", - "phpstan/phpstan": "^1.0", + "phpstan/phpstan": "^1.5", "phpstan/phpstan-strict-rules": "^1.0", "phpunit/phpunit": "^9.5", "symfony/process": "^5.2" }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0-dev" - } - }, "autoload": { "psr-4": { "PHPStan\\PhpDocParser\\": [ @@ -514,26 +509,26 @@ "description": "PHPDoc parser with support for nullable, intersection and generic types", "support": { "issues": "https://github.com/phpstan/phpdoc-parser/issues", - "source": "https://github.com/phpstan/phpdoc-parser/tree/1.2.0" + "source": "https://github.com/phpstan/phpdoc-parser/tree/1.5.1" }, - "time": "2021-09-16T20:46:02+00:00" + "time": "2022-05-05T11:32:40+00:00" }, { "name": "psr/cache", - "version": "1.0.1", + "version": "3.0.0", "source": { "type": "git", "url": "https://github.com/php-fig/cache.git", - "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8" + "reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/cache/zipball/d11b50ad223250cf17b86e38383413f5a6764bf8", - "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8", + "url": "https://api.github.com/repos/php-fig/cache/zipball/aa5030cfa5405eccfdcb1083ce040c2cb8d253bf", + "reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf", "shasum": "" }, "require": { - "php": ">=5.3.0" + "php": ">=8.0.0" }, "type": "library", "extra": { @@ -553,7 +548,7 @@ "authors": [ { "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" + "homepage": "https://www.php-fig.org/" } ], "description": "Common interface for caching libraries", @@ -563,28 +558,33 @@ "psr-6" ], "support": { - "source": "https://github.com/php-fig/cache/tree/master" + "source": "https://github.com/php-fig/cache/tree/3.0.0" }, - "time": "2016-08-06T20:24:11+00:00" + "time": "2021-02-03T23:26:27+00:00" }, { "name": "psr/container", - "version": "1.1.2", + "version": "2.0.2", "source": { "type": "git", "url": "https://github.com/php-fig/container.git", - "reference": "513e0666f7216c7459170d56df27dfcefe1689ea" + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/container/zipball/513e0666f7216c7459170d56df27dfcefe1689ea", - "reference": "513e0666f7216c7459170d56df27dfcefe1689ea", + "url": "https://api.github.com/repos/php-fig/container/zipball/c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963", "shasum": "" }, "require": { "php": ">=7.4.0" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, "autoload": { "psr-4": { "Psr\\Container\\": "src/" @@ -611,9 +611,9 @@ ], "support": { "issues": "https://github.com/php-fig/container/issues", - "source": "https://github.com/php-fig/container/tree/1.1.2" + "source": "https://github.com/php-fig/container/tree/2.0.2" }, - "time": "2021-11-05T16:50:12+00:00" + "time": "2021-11-05T16:47:00+00:00" }, { "name": "psr/event-dispatcher", @@ -667,30 +667,30 @@ }, { "name": "psr/log", - "version": "1.1.4", + "version": "3.0.0", "source": { "type": "git", "url": "https://github.com/php-fig/log.git", - "reference": "d49695b909c3b7628b6289db5479a1c204601f11" + "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/d49695b909c3b7628b6289db5479a1c204601f11", - "reference": "d49695b909c3b7628b6289db5479a1c204601f11", + "url": "https://api.github.com/repos/php-fig/log/zipball/fe5ea303b0887d5caefd3d431c3e61ad47037001", + "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001", "shasum": "" }, "require": { - "php": ">=5.3.0" + "php": ">=8.0.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.1.x-dev" + "dev-master": "3.x-dev" } }, "autoload": { "psr-4": { - "Psr\\Log\\": "Psr/Log/" + "Psr\\Log\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -711,64 +711,63 @@ "psr-3" ], "support": { - "source": "https://github.com/php-fig/log/tree/1.1.4" + "source": "https://github.com/php-fig/log/tree/3.0.0" }, - "time": "2021-05-03T11:20:27+00:00" + "time": "2021-07-14T16:46:02+00:00" }, { "name": "symfony/cache", - "version": "v5.4.6", + "version": "v6.1.0", "source": { "type": "git", "url": "https://github.com/symfony/cache.git", - "reference": "c0718d0e01ac14251a45cc9c8b93716ec41ae64b" + "reference": "314afa1b7c9e157dbce75221a057428cfeb9c61e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/cache/zipball/c0718d0e01ac14251a45cc9c8b93716ec41ae64b", - "reference": "c0718d0e01ac14251a45cc9c8b93716ec41ae64b", + "url": "https://api.github.com/repos/symfony/cache/zipball/314afa1b7c9e157dbce75221a057428cfeb9c61e", + "reference": "314afa1b7c9e157dbce75221a057428cfeb9c61e", "shasum": "" }, "require": { - "php": ">=7.2.5", - "psr/cache": "^1.0|^2.0", + "php": ">=8.1", + "psr/cache": "^2.0|^3.0", "psr/log": "^1.1|^2|^3", - "symfony/cache-contracts": "^1.1.7|^2", - "symfony/deprecation-contracts": "^2.1|^3", - "symfony/polyfill-php73": "^1.9", - "symfony/polyfill-php80": "^1.16", + "symfony/cache-contracts": "^1.1.7|^2|^3", "symfony/service-contracts": "^1.1|^2|^3", - "symfony/var-exporter": "^4.4|^5.0|^6.0" + "symfony/var-exporter": "^5.4|^6.0" }, "conflict": { "doctrine/dbal": "<2.13.1", - "symfony/dependency-injection": "<4.4", - "symfony/http-kernel": "<4.4", - "symfony/var-dumper": "<4.4" + "symfony/dependency-injection": "<5.4", + "symfony/http-kernel": "<5.4", + "symfony/var-dumper": "<5.4" }, "provide": { - "psr/cache-implementation": "1.0|2.0", - "psr/simple-cache-implementation": "1.0|2.0", - "symfony/cache-implementation": "1.0|2.0" + "psr/cache-implementation": "2.0|3.0", + "psr/simple-cache-implementation": "1.0|2.0|3.0", + "symfony/cache-implementation": "1.1|2.0|3.0" }, "require-dev": { "cache/integration-tests": "dev-master", - "doctrine/cache": "^1.6|^2.0", "doctrine/dbal": "^2.13.1|^3.0", "predis/predis": "^1.1", - "psr/simple-cache": "^1.0|^2.0", - "symfony/config": "^4.4|^5.0|^6.0", - "symfony/dependency-injection": "^4.4|^5.0|^6.0", - "symfony/filesystem": "^4.4|^5.0|^6.0", - "symfony/http-kernel": "^4.4|^5.0|^6.0", - "symfony/messenger": "^4.4|^5.0|^6.0", - "symfony/var-dumper": "^4.4|^5.0|^6.0" + "psr/simple-cache": "^1.0|^2.0|^3.0", + "symfony/config": "^5.4|^6.0", + "symfony/dependency-injection": "^5.4|^6.0", + "symfony/filesystem": "^5.4|^6.0", + "symfony/http-kernel": "^5.4|^6.0", + "symfony/messenger": "^5.4|^6.0", + "symfony/var-dumper": "^5.4|^6.0" }, "type": "library", "autoload": { "psr-4": { "Symfony\\Component\\Cache\\": "" }, + "classmap": [ + "Traits/ValueWrapper.php" + ], "exclude-from-classmap": [ "/Tests/" ] @@ -794,7 +793,7 @@ "psr6" ], "support": { - "source": "https://github.com/symfony/cache/tree/v5.4.6" + "source": "https://github.com/symfony/cache/tree/v6.1.0" }, "funding": [ { @@ -810,25 +809,25 @@ "type": "tidelift" } ], - "time": "2022-03-02T12:56:28+00:00" + "time": "2022-05-21T13:34:40+00:00" }, { "name": "symfony/cache-contracts", - "version": "v2.5.0", + "version": "v3.1.0", "source": { "type": "git", "url": "https://github.com/symfony/cache-contracts.git", - "reference": "ac2e168102a2e06a2624f0379bde94cd5854ced2" + "reference": "2eab7fa459af6d75c6463e63e633b667a9b761d3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/cache-contracts/zipball/ac2e168102a2e06a2624f0379bde94cd5854ced2", - "reference": "ac2e168102a2e06a2624f0379bde94cd5854ced2", + "url": "https://api.github.com/repos/symfony/cache-contracts/zipball/2eab7fa459af6d75c6463e63e633b667a9b761d3", + "reference": "2eab7fa459af6d75c6463e63e633b667a9b761d3", "shasum": "" }, "require": { - "php": ">=7.2.5", - "psr/cache": "^1.0|^2.0|^3.0" + "php": ">=8.1", + "psr/cache": "^3.0" }, "suggest": { "symfony/cache-implementation": "" @@ -836,7 +835,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "2.5-dev" + "dev-main": "3.1-dev" }, "thanks": { "name": "symfony/contracts", @@ -873,7 +872,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/cache-contracts/tree/v2.5.0" + "source": "https://github.com/symfony/cache-contracts/tree/v3.1.0" }, "funding": [ { @@ -889,39 +888,37 @@ "type": "tidelift" } ], - "time": "2021-08-17T14:20:01+00:00" + "time": "2022-02-25T11:15:52+00:00" }, { "name": "symfony/config", - "version": "v5.4.3", + "version": "v6.1.0", "source": { "type": "git", "url": "https://github.com/symfony/config.git", - "reference": "d65e1bd990c740e31feb07d2b0927b8d4df9956f" + "reference": "ed8d12417bcacd2d969750feb1fe1aab1c11e613" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/config/zipball/d65e1bd990c740e31feb07d2b0927b8d4df9956f", - "reference": "d65e1bd990c740e31feb07d2b0927b8d4df9956f", + "url": "https://api.github.com/repos/symfony/config/zipball/ed8d12417bcacd2d969750feb1fe1aab1c11e613", + "reference": "ed8d12417bcacd2d969750feb1fe1aab1c11e613", "shasum": "" }, "require": { - "php": ">=7.2.5", + "php": ">=8.1", "symfony/deprecation-contracts": "^2.1|^3", - "symfony/filesystem": "^4.4|^5.0|^6.0", - "symfony/polyfill-ctype": "~1.8", - "symfony/polyfill-php80": "^1.16", - "symfony/polyfill-php81": "^1.22" + "symfony/filesystem": "^5.4|^6.0", + "symfony/polyfill-ctype": "~1.8" }, "conflict": { - "symfony/finder": "<4.4" + "symfony/finder": "<5.4" }, "require-dev": { - "symfony/event-dispatcher": "^4.4|^5.0|^6.0", - "symfony/finder": "^4.4|^5.0|^6.0", - "symfony/messenger": "^4.4|^5.0|^6.0", + "symfony/event-dispatcher": "^5.4|^6.0", + "symfony/finder": "^5.4|^6.0", + "symfony/messenger": "^5.4|^6.0", "symfony/service-contracts": "^1.1|^2|^3", - "symfony/yaml": "^4.4|^5.0|^6.0" + "symfony/yaml": "^5.4|^6.0" }, "suggest": { "symfony/yaml": "To use the yaml reference dumper" @@ -952,7 +949,7 @@ "description": "Helps you find, load, combine, autofill and validate configuration values of any kind", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/config/tree/v5.4.3" + "source": "https://github.com/symfony/config/tree/v6.1.0" }, "funding": [ { @@ -968,45 +965,43 @@ "type": "tidelift" } ], - "time": "2022-01-03T09:50:52+00:00" + "time": "2022-05-17T12:56:32+00:00" }, { "name": "symfony/dependency-injection", - "version": "v5.4.6", + "version": "v6.1.0", "source": { "type": "git", "url": "https://github.com/symfony/dependency-injection.git", - "reference": "0828fa3e6e436243dbb3dc85abe6b698b3876b89" + "reference": "fc1fcd2b153f585934e80055bb3254913def2a6e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/0828fa3e6e436243dbb3dc85abe6b698b3876b89", - "reference": "0828fa3e6e436243dbb3dc85abe6b698b3876b89", + "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/fc1fcd2b153f585934e80055bb3254913def2a6e", + "reference": "fc1fcd2b153f585934e80055bb3254913def2a6e", "shasum": "" }, "require": { - "php": ">=7.2.5", - "psr/container": "^1.1.1", + "php": ">=8.1", + "psr/container": "^1.1|^2.0", "symfony/deprecation-contracts": "^2.1|^3", - "symfony/polyfill-php80": "^1.16", - "symfony/polyfill-php81": "^1.22", - "symfony/service-contracts": "^1.1.6|^2" + "symfony/service-contracts": "^1.1.6|^2.0|^3.0" }, "conflict": { "ext-psr": "<1.1|>=2", - "symfony/config": "<5.3", - "symfony/finder": "<4.4", - "symfony/proxy-manager-bridge": "<4.4", - "symfony/yaml": "<4.4.26" + "symfony/config": "<6.1", + "symfony/finder": "<5.4", + "symfony/proxy-manager-bridge": "<5.4", + "symfony/yaml": "<5.4" }, "provide": { - "psr/container-implementation": "1.0", - "symfony/service-implementation": "1.0|2.0" + "psr/container-implementation": "1.1|2.0", + "symfony/service-implementation": "1.1|2.0|3.0" }, "require-dev": { - "symfony/config": "^5.3|^6.0", - "symfony/expression-language": "^4.4|^5.0|^6.0", - "symfony/yaml": "^4.4.26|^5.0|^6.0" + "symfony/config": "^6.1", + "symfony/expression-language": "^5.4|^6.0", + "symfony/yaml": "^5.4|^6.0" }, "suggest": { "symfony/config": "", @@ -1041,7 +1036,7 @@ "description": "Allows you to standardize and centralize the way objects are constructed in your application", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/dependency-injection/tree/v5.4.6" + "source": "https://github.com/symfony/dependency-injection/tree/v6.1.0" }, "funding": [ { @@ -1057,29 +1052,29 @@ "type": "tidelift" } ], - "time": "2022-03-02T12:42:23+00:00" + "time": "2022-05-27T06:40:20+00:00" }, { "name": "symfony/deprecation-contracts", - "version": "v2.5.0", + "version": "v3.1.0", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "6f981ee24cf69ee7ce9736146d1c57c2780598a8" + "reference": "07f1b9cc2ffee6aaafcf4b710fbc38ff736bd918" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/6f981ee24cf69ee7ce9736146d1c57c2780598a8", - "reference": "6f981ee24cf69ee7ce9736146d1c57c2780598a8", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/07f1b9cc2ffee6aaafcf4b710fbc38ff736bd918", + "reference": "07f1b9cc2ffee6aaafcf4b710fbc38ff736bd918", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=8.1" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "2.5-dev" + "dev-main": "3.1-dev" }, "thanks": { "name": "symfony/contracts", @@ -1108,7 +1103,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.0" + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.1.0" }, "funding": [ { @@ -1124,31 +1119,31 @@ "type": "tidelift" } ], - "time": "2021-07-12T14:48:14+00:00" + "time": "2022-02-25T11:15:52+00:00" }, { "name": "symfony/error-handler", - "version": "v5.4.3", + "version": "v6.1.0", "source": { "type": "git", "url": "https://github.com/symfony/error-handler.git", - "reference": "c4ffc2cd919950d13c8c9ce32a70c70214c3ffc5" + "reference": "d02c662651e5de760bb7d5e94437113309e8f8a0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/error-handler/zipball/c4ffc2cd919950d13c8c9ce32a70c70214c3ffc5", - "reference": "c4ffc2cd919950d13c8c9ce32a70c70214c3ffc5", + "url": "https://api.github.com/repos/symfony/error-handler/zipball/d02c662651e5de760bb7d5e94437113309e8f8a0", + "reference": "d02c662651e5de760bb7d5e94437113309e8f8a0", "shasum": "" }, "require": { - "php": ">=7.2.5", + "php": ">=8.1", "psr/log": "^1|^2|^3", - "symfony/var-dumper": "^4.4|^5.0|^6.0" + "symfony/var-dumper": "^5.4|^6.0" }, "require-dev": { "symfony/deprecation-contracts": "^2.1|^3", - "symfony/http-kernel": "^4.4|^5.0|^6.0", - "symfony/serializer": "^4.4|^5.0|^6.0" + "symfony/http-kernel": "^5.4|^6.0", + "symfony/serializer": "^5.4|^6.0" }, "bin": [ "Resources/bin/patch-type-declarations" @@ -1179,7 +1174,7 @@ "description": "Provides tools to manage errors and ease debugging PHP code", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/error-handler/tree/v5.4.3" + "source": "https://github.com/symfony/error-handler/tree/v6.1.0" }, "funding": [ { @@ -1195,44 +1190,42 @@ "type": "tidelift" } ], - "time": "2022-01-02T09:53:40+00:00" + "time": "2022-05-23T10:32:57+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v5.4.3", + "version": "v6.1.0", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "dec8a9f58d20df252b9cd89f1c6c1530f747685d" + "reference": "a0449a7ad7daa0f7c0acd508259f80544ab5a347" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/dec8a9f58d20df252b9cd89f1c6c1530f747685d", - "reference": "dec8a9f58d20df252b9cd89f1c6c1530f747685d", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/a0449a7ad7daa0f7c0acd508259f80544ab5a347", + "reference": "a0449a7ad7daa0f7c0acd508259f80544ab5a347", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1|^3", - "symfony/event-dispatcher-contracts": "^2|^3", - "symfony/polyfill-php80": "^1.16" + "php": ">=8.1", + "symfony/event-dispatcher-contracts": "^2|^3" }, "conflict": { - "symfony/dependency-injection": "<4.4" + "symfony/dependency-injection": "<5.4" }, "provide": { "psr/event-dispatcher-implementation": "1.0", - "symfony/event-dispatcher-implementation": "2.0" + "symfony/event-dispatcher-implementation": "2.0|3.0" }, "require-dev": { "psr/log": "^1|^2|^3", - "symfony/config": "^4.4|^5.0|^6.0", - "symfony/dependency-injection": "^4.4|^5.0|^6.0", - "symfony/error-handler": "^4.4|^5.0|^6.0", - "symfony/expression-language": "^4.4|^5.0|^6.0", - "symfony/http-foundation": "^4.4|^5.0|^6.0", + "symfony/config": "^5.4|^6.0", + "symfony/dependency-injection": "^5.4|^6.0", + "symfony/error-handler": "^5.4|^6.0", + "symfony/expression-language": "^5.4|^6.0", + "symfony/http-foundation": "^5.4|^6.0", "symfony/service-contracts": "^1.1|^2|^3", - "symfony/stopwatch": "^4.4|^5.0|^6.0" + "symfony/stopwatch": "^5.4|^6.0" }, "suggest": { "symfony/dependency-injection": "", @@ -1264,7 +1257,7 @@ "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/event-dispatcher/tree/v5.4.3" + "source": "https://github.com/symfony/event-dispatcher/tree/v6.1.0" }, "funding": [ { @@ -1280,24 +1273,24 @@ "type": "tidelift" } ], - "time": "2022-01-02T09:53:40+00:00" + "time": "2022-05-05T16:51:07+00:00" }, { "name": "symfony/event-dispatcher-contracts", - "version": "v2.5.0", + "version": "v3.1.0", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher-contracts.git", - "reference": "66bea3b09be61613cd3b4043a65a8ec48cfa6d2a" + "reference": "02ff5eea2f453731cfbc6bc215e456b781480448" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/66bea3b09be61613cd3b4043a65a8ec48cfa6d2a", - "reference": "66bea3b09be61613cd3b4043a65a8ec48cfa6d2a", + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/02ff5eea2f453731cfbc6bc215e456b781480448", + "reference": "02ff5eea2f453731cfbc6bc215e456b781480448", "shasum": "" }, "require": { - "php": ">=7.2.5", + "php": ">=8.1", "psr/event-dispatcher": "^1" }, "suggest": { @@ -1306,7 +1299,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "2.5-dev" + "dev-main": "3.1-dev" }, "thanks": { "name": "symfony/contracts", @@ -1343,7 +1336,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v2.5.0" + "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.1.0" }, "funding": [ { @@ -1359,27 +1352,26 @@ "type": "tidelift" } ], - "time": "2021-07-12T14:48:14+00:00" + "time": "2022-02-25T11:15:52+00:00" }, { "name": "symfony/filesystem", - "version": "v5.4.6", + "version": "v6.1.0", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "d53a45039974952af7f7ebc461ccdd4295e29440" + "reference": "3132d2f43ca799c2aa099f9738d98228c56baa5d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/d53a45039974952af7f7ebc461ccdd4295e29440", - "reference": "d53a45039974952af7f7ebc461ccdd4295e29440", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/3132d2f43ca799c2aa099f9738d98228c56baa5d", + "reference": "3132d2f43ca799c2aa099f9738d98228c56baa5d", "shasum": "" }, "require": { - "php": ">=7.2.5", + "php": ">=8.1", "symfony/polyfill-ctype": "~1.8", - "symfony/polyfill-mbstring": "~1.8", - "symfony/polyfill-php80": "^1.16" + "symfony/polyfill-mbstring": "~1.8" }, "type": "library", "autoload": { @@ -1407,7 +1399,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v5.4.6" + "source": "https://github.com/symfony/filesystem/tree/v6.1.0" }, "funding": [ { @@ -1423,26 +1415,27 @@ "type": "tidelift" } ], - "time": "2022-03-02T12:42:23+00:00" + "time": "2022-05-21T13:34:40+00:00" }, { "name": "symfony/finder", - "version": "v5.4.3", + "version": "v6.1.0", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "231313534dded84c7ecaa79d14bc5da4ccb69b7d" + "reference": "45b8beb69d6eb3b05a65689ebfd4222326773f8f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/231313534dded84c7ecaa79d14bc5da4ccb69b7d", - "reference": "231313534dded84c7ecaa79d14bc5da4ccb69b7d", + "url": "https://api.github.com/repos/symfony/finder/zipball/45b8beb69d6eb3b05a65689ebfd4222326773f8f", + "reference": "45b8beb69d6eb3b05a65689ebfd4222326773f8f", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1|^3", - "symfony/polyfill-php80": "^1.16" + "php": ">=8.1" + }, + "require-dev": { + "symfony/filesystem": "^6.0" }, "type": "library", "autoload": { @@ -1470,7 +1463,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v5.4.3" + "source": "https://github.com/symfony/finder/tree/v6.1.0" }, "funding": [ { @@ -1486,104 +1479,103 @@ "type": "tidelift" } ], - "time": "2022-01-26T16:34:36+00:00" + "time": "2022-04-15T08:08:08+00:00" }, { "name": "symfony/framework-bundle", - "version": "v5.4.6", + "version": "v6.1.0", "source": { "type": "git", "url": "https://github.com/symfony/framework-bundle.git", - "reference": "76ea755f30924924ea37a28e098df61679efcb63" + "reference": "48aff85408cc5a0b800b187fb9e302f949446d41" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/framework-bundle/zipball/76ea755f30924924ea37a28e098df61679efcb63", - "reference": "76ea755f30924924ea37a28e098df61679efcb63", + "url": "https://api.github.com/repos/symfony/framework-bundle/zipball/48aff85408cc5a0b800b187fb9e302f949446d41", + "reference": "48aff85408cc5a0b800b187fb9e302f949446d41", "shasum": "" }, "require": { + "composer-runtime-api": ">=2.1", "ext-xml": "*", - "php": ">=7.2.5", - "symfony/cache": "^5.2|^6.0", - "symfony/config": "^5.3|^6.0", - "symfony/dependency-injection": "^5.4.5|^6.0.5", + "php": ">=8.1", + "symfony/cache": "^5.4|^6.0", + "symfony/config": "^6.1", + "symfony/dependency-injection": "^6.1", "symfony/deprecation-contracts": "^2.1|^3", - "symfony/error-handler": "^4.4.1|^5.0.1|^6.0", - "symfony/event-dispatcher": "^5.1|^6.0", - "symfony/filesystem": "^4.4|^5.0|^6.0", - "symfony/finder": "^4.4|^5.0|^6.0", - "symfony/http-foundation": "^5.3|^6.0", - "symfony/http-kernel": "^5.4|^6.0", + "symfony/error-handler": "^6.1", + "symfony/event-dispatcher": "^5.4|^6.0", + "symfony/filesystem": "^5.4|^6.0", + "symfony/finder": "^5.4|^6.0", + "symfony/http-foundation": "^5.4|^6.0", + "symfony/http-kernel": "^6.1", "symfony/polyfill-mbstring": "~1.0", - "symfony/polyfill-php80": "^1.16", - "symfony/polyfill-php81": "^1.22", - "symfony/routing": "^5.3|^6.0" + "symfony/routing": "^5.4|^6.0" }, "conflict": { "doctrine/annotations": "<1.13.1", - "doctrine/cache": "<1.11", "doctrine/persistence": "<1.3", "phpdocumentor/reflection-docblock": "<3.2.2", "phpdocumentor/type-resolver": "<1.4.0", "phpunit/phpunit": "<5.4.3", - "symfony/asset": "<5.3", - "symfony/console": "<5.2.5", - "symfony/dom-crawler": "<4.4", - "symfony/dotenv": "<5.1", - "symfony/form": "<5.2", - "symfony/http-client": "<4.4", - "symfony/lock": "<4.4", - "symfony/mailer": "<5.2", + "symfony/asset": "<5.4", + "symfony/console": "<5.4", + "symfony/dom-crawler": "<5.4", + "symfony/dotenv": "<5.4", + "symfony/form": "<5.4", + "symfony/http-client": "<5.4", + "symfony/lock": "<5.4", + "symfony/mailer": "<5.4", "symfony/messenger": "<5.4", - "symfony/mime": "<4.4", - "symfony/property-access": "<5.3", - "symfony/property-info": "<4.4", - "symfony/security-csrf": "<5.3", - "symfony/serializer": "<5.2", - "symfony/service-contracts": ">=3.0", - "symfony/stopwatch": "<4.4", - "symfony/translation": "<5.3", - "symfony/twig-bridge": "<4.4", - "symfony/twig-bundle": "<4.4", - "symfony/validator": "<5.2", - "symfony/web-profiler-bundle": "<4.4", - "symfony/workflow": "<5.2" + "symfony/mime": "<5.4", + "symfony/property-access": "<5.4", + "symfony/property-info": "<5.4", + "symfony/security-core": "<5.4", + "symfony/security-csrf": "<5.4", + "symfony/serializer": "<6.1", + "symfony/stopwatch": "<5.4", + "symfony/translation": "<5.4", + "symfony/twig-bridge": "<5.4", + "symfony/twig-bundle": "<5.4", + "symfony/validator": "<5.4", + "symfony/web-profiler-bundle": "<5.4", + "symfony/workflow": "<5.4" }, "require-dev": { "doctrine/annotations": "^1.13.1", - "doctrine/cache": "^1.11|^2.0", - "doctrine/persistence": "^1.3|^2.0", + "doctrine/persistence": "^1.3|^2|^3", "phpdocumentor/reflection-docblock": "^3.0|^4.0|^5.0", - "symfony/asset": "^5.3|^6.0", + "symfony/asset": "^5.4|^6.0", "symfony/browser-kit": "^5.4|^6.0", - "symfony/console": "^5.4|^6.0", - "symfony/css-selector": "^4.4|^5.0|^6.0", - "symfony/dom-crawler": "^4.4.30|^5.3.7|^6.0", - "symfony/dotenv": "^5.1|^6.0", - "symfony/expression-language": "^4.4|^5.0|^6.0", - "symfony/form": "^5.2|^6.0", - "symfony/http-client": "^4.4|^5.0|^6.0", - "symfony/lock": "^4.4|^5.0|^6.0", - "symfony/mailer": "^5.2|^6.0", - "symfony/messenger": "^5.4|^6.0", - "symfony/mime": "^4.4|^5.0|^6.0", + "symfony/console": "^5.4.9|^6.0.9", + "symfony/css-selector": "^5.4|^6.0", + "symfony/dom-crawler": "^5.4|^6.0", + "symfony/dotenv": "^5.4|^6.0", + "symfony/expression-language": "^5.4|^6.0", + "symfony/form": "^5.4|^6.0", + "symfony/html-sanitizer": "^6.1", + "symfony/http-client": "^5.4|^6.0", + "symfony/lock": "^5.4|^6.0", + "symfony/mailer": "^5.4|^6.0", + "symfony/messenger": "^6.1", + "symfony/mime": "^5.4|^6.0", "symfony/notifier": "^5.4|^6.0", - "symfony/phpunit-bridge": "^5.3|^6.0", "symfony/polyfill-intl-icu": "~1.0", - "symfony/process": "^4.4|^5.0|^6.0", - "symfony/property-info": "^4.4|^5.0|^6.0", - "symfony/rate-limiter": "^5.2|^6.0", + "symfony/process": "^5.4|^6.0", + "symfony/property-info": "^5.4|^6.0", + "symfony/rate-limiter": "^5.4|^6.0", "symfony/security-bundle": "^5.4|^6.0", - "symfony/serializer": "^5.4|^6.0", - "symfony/stopwatch": "^4.4|^5.0|^6.0", - "symfony/string": "^5.0|^6.0", - "symfony/translation": "^5.3|^6.0", - "symfony/twig-bundle": "^4.4|^5.0|^6.0", - "symfony/validator": "^5.2|^6.0", - "symfony/web-link": "^4.4|^5.0|^6.0", - "symfony/workflow": "^5.2|^6.0", - "symfony/yaml": "^4.4|^5.0|^6.0", + "symfony/semaphore": "^5.4|^6.0", + "symfony/serializer": "^6.1", + "symfony/stopwatch": "^5.4|^6.0", + "symfony/string": "^5.4|^6.0", + "symfony/translation": "^5.4|^6.0", + "symfony/twig-bundle": "^5.4|^6.0", + "symfony/uid": "^5.4|^6.0", + "symfony/validator": "^5.4|^6.0", + "symfony/web-link": "^5.4|^6.0", + "symfony/workflow": "^5.4|^6.0", + "symfony/yaml": "^5.4|^6.0", "twig/twig": "^2.10|^3.0" }, "suggest": { @@ -1622,7 +1614,7 @@ "description": "Provides a tight integration between Symfony components and the Symfony full-stack framework", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/framework-bundle/tree/v5.4.6" + "source": "https://github.com/symfony/framework-bundle/tree/v6.1.0" }, "funding": [ { @@ -1638,33 +1630,32 @@ "type": "tidelift" } ], - "time": "2022-03-04T14:13:35+00:00" + "time": "2022-05-27T06:30:26+00:00" }, { "name": "symfony/http-foundation", - "version": "v5.4.6", + "version": "v6.1.0", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "34e89bc147633c0f9dd6caaaf56da3b806a21465" + "reference": "18f8a2a3ab703428143c27c055fd743ab7e7dcb1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/34e89bc147633c0f9dd6caaaf56da3b806a21465", - "reference": "34e89bc147633c0f9dd6caaaf56da3b806a21465", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/18f8a2a3ab703428143c27c055fd743ab7e7dcb1", + "reference": "18f8a2a3ab703428143c27c055fd743ab7e7dcb1", "shasum": "" }, "require": { - "php": ">=7.2.5", + "php": ">=8.1", "symfony/deprecation-contracts": "^2.1|^3", - "symfony/polyfill-mbstring": "~1.1", - "symfony/polyfill-php80": "^1.16" + "symfony/polyfill-mbstring": "~1.1" }, "require-dev": { "predis/predis": "~1.0", - "symfony/cache": "^4.4|^5.0|^6.0", - "symfony/expression-language": "^4.4|^5.0|^6.0", - "symfony/mime": "^4.4|^5.0|^6.0" + "symfony/cache": "^5.4|^6.0", + "symfony/expression-language": "^5.4|^6.0", + "symfony/mime": "^5.4|^6.0" }, "suggest": { "symfony/mime": "To use the file extension guesser" @@ -1695,7 +1686,7 @@ "description": "Defines an object-oriented layer for the HTTP specification", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-foundation/tree/v5.4.6" + "source": "https://github.com/symfony/http-foundation/tree/v6.1.0" }, "funding": [ { @@ -1711,68 +1702,66 @@ "type": "tidelift" } ], - "time": "2022-03-05T21:03:43+00:00" + "time": "2022-05-21T13:34:40+00:00" }, { "name": "symfony/http-kernel", - "version": "v5.4.6", + "version": "v6.1.0", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "d41f29ae9af1b5f40c7ebcddf09082953229411d" + "reference": "a57c7084bd0604d80d70c89c6662512c698352d1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/d41f29ae9af1b5f40c7ebcddf09082953229411d", - "reference": "d41f29ae9af1b5f40c7ebcddf09082953229411d", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/a57c7084bd0604d80d70c89c6662512c698352d1", + "reference": "a57c7084bd0604d80d70c89c6662512c698352d1", "shasum": "" }, "require": { - "php": ">=7.2.5", - "psr/log": "^1|^2", - "symfony/deprecation-contracts": "^2.1|^3", - "symfony/error-handler": "^4.4|^5.0|^6.0", - "symfony/event-dispatcher": "^5.0|^6.0", - "symfony/http-foundation": "^5.3.7|^6.0", - "symfony/polyfill-ctype": "^1.8", - "symfony/polyfill-php73": "^1.9", - "symfony/polyfill-php80": "^1.16" + "php": ">=8.1", + "psr/log": "^1|^2|^3", + "symfony/error-handler": "^6.1", + "symfony/event-dispatcher": "^5.4|^6.0", + "symfony/http-foundation": "^5.4|^6.0", + "symfony/polyfill-ctype": "^1.8" }, "conflict": { "symfony/browser-kit": "<5.4", - "symfony/cache": "<5.0", - "symfony/config": "<5.0", - "symfony/console": "<4.4", - "symfony/dependency-injection": "<5.3", - "symfony/doctrine-bridge": "<5.0", - "symfony/form": "<5.0", - "symfony/http-client": "<5.0", - "symfony/mailer": "<5.0", - "symfony/messenger": "<5.0", - "symfony/translation": "<5.0", - "symfony/twig-bridge": "<5.0", - "symfony/validator": "<5.0", + "symfony/cache": "<5.4", + "symfony/config": "<6.1", + "symfony/console": "<5.4", + "symfony/dependency-injection": "<6.1", + "symfony/doctrine-bridge": "<5.4", + "symfony/form": "<5.4", + "symfony/http-client": "<5.4", + "symfony/mailer": "<5.4", + "symfony/messenger": "<5.4", + "symfony/translation": "<5.4", + "symfony/twig-bridge": "<5.4", + "symfony/validator": "<5.4", "twig/twig": "<2.13" }, "provide": { - "psr/log-implementation": "1.0|2.0" + "psr/log-implementation": "1.0|2.0|3.0" }, "require-dev": { "psr/cache": "^1.0|^2.0|^3.0", "symfony/browser-kit": "^5.4|^6.0", - "symfony/config": "^5.0|^6.0", - "symfony/console": "^4.4|^5.0|^6.0", - "symfony/css-selector": "^4.4|^5.0|^6.0", - "symfony/dependency-injection": "^5.3|^6.0", - "symfony/dom-crawler": "^4.4|^5.0|^6.0", - "symfony/expression-language": "^4.4|^5.0|^6.0", - "symfony/finder": "^4.4|^5.0|^6.0", + "symfony/config": "^6.1", + "symfony/console": "^5.4|^6.0", + "symfony/css-selector": "^5.4|^6.0", + "symfony/dependency-injection": "^6.1", + "symfony/dom-crawler": "^5.4|^6.0", + "symfony/expression-language": "^5.4|^6.0", + "symfony/finder": "^5.4|^6.0", "symfony/http-client-contracts": "^1.1|^2|^3", - "symfony/process": "^4.4|^5.0|^6.0", - "symfony/routing": "^4.4|^5.0|^6.0", - "symfony/stopwatch": "^4.4|^5.0|^6.0", - "symfony/translation": "^4.4|^5.0|^6.0", + "symfony/process": "^5.4|^6.0", + "symfony/routing": "^5.4|^6.0", + "symfony/stopwatch": "^5.4|^6.0", + "symfony/translation": "^5.4|^6.0", "symfony/translation-contracts": "^1.1|^2|^3", + "symfony/uid": "^5.4|^6.0", "twig/twig": "^2.13|^3.0.4" }, "suggest": { @@ -1807,7 +1796,7 @@ "description": "Provides a structured process for converting a Request into a Response", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-kernel/tree/v5.4.6" + "source": "https://github.com/symfony/http-kernel/tree/v6.1.0" }, "funding": [ { @@ -1823,20 +1812,20 @@ "type": "tidelift" } ], - "time": "2022-03-05T21:14:51+00:00" + "time": "2022-05-27T07:21:03+00:00" }, { "name": "symfony/polyfill-ctype", - "version": "v1.25.0", + "version": "v1.26.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "30885182c981ab175d4d034db0f6f469898070ab" + "reference": "6fd1b9a79f6e3cf65f9e679b23af304cd9e010d4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/30885182c981ab175d4d034db0f6f469898070ab", - "reference": "30885182c981ab175d4d034db0f6f469898070ab", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/6fd1b9a79f6e3cf65f9e679b23af304cd9e010d4", + "reference": "6fd1b9a79f6e3cf65f9e679b23af304cd9e010d4", "shasum": "" }, "require": { @@ -1851,7 +1840,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.23-dev" + "dev-main": "1.26-dev" }, "thanks": { "name": "symfony/polyfill", @@ -1889,7 +1878,7 @@ "portable" ], "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.25.0" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.26.0" }, "funding": [ { @@ -1905,20 +1894,20 @@ "type": "tidelift" } ], - "time": "2021-10-20T20:35:02+00:00" + "time": "2022-05-24T11:49:31+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.25.0", + "version": "v1.26.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "0abb51d2f102e00a4eefcf46ba7fec406d245825" + "reference": "9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/0abb51d2f102e00a4eefcf46ba7fec406d245825", - "reference": "0abb51d2f102e00a4eefcf46ba7fec406d245825", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e", + "reference": "9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e", "shasum": "" }, "require": { @@ -1933,7 +1922,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.23-dev" + "dev-main": "1.26-dev" }, "thanks": { "name": "symfony/polyfill", @@ -1972,7 +1961,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.25.0" + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.26.0" }, "funding": [ { @@ -1988,44 +1977,53 @@ "type": "tidelift" } ], - "time": "2021-11-30T18:21:41+00:00" + "time": "2022-05-24T11:49:31+00:00" }, { - "name": "symfony/polyfill-php73", - "version": "v1.25.0", + "name": "symfony/routing", + "version": "v6.1.0", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-php73.git", - "reference": "cc5db0e22b3cb4111010e48785a97f670b350ca5" + "url": "https://github.com/symfony/routing.git", + "reference": "03c13cbaefdec9fbb7a62ed18235d487686540dd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/cc5db0e22b3cb4111010e48785a97f670b350ca5", - "reference": "cc5db0e22b3cb4111010e48785a97f670b350ca5", + "url": "https://api.github.com/repos/symfony/routing/zipball/03c13cbaefdec9fbb7a62ed18235d487686540dd", + "reference": "03c13cbaefdec9fbb7a62ed18235d487686540dd", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=8.1" }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "1.23-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } + "conflict": { + "doctrine/annotations": "<1.12", + "symfony/config": "<5.4", + "symfony/dependency-injection": "<5.4", + "symfony/yaml": "<5.4" + }, + "require-dev": { + "doctrine/annotations": "^1.12", + "psr/log": "^1|^2|^3", + "symfony/config": "^5.4|^6.0", + "symfony/dependency-injection": "^5.4|^6.0", + "symfony/expression-language": "^5.4|^6.0", + "symfony/http-foundation": "^5.4|^6.0", + "symfony/yaml": "^5.4|^6.0" + }, + "suggest": { + "symfony/config": "For using the all-in-one router or any loader", + "symfony/expression-language": "For using expression matching", + "symfony/http-foundation": "For using a Symfony Request object", + "symfony/yaml": "For using the YAML loader" }, + "type": "library", "autoload": { - "files": [ - "bootstrap.php" - ], "psr-4": { - "Symfony\\Polyfill\\Php73\\": "" + "Symfony\\Component\\Routing\\": "" }, - "classmap": [ - "Resources/stubs" + "exclude-from-classmap": [ + "/Tests/" ] }, "notification-url": "https://packagist.org/downloads/", @@ -2034,24 +2032,24 @@ ], "authors": [ { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" + "name": "Fabien Potencier", + "email": "fabien@symfony.com" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions", + "description": "Maps an HTTP request to a set of configuration variables", "homepage": "https://symfony.com", "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" + "router", + "routing", + "uri", + "url" ], "support": { - "source": "https://github.com/symfony/polyfill-php73/tree/v1.25.0" + "source": "https://github.com/symfony/routing/tree/v6.1.0" }, "funding": [ { @@ -2067,44 +2065,48 @@ "type": "tidelift" } ], - "time": "2021-06-05T21:20:04+00:00" + "time": "2022-04-27T17:06:58+00:00" }, { - "name": "symfony/polyfill-php80", - "version": "v1.25.0", + "name": "symfony/service-contracts", + "version": "v3.1.0", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "4407588e0d3f1f52efb65fbe92babe41f37fe50c" + "url": "https://github.com/symfony/service-contracts.git", + "reference": "d66cd8ab656780f62c4215b903a420eb86358957" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/4407588e0d3f1f52efb65fbe92babe41f37fe50c", - "reference": "4407588e0d3f1f52efb65fbe92babe41f37fe50c", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/d66cd8ab656780f62c4215b903a420eb86358957", + "reference": "d66cd8ab656780f62c4215b903a420eb86358957", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=8.1", + "psr/container": "^2.0" + }, + "conflict": { + "ext-psr": "<1.1|>=2" + }, + "suggest": { + "symfony/service-implementation": "" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "1.23-dev" + "dev-main": "3.1-dev" }, "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" } }, "autoload": { - "files": [ - "bootstrap.php" - ], "psr-4": { - "Symfony\\Polyfill\\Php80\\": "" + "Symfony\\Contracts\\Service\\": "" }, - "classmap": [ - "Resources/stubs" + "exclude-from-classmap": [ + "/Test/" ] }, "notification-url": "https://packagist.org/downloads/", @@ -2112,10 +2114,6 @@ "MIT" ], "authors": [ - { - "name": "Ion Bazan", - "email": "ion.bazan@gmail.com" - }, { "name": "Nicolas Grekas", "email": "p@tchwork.com" @@ -2125,16 +2123,18 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", + "description": "Generic abstractions related to writing services", "homepage": "https://symfony.com", "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" ], "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.25.0" + "source": "https://github.com/symfony/service-contracts/tree/v3.1.0" }, "funding": [ { @@ -2150,44 +2150,44 @@ "type": "tidelift" } ], - "time": "2022-03-04T08:16:47+00:00" + "time": "2022-05-07T08:07:09+00:00" }, { - "name": "symfony/polyfill-php81", - "version": "v1.25.0", + "name": "symfony/translation-contracts", + "version": "v3.1.0", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-php81.git", - "reference": "5de4ba2d41b15f9bd0e19b2ab9674135813ec98f" + "url": "https://github.com/symfony/translation-contracts.git", + "reference": "bfddd2a1faa271b782b791c361cc16e2dd49dfaa" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/5de4ba2d41b15f9bd0e19b2ab9674135813ec98f", - "reference": "5de4ba2d41b15f9bd0e19b2ab9674135813ec98f", + "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/bfddd2a1faa271b782b791c361cc16e2dd49dfaa", + "reference": "bfddd2a1faa271b782b791c361cc16e2dd49dfaa", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=8.1" + }, + "suggest": { + "symfony/translation-implementation": "" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "1.23-dev" + "dev-main": "3.1-dev" }, "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" } }, "autoload": { - "files": [ - "bootstrap.php" - ], "psr-4": { - "Symfony\\Polyfill\\Php81\\": "" + "Symfony\\Contracts\\Translation\\": "" }, - "classmap": [ - "Resources/stubs" + "exclude-from-classmap": [ + "/Test/" ] }, "notification-url": "https://packagist.org/downloads/", @@ -2204,16 +2204,18 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions", + "description": "Generic abstractions related to translation", "homepage": "https://symfony.com", "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" ], "support": { - "source": "https://github.com/symfony/polyfill-php81/tree/v1.25.0" + "source": "https://github.com/symfony/translation-contracts/tree/v3.1.0" }, "funding": [ { @@ -2229,52 +2231,76 @@ "type": "tidelift" } ], - "time": "2021-09-13T13:58:11+00:00" + "time": "2022-04-22T07:30:54+00:00" }, { - "name": "symfony/routing", - "version": "v5.4.3", + "name": "symfony/validator", + "version": "v6.1.0", "source": { "type": "git", - "url": "https://github.com/symfony/routing.git", - "reference": "44b29c7a94e867ccde1da604792f11a469958981" + "url": "https://github.com/symfony/validator.git", + "reference": "afd5c693ec3b908364ee4d531450fdaa8f592fda" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/routing/zipball/44b29c7a94e867ccde1da604792f11a469958981", - "reference": "44b29c7a94e867ccde1da604792f11a469958981", + "url": "https://api.github.com/repos/symfony/validator/zipball/afd5c693ec3b908364ee4d531450fdaa8f592fda", + "reference": "afd5c693ec3b908364ee4d531450fdaa8f592fda", "shasum": "" }, "require": { - "php": ">=7.2.5", + "php": ">=8.1", "symfony/deprecation-contracts": "^2.1|^3", - "symfony/polyfill-php80": "^1.16" + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-mbstring": "~1.0", + "symfony/translation-contracts": "^1.1|^2|^3" }, "conflict": { - "doctrine/annotations": "<1.12", - "symfony/config": "<5.3", - "symfony/dependency-injection": "<4.4", - "symfony/yaml": "<4.4" + "doctrine/annotations": "<1.13", + "doctrine/lexer": "<1.1", + "phpunit/phpunit": "<5.4.3", + "symfony/dependency-injection": "<5.4", + "symfony/expression-language": "<5.4", + "symfony/http-kernel": "<5.4", + "symfony/intl": "<5.4", + "symfony/property-info": "<5.4", + "symfony/translation": "<5.4", + "symfony/yaml": "<5.4" }, "require-dev": { - "doctrine/annotations": "^1.12", - "psr/log": "^1|^2|^3", - "symfony/config": "^5.3|^6.0", - "symfony/dependency-injection": "^4.4|^5.0|^6.0", - "symfony/expression-language": "^4.4|^5.0|^6.0", - "symfony/http-foundation": "^4.4|^5.0|^6.0", - "symfony/yaml": "^4.4|^5.0|^6.0" + "doctrine/annotations": "^1.13", + "egulias/email-validator": "^2.1.10|^3", + "symfony/cache": "^5.4|^6.0", + "symfony/config": "^5.4|^6.0", + "symfony/console": "^5.4|^6.0", + "symfony/dependency-injection": "^5.4|^6.0", + "symfony/expression-language": "^5.4|^6.0", + "symfony/finder": "^5.4|^6.0", + "symfony/http-client": "^5.4|^6.0", + "symfony/http-foundation": "^5.4|^6.0", + "symfony/http-kernel": "^5.4|^6.0", + "symfony/intl": "^5.4|^6.0", + "symfony/mime": "^5.4|^6.0", + "symfony/property-access": "^5.4|^6.0", + "symfony/property-info": "^5.4|^6.0", + "symfony/translation": "^5.4|^6.0", + "symfony/yaml": "^5.4|^6.0" }, "suggest": { - "symfony/config": "For using the all-in-one router or any loader", - "symfony/expression-language": "For using expression matching", - "symfony/http-foundation": "For using a Symfony Request object", - "symfony/yaml": "For using the YAML loader" + "egulias/email-validator": "Strict (RFC compliant) email validation", + "psr/cache-implementation": "For using the mapping cache.", + "symfony/config": "", + "symfony/expression-language": "For using the Expression validator and the ExpressionLanguageSyntax constraints", + "symfony/http-foundation": "", + "symfony/intl": "", + "symfony/property-access": "For accessing properties within comparison constraints", + "symfony/property-info": "To automatically add NotNull and Type constraints", + "symfony/translation": "For translating validation errors.", + "symfony/yaml": "" }, "type": "library", "autoload": { "psr-4": { - "Symfony\\Component\\Routing\\": "" + "Symfony\\Component\\Validator\\": "" }, "exclude-from-classmap": [ "/Tests/" @@ -2294,16 +2320,10 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Maps an HTTP request to a set of configuration variables", + "description": "Provides tools to validate values", "homepage": "https://symfony.com", - "keywords": [ - "router", - "routing", - "uri", - "url" - ], "support": { - "source": "https://github.com/symfony/routing/tree/v5.4.3" + "source": "https://github.com/symfony/validator/tree/v6.1.0" }, "funding": [ { @@ -2319,47 +2339,56 @@ "type": "tidelift" } ], - "time": "2022-01-02T09:53:40+00:00" + "time": "2022-04-15T08:08:08+00:00" }, { - "name": "symfony/service-contracts", - "version": "v2.5.0", + "name": "symfony/var-dumper", + "version": "v6.1.0", "source": { "type": "git", - "url": "https://github.com/symfony/service-contracts.git", - "reference": "1ab11b933cd6bc5464b08e81e2c5b07dec58b0fc" + "url": "https://github.com/symfony/var-dumper.git", + "reference": "98587d939cb783aa04e828e8fa857edaca24c212" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/1ab11b933cd6bc5464b08e81e2c5b07dec58b0fc", - "reference": "1ab11b933cd6bc5464b08e81e2c5b07dec58b0fc", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/98587d939cb783aa04e828e8fa857edaca24c212", + "reference": "98587d939cb783aa04e828e8fa857edaca24c212", "shasum": "" }, "require": { - "php": ">=7.2.5", - "psr/container": "^1.1", - "symfony/deprecation-contracts": "^2.1" + "php": ">=8.1", + "symfony/polyfill-mbstring": "~1.0" }, "conflict": { - "ext-psr": "<1.1|>=2" + "phpunit/phpunit": "<5.4.3", + "symfony/console": "<5.4" + }, + "require-dev": { + "ext-iconv": "*", + "symfony/console": "^5.4|^6.0", + "symfony/process": "^5.4|^6.0", + "symfony/uid": "^5.4|^6.0", + "twig/twig": "^2.13|^3.0.4" }, "suggest": { - "symfony/service-implementation": "" + "ext-iconv": "To convert non-UTF-8 strings to UTF-8 (or symfony/polyfill-iconv in case ext-iconv cannot be used).", + "ext-intl": "To show region name in time zone dump", + "symfony/console": "To use the ServerDumpCommand and/or the bin/var-dump-server script" }, + "bin": [ + "Resources/bin/var-dump-server" + ], "type": "library", - "extra": { - "branch-alias": { - "dev-main": "2.5-dev" - }, - "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" - } - }, "autoload": { + "files": [ + "Resources/functions/dump.php" + ], "psr-4": { - "Symfony\\Contracts\\Service\\": "" - } + "Symfony\\Component\\VarDumper\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -2375,18 +2404,14 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Generic abstractions related to writing services", + "description": "Provides mechanisms for walking through any arbitrary PHP variable", "homepage": "https://symfony.com", "keywords": [ - "abstractions", - "contracts", - "decoupling", - "interfaces", - "interoperability", - "standards" + "debug", + "dump" ], "support": { - "source": "https://github.com/symfony/service-contracts/tree/v2.5.0" + "source": "https://github.com/symfony/var-dumper/tree/v6.1.0" }, "funding": [ { @@ -2402,48 +2427,3764 @@ "type": "tidelift" } ], - "time": "2021-11-04T16:48:04+00:00" + "time": "2022-05-21T13:34:40+00:00" }, { - "name": "symfony/translation-contracts", - "version": "v2.5.0", + "name": "symfony/var-exporter", + "version": "v6.1.0", "source": { "type": "git", - "url": "https://github.com/symfony/translation-contracts.git", - "reference": "d28150f0f44ce854e942b671fc2620a98aae1b1e" + "url": "https://github.com/symfony/var-exporter.git", + "reference": "33c301d3177150a52350ac893490a9289eb143dd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/d28150f0f44ce854e942b671fc2620a98aae1b1e", - "reference": "d28150f0f44ce854e942b671fc2620a98aae1b1e", + "url": "https://api.github.com/repos/symfony/var-exporter/zipball/33c301d3177150a52350ac893490a9289eb143dd", + "reference": "33c301d3177150a52350ac893490a9289eb143dd", "shasum": "" }, "require": { - "php": ">=7.2.5" + "php": ">=8.1" }, - "suggest": { - "symfony/translation-implementation": "" + "require-dev": { + "symfony/var-dumper": "^5.4|^6.0" }, "type": "library", - "extra": { - "branch-alias": { - "dev-main": "2.5-dev" - }, - "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" - } - }, "autoload": { "psr-4": { - "Symfony\\Contracts\\Translation\\": "" + "Symfony\\Component\\VarExporter\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Allows exporting any serializable PHP data structure to plain PHP code", + "homepage": "https://symfony.com", + "keywords": [ + "clone", + "construct", + "export", + "hydrate", + "instantiate", + "serialize" + ], + "support": { + "source": "https://github.com/symfony/var-exporter/tree/v6.1.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-05-21T13:34:40+00:00" + } + ], + "packages-dev": [ + { + "name": "composer/pcre", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/composer/pcre.git", + "reference": "e300eb6c535192decd27a85bc72a9290f0d6b3bd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/pcre/zipball/e300eb6c535192decd27a85bc72a9290f0d6b3bd", + "reference": "e300eb6c535192decd27a85bc72a9290f0d6b3bd", + "shasum": "" + }, + "require": { + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^1.3", + "phpstan/phpstan-strict-rules": "^1.1", + "symfony/phpunit-bridge": "^5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\Pcre\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + } + ], + "description": "PCRE wrapping library that offers type-safe preg_* replacements.", + "keywords": [ + "PCRE", + "preg", + "regex", + "regular expression" + ], + "support": { + "issues": "https://github.com/composer/pcre/issues", + "source": "https://github.com/composer/pcre/tree/3.0.0" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2022-02-25T20:21:48+00:00" + }, + { + "name": "composer/semver", + "version": "3.3.2", + "source": { + "type": "git", + "url": "https://github.com/composer/semver.git", + "reference": "3953f23262f2bff1919fc82183ad9acb13ff62c9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/semver/zipball/3953f23262f2bff1919fc82183ad9acb13ff62c9", + "reference": "3953f23262f2bff1919fc82183ad9acb13ff62c9", + "shasum": "" + }, + "require": { + "php": "^5.3.2 || ^7.0 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^1.4", + "symfony/phpunit-bridge": "^4.2 || ^5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\Semver\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nils Adermann", + "email": "naderman@naderman.de", + "homepage": "http://www.naderman.de" + }, + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + }, + { + "name": "Rob Bast", + "email": "rob.bast@gmail.com", + "homepage": "http://robbast.nl" + } + ], + "description": "Semver library that offers utilities, version constraint parsing and validation.", + "keywords": [ + "semantic", + "semver", + "validation", + "versioning" + ], + "support": { + "irc": "irc://irc.freenode.org/composer", + "issues": "https://github.com/composer/semver/issues", + "source": "https://github.com/composer/semver/tree/3.3.2" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2022-04-01T19:23:25+00:00" + }, + { + "name": "composer/xdebug-handler", + "version": "3.0.3", + "source": { + "type": "git", + "url": "https://github.com/composer/xdebug-handler.git", + "reference": "ced299686f41dce890debac69273b47ffe98a40c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/ced299686f41dce890debac69273b47ffe98a40c", + "reference": "ced299686f41dce890debac69273b47ffe98a40c", + "shasum": "" + }, + "require": { + "composer/pcre": "^1 || ^2 || ^3", + "php": "^7.2.5 || ^8.0", + "psr/log": "^1 || ^2 || ^3" + }, + "require-dev": { + "phpstan/phpstan": "^1.0", + "phpstan/phpstan-strict-rules": "^1.1", + "symfony/phpunit-bridge": "^6.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Composer\\XdebugHandler\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "John Stevenson", + "email": "john-stevenson@blueyonder.co.uk" + } + ], + "description": "Restarts a process without Xdebug.", + "keywords": [ + "Xdebug", + "performance" + ], + "support": { + "irc": "irc://irc.freenode.org/composer", + "issues": "https://github.com/composer/xdebug-handler/issues", + "source": "https://github.com/composer/xdebug-handler/tree/3.0.3" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2022-02-25T21:32:43+00:00" + }, + { + "name": "friendsofphp/php-cs-fixer", + "version": "v3.8.0", + "source": { + "type": "git", + "url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git", + "reference": "cbad1115aac4b5c3c5540e7210d3c9fba2f81fa3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/cbad1115aac4b5c3c5540e7210d3c9fba2f81fa3", + "reference": "cbad1115aac4b5c3c5540e7210d3c9fba2f81fa3", + "shasum": "" + }, + "require": { + "composer/semver": "^3.2", + "composer/xdebug-handler": "^3.0.3", + "doctrine/annotations": "^1.13", + "ext-json": "*", + "ext-tokenizer": "*", + "php": "^7.4 || ^8.0", + "php-cs-fixer/diff": "^2.0", + "symfony/console": "^5.4 || ^6.0", + "symfony/event-dispatcher": "^5.4 || ^6.0", + "symfony/filesystem": "^5.4 || ^6.0", + "symfony/finder": "^5.4 || ^6.0", + "symfony/options-resolver": "^5.4 || ^6.0", + "symfony/polyfill-mbstring": "^1.23", + "symfony/polyfill-php80": "^1.25", + "symfony/polyfill-php81": "^1.25", + "symfony/process": "^5.4 || ^6.0", + "symfony/stopwatch": "^5.4 || ^6.0" + }, + "require-dev": { + "justinrainbow/json-schema": "^5.2", + "keradus/cli-executor": "^1.5", + "mikey179/vfsstream": "^1.6.10", + "php-coveralls/php-coveralls": "^2.5.2", + "php-cs-fixer/accessible-object": "^1.1", + "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.2", + "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.2.1", + "phpspec/prophecy": "^1.15", + "phpspec/prophecy-phpunit": "^2.0", + "phpunit/phpunit": "^9.5", + "phpunitgoodpractices/polyfill": "^1.5", + "phpunitgoodpractices/traits": "^1.9.1", + "symfony/phpunit-bridge": "^6.0", + "symfony/yaml": "^5.4 || ^6.0" + }, + "suggest": { + "ext-dom": "For handling output formats in XML", + "ext-mbstring": "For handling non-UTF8 characters." + }, + "bin": [ + "php-cs-fixer" + ], + "type": "application", + "autoload": { + "psr-4": { + "PhpCsFixer\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Dariusz Rumiński", + "email": "dariusz.ruminski@gmail.com" + } + ], + "description": "A tool to automatically fix PHP code style", + "support": { + "issues": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues", + "source": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/tree/v3.8.0" + }, + "funding": [ + { + "url": "https://github.com/keradus", + "type": "github" + } + ], + "time": "2022-03-18T17:20:59+00:00" + }, + { + "name": "hoa/compiler", + "version": "3.17.08.08", + "source": { + "type": "git", + "url": "https://github.com/hoaproject/Compiler.git", + "reference": "aa09caf0bf28adae6654ca6ee415ee2f522672de" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/hoaproject/Compiler/zipball/aa09caf0bf28adae6654ca6ee415ee2f522672de", + "reference": "aa09caf0bf28adae6654ca6ee415ee2f522672de", + "shasum": "" + }, + "require": { + "hoa/consistency": "~1.0", + "hoa/exception": "~1.0", + "hoa/file": "~1.0", + "hoa/iterator": "~2.0", + "hoa/math": "~1.0", + "hoa/protocol": "~1.0", + "hoa/regex": "~1.0", + "hoa/visitor": "~2.0" + }, + "require-dev": { + "hoa/json": "~2.0", + "hoa/test": "~2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Hoa\\Compiler\\": "." + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Ivan Enderlin", + "email": "ivan.enderlin@hoa-project.net" + }, + { + "name": "Hoa community", + "homepage": "https://hoa-project.net/" + } + ], + "description": "The Hoa\\Compiler library.", + "homepage": "https://hoa-project.net/", + "keywords": [ + "algebraic", + "ast", + "compiler", + "context-free", + "coverage", + "exhaustive", + "grammar", + "isotropic", + "language", + "lexer", + "library", + "ll1", + "llk", + "parser", + "pp", + "random", + "regular", + "rule", + "sampler", + "syntax", + "token", + "trace", + "uniform" + ], + "support": { + "docs": "https://central.hoa-project.net/Documentation/Library/Compiler", + "email": "support@hoa-project.net", + "forum": "https://users.hoa-project.net/", + "irc": "irc://chat.freenode.net/hoaproject", + "issues": "https://github.com/hoaproject/Compiler/issues", + "source": "https://central.hoa-project.net/Resource/Library/Compiler" + }, + "abandoned": true, + "time": "2017-08-08T07:44:07+00:00" + }, + { + "name": "hoa/consistency", + "version": "1.17.05.02", + "source": { + "type": "git", + "url": "https://github.com/hoaproject/Consistency.git", + "reference": "fd7d0adc82410507f332516faf655b6ed22e4c2f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/hoaproject/Consistency/zipball/fd7d0adc82410507f332516faf655b6ed22e4c2f", + "reference": "fd7d0adc82410507f332516faf655b6ed22e4c2f", + "shasum": "" + }, + "require": { + "hoa/exception": "~1.0", + "php": ">=5.5.0" + }, + "require-dev": { + "hoa/stream": "~1.0", + "hoa/test": "~2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Hoa\\Consistency\\": "." + }, + "files": [ + "Prelude.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Ivan Enderlin", + "email": "ivan.enderlin@hoa-project.net" + }, + { + "name": "Hoa community", + "homepage": "https://hoa-project.net/" + } + ], + "description": "The Hoa\\Consistency library.", + "homepage": "https://hoa-project.net/", + "keywords": [ + "autoloader", + "callable", + "consistency", + "entity", + "flex", + "keyword", + "library" + ], + "support": { + "docs": "https://central.hoa-project.net/Documentation/Library/Consistency", + "email": "support@hoa-project.net", + "forum": "https://users.hoa-project.net/", + "irc": "irc://chat.freenode.net/hoaproject", + "issues": "https://github.com/hoaproject/Consistency/issues", + "source": "https://central.hoa-project.net/Resource/Library/Consistency" + }, + "abandoned": true, + "time": "2017-05-02T12:18:12+00:00" + }, + { + "name": "hoa/event", + "version": "1.17.01.13", + "source": { + "type": "git", + "url": "https://github.com/hoaproject/Event.git", + "reference": "6c0060dced212ffa3af0e34bb46624f990b29c54" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/hoaproject/Event/zipball/6c0060dced212ffa3af0e34bb46624f990b29c54", + "reference": "6c0060dced212ffa3af0e34bb46624f990b29c54", + "shasum": "" + }, + "require": { + "hoa/consistency": "~1.0", + "hoa/exception": "~1.0" + }, + "require-dev": { + "hoa/test": "~2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Hoa\\Event\\": "." + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Ivan Enderlin", + "email": "ivan.enderlin@hoa-project.net" + }, + { + "name": "Hoa community", + "homepage": "https://hoa-project.net/" + } + ], + "description": "The Hoa\\Event library.", + "homepage": "https://hoa-project.net/", + "keywords": [ + "event", + "library", + "listener", + "observer" + ], + "support": { + "docs": "https://central.hoa-project.net/Documentation/Library/Event", + "email": "support@hoa-project.net", + "forum": "https://users.hoa-project.net/", + "irc": "irc://chat.freenode.net/hoaproject", + "issues": "https://github.com/hoaproject/Event/issues", + "source": "https://central.hoa-project.net/Resource/Library/Event" + }, + "abandoned": true, + "time": "2017-01-13T15:30:50+00:00" + }, + { + "name": "hoa/exception", + "version": "1.17.01.16", + "source": { + "type": "git", + "url": "https://github.com/hoaproject/Exception.git", + "reference": "091727d46420a3d7468ef0595651488bfc3a458f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/hoaproject/Exception/zipball/091727d46420a3d7468ef0595651488bfc3a458f", + "reference": "091727d46420a3d7468ef0595651488bfc3a458f", + "shasum": "" + }, + "require": { + "hoa/consistency": "~1.0", + "hoa/event": "~1.0" + }, + "require-dev": { + "hoa/test": "~2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Hoa\\Exception\\": "." + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Ivan Enderlin", + "email": "ivan.enderlin@hoa-project.net" + }, + { + "name": "Hoa community", + "homepage": "https://hoa-project.net/" + } + ], + "description": "The Hoa\\Exception library.", + "homepage": "https://hoa-project.net/", + "keywords": [ + "exception", + "library" + ], + "support": { + "docs": "https://central.hoa-project.net/Documentation/Library/Exception", + "email": "support@hoa-project.net", + "forum": "https://users.hoa-project.net/", + "irc": "irc://chat.freenode.net/hoaproject", + "issues": "https://github.com/hoaproject/Exception/issues", + "source": "https://central.hoa-project.net/Resource/Library/Exception" + }, + "abandoned": true, + "time": "2017-01-16T07:53:27+00:00" + }, + { + "name": "hoa/file", + "version": "1.17.07.11", + "source": { + "type": "git", + "url": "https://github.com/hoaproject/File.git", + "reference": "35cb979b779bc54918d2f9a4e02ed6c7a1fa67ca" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/hoaproject/File/zipball/35cb979b779bc54918d2f9a4e02ed6c7a1fa67ca", + "reference": "35cb979b779bc54918d2f9a4e02ed6c7a1fa67ca", + "shasum": "" + }, + "require": { + "hoa/consistency": "~1.0", + "hoa/event": "~1.0", + "hoa/exception": "~1.0", + "hoa/iterator": "~2.0", + "hoa/stream": "~1.0" + }, + "require-dev": { + "hoa/test": "~2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Hoa\\File\\": "." + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Ivan Enderlin", + "email": "ivan.enderlin@hoa-project.net" + }, + { + "name": "Hoa community", + "homepage": "https://hoa-project.net/" + } + ], + "description": "The Hoa\\File library.", + "homepage": "https://hoa-project.net/", + "keywords": [ + "Socket", + "directory", + "file", + "finder", + "library", + "link", + "temporary" + ], + "support": { + "docs": "https://central.hoa-project.net/Documentation/Library/File", + "email": "support@hoa-project.net", + "forum": "https://users.hoa-project.net/", + "irc": "irc://chat.freenode.net/hoaproject", + "issues": "https://github.com/hoaproject/File/issues", + "source": "https://central.hoa-project.net/Resource/Library/File" + }, + "abandoned": true, + "time": "2017-07-11T07:42:15+00:00" + }, + { + "name": "hoa/iterator", + "version": "2.17.01.10", + "source": { + "type": "git", + "url": "https://github.com/hoaproject/Iterator.git", + "reference": "d1120ba09cb4ccd049c86d10058ab94af245f0cc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/hoaproject/Iterator/zipball/d1120ba09cb4ccd049c86d10058ab94af245f0cc", + "reference": "d1120ba09cb4ccd049c86d10058ab94af245f0cc", + "shasum": "" + }, + "require": { + "hoa/consistency": "~1.0", + "hoa/exception": "~1.0" + }, + "require-dev": { + "hoa/test": "~2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.x-dev" + } + }, + "autoload": { + "psr-4": { + "Hoa\\Iterator\\": "." + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Ivan Enderlin", + "email": "ivan.enderlin@hoa-project.net" + }, + { + "name": "Hoa community", + "homepage": "https://hoa-project.net/" + } + ], + "description": "The Hoa\\Iterator library.", + "homepage": "https://hoa-project.net/", + "keywords": [ + "iterator", + "library" + ], + "support": { + "docs": "https://central.hoa-project.net/Documentation/Library/Iterator", + "email": "support@hoa-project.net", + "forum": "https://users.hoa-project.net/", + "irc": "irc://chat.freenode.net/hoaproject", + "issues": "https://github.com/hoaproject/Iterator/issues", + "source": "https://central.hoa-project.net/Resource/Library/Iterator" + }, + "abandoned": true, + "time": "2017-01-10T10:34:47+00:00" + }, + { + "name": "hoa/math", + "version": "1.17.05.16", + "source": { + "type": "git", + "url": "https://github.com/hoaproject/Math.git", + "reference": "7150785d30f5d565704912116a462e9f5bc83a0c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/hoaproject/Math/zipball/7150785d30f5d565704912116a462e9f5bc83a0c", + "reference": "7150785d30f5d565704912116a462e9f5bc83a0c", + "shasum": "" + }, + "require": { + "hoa/compiler": "~3.0", + "hoa/consistency": "~1.0", + "hoa/exception": "~1.0", + "hoa/iterator": "~2.0", + "hoa/protocol": "~1.0", + "hoa/zformat": "~1.0" + }, + "require-dev": { + "hoa/test": "~2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Hoa\\Math\\": "." + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Ivan Enderlin", + "email": "ivan.enderlin@hoa-project.net" + }, + { + "name": "Hoa community", + "homepage": "https://hoa-project.net/" + } + ], + "description": "The Hoa\\Math library.", + "homepage": "https://hoa-project.net/", + "keywords": [ + "arrangement", + "combination", + "combinatorics", + "counting", + "library", + "math", + "permutation", + "sampler", + "set" + ], + "support": { + "docs": "https://central.hoa-project.net/Documentation/Library/Math", + "email": "support@hoa-project.net", + "forum": "https://users.hoa-project.net/", + "irc": "irc://chat.freenode.net/hoaproject", + "issues": "https://github.com/hoaproject/Math/issues", + "source": "https://central.hoa-project.net/Resource/Library/Math" + }, + "abandoned": true, + "time": "2017-05-16T08:02:17+00:00" + }, + { + "name": "hoa/protocol", + "version": "1.17.01.14", + "source": { + "type": "git", + "url": "https://github.com/hoaproject/Protocol.git", + "reference": "5c2cf972151c45f373230da170ea015deecf19e2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/hoaproject/Protocol/zipball/5c2cf972151c45f373230da170ea015deecf19e2", + "reference": "5c2cf972151c45f373230da170ea015deecf19e2", + "shasum": "" + }, + "require": { + "hoa/consistency": "~1.0", + "hoa/exception": "~1.0" + }, + "require-dev": { + "hoa/test": "~2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Hoa\\Protocol\\": "." + }, + "files": [ + "Wrapper.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Ivan Enderlin", + "email": "ivan.enderlin@hoa-project.net" + }, + { + "name": "Hoa community", + "homepage": "https://hoa-project.net/" + } + ], + "description": "The Hoa\\Protocol library.", + "homepage": "https://hoa-project.net/", + "keywords": [ + "library", + "protocol", + "resource", + "stream", + "wrapper" + ], + "support": { + "docs": "https://central.hoa-project.net/Documentation/Library/Protocol", + "email": "support@hoa-project.net", + "forum": "https://users.hoa-project.net/", + "irc": "irc://chat.freenode.net/hoaproject", + "issues": "https://github.com/hoaproject/Protocol/issues", + "source": "https://central.hoa-project.net/Resource/Library/Protocol" + }, + "abandoned": true, + "time": "2017-01-14T12:26:10+00:00" + }, + { + "name": "hoa/regex", + "version": "1.17.01.13", + "source": { + "type": "git", + "url": "https://github.com/hoaproject/Regex.git", + "reference": "7e263a61b6fb45c1d03d8e5ef77668518abd5bec" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/hoaproject/Regex/zipball/7e263a61b6fb45c1d03d8e5ef77668518abd5bec", + "reference": "7e263a61b6fb45c1d03d8e5ef77668518abd5bec", + "shasum": "" + }, + "require": { + "hoa/consistency": "~1.0", + "hoa/exception": "~1.0", + "hoa/math": "~1.0", + "hoa/protocol": "~1.0", + "hoa/ustring": "~4.0", + "hoa/visitor": "~2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Hoa\\Regex\\": "." + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Ivan Enderlin", + "email": "ivan.enderlin@hoa-project.net" + }, + { + "name": "Hoa community", + "homepage": "https://hoa-project.net/" + } + ], + "description": "The Hoa\\Regex library.", + "homepage": "https://hoa-project.net/", + "keywords": [ + "compiler", + "library", + "regex" + ], + "support": { + "docs": "https://central.hoa-project.net/Documentation/Library/Regex", + "email": "support@hoa-project.net", + "forum": "https://users.hoa-project.net/", + "irc": "irc://chat.freenode.net/hoaproject", + "issues": "https://github.com/hoaproject/Regex/issues", + "source": "https://central.hoa-project.net/Resource/Library/Regex" + }, + "abandoned": true, + "time": "2017-01-13T16:10:24+00:00" + }, + { + "name": "hoa/stream", + "version": "1.17.02.21", + "source": { + "type": "git", + "url": "https://github.com/hoaproject/Stream.git", + "reference": "3293cfffca2de10525df51436adf88a559151d82" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/hoaproject/Stream/zipball/3293cfffca2de10525df51436adf88a559151d82", + "reference": "3293cfffca2de10525df51436adf88a559151d82", + "shasum": "" + }, + "require": { + "hoa/consistency": "~1.0", + "hoa/event": "~1.0", + "hoa/exception": "~1.0", + "hoa/protocol": "~1.0" + }, + "require-dev": { + "hoa/test": "~2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Hoa\\Stream\\": "." + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Ivan Enderlin", + "email": "ivan.enderlin@hoa-project.net" + }, + { + "name": "Hoa community", + "homepage": "https://hoa-project.net/" + } + ], + "description": "The Hoa\\Stream library.", + "homepage": "https://hoa-project.net/", + "keywords": [ + "Context", + "bucket", + "composite", + "filter", + "in", + "library", + "out", + "protocol", + "stream", + "wrapper" + ], + "support": { + "docs": "https://central.hoa-project.net/Documentation/Library/Stream", + "email": "support@hoa-project.net", + "forum": "https://users.hoa-project.net/", + "irc": "irc://chat.freenode.net/hoaproject", + "issues": "https://github.com/hoaproject/Stream/issues", + "source": "https://central.hoa-project.net/Resource/Library/Stream" + }, + "abandoned": true, + "time": "2017-02-21T16:01:06+00:00" + }, + { + "name": "hoa/ustring", + "version": "4.17.01.16", + "source": { + "type": "git", + "url": "https://github.com/hoaproject/Ustring.git", + "reference": "e6326e2739178799b1fe3fdd92029f9517fa17a0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/hoaproject/Ustring/zipball/e6326e2739178799b1fe3fdd92029f9517fa17a0", + "reference": "e6326e2739178799b1fe3fdd92029f9517fa17a0", + "shasum": "" + }, + "require": { + "hoa/consistency": "~1.0", + "hoa/exception": "~1.0" + }, + "require-dev": { + "hoa/test": "~2.0" + }, + "suggest": { + "ext-iconv": "ext/iconv must be present (or a third implementation) to use Hoa\\Ustring::transcode().", + "ext-intl": "To get a better Hoa\\Ustring::toAscii() and Hoa\\Ustring::compareTo()." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.x-dev" + } + }, + "autoload": { + "psr-4": { + "Hoa\\Ustring\\": "." + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Ivan Enderlin", + "email": "ivan.enderlin@hoa-project.net" + }, + { + "name": "Hoa community", + "homepage": "https://hoa-project.net/" + } + ], + "description": "The Hoa\\Ustring library.", + "homepage": "https://hoa-project.net/", + "keywords": [ + "library", + "search", + "string", + "unicode" + ], + "support": { + "docs": "https://central.hoa-project.net/Documentation/Library/Ustring", + "email": "support@hoa-project.net", + "forum": "https://users.hoa-project.net/", + "irc": "irc://chat.freenode.net/hoaproject", + "issues": "https://github.com/hoaproject/Ustring/issues", + "source": "https://central.hoa-project.net/Resource/Library/Ustring" + }, + "abandoned": true, + "time": "2017-01-16T07:08:25+00:00" + }, + { + "name": "hoa/visitor", + "version": "2.17.01.16", + "source": { + "type": "git", + "url": "https://github.com/hoaproject/Visitor.git", + "reference": "c18fe1cbac98ae449e0d56e87469103ba08f224a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/hoaproject/Visitor/zipball/c18fe1cbac98ae449e0d56e87469103ba08f224a", + "reference": "c18fe1cbac98ae449e0d56e87469103ba08f224a", + "shasum": "" + }, + "require": { + "hoa/consistency": "~1.0" + }, + "require-dev": { + "hoa/test": "~2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.x-dev" + } + }, + "autoload": { + "psr-4": { + "Hoa\\Visitor\\": "." + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Ivan Enderlin", + "email": "ivan.enderlin@hoa-project.net" + }, + { + "name": "Hoa community", + "homepage": "https://hoa-project.net/" + } + ], + "description": "The Hoa\\Visitor library.", + "homepage": "https://hoa-project.net/", + "keywords": [ + "library", + "structure", + "visit", + "visitor" + ], + "support": { + "docs": "https://central.hoa-project.net/Documentation/Library/Visitor", + "email": "support@hoa-project.net", + "forum": "https://users.hoa-project.net/", + "irc": "irc://chat.freenode.net/hoaproject", + "issues": "https://github.com/hoaproject/Visitor/issues", + "source": "https://central.hoa-project.net/Resource/Library/Visitor" + }, + "abandoned": true, + "time": "2017-01-16T07:02:03+00:00" + }, + { + "name": "hoa/zformat", + "version": "1.17.01.10", + "source": { + "type": "git", + "url": "https://github.com/hoaproject/Zformat.git", + "reference": "522c381a2a075d4b9dbb42eb4592dd09520e4ac2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/hoaproject/Zformat/zipball/522c381a2a075d4b9dbb42eb4592dd09520e4ac2", + "reference": "522c381a2a075d4b9dbb42eb4592dd09520e4ac2", + "shasum": "" + }, + "require": { + "hoa/consistency": "~1.0", + "hoa/exception": "~1.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Hoa\\Zformat\\": "." + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Ivan Enderlin", + "email": "ivan.enderlin@hoa-project.net" + }, + { + "name": "Hoa community", + "homepage": "https://hoa-project.net/" + } + ], + "description": "The Hoa\\Zformat library.", + "homepage": "https://hoa-project.net/", + "keywords": [ + "library", + "parameter", + "zformat" + ], + "support": { + "docs": "https://central.hoa-project.net/Documentation/Library/Zformat", + "email": "support@hoa-project.net", + "forum": "https://users.hoa-project.net/", + "irc": "irc://chat.freenode.net/hoaproject", + "issues": "https://github.com/hoaproject/Zformat/issues", + "source": "https://central.hoa-project.net/Resource/Library/Zformat" + }, + "abandoned": true, + "time": "2017-01-10T10:39:54+00:00" + }, + { + "name": "masterminds/html5", + "version": "2.7.5", + "source": { + "type": "git", + "url": "https://github.com/Masterminds/html5-php.git", + "reference": "f640ac1bdddff06ea333a920c95bbad8872429ab" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Masterminds/html5-php/zipball/f640ac1bdddff06ea333a920c95bbad8872429ab", + "reference": "f640ac1bdddff06ea333a920c95bbad8872429ab", + "shasum": "" + }, + "require": { + "ext-ctype": "*", + "ext-dom": "*", + "ext-libxml": "*", + "php": ">=5.3.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35 || ^5.7.21 || ^6 || ^7" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.7-dev" + } + }, + "autoload": { + "psr-4": { + "Masterminds\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Matt Butcher", + "email": "technosophos@gmail.com" + }, + { + "name": "Matt Farina", + "email": "matt@mattfarina.com" + }, + { + "name": "Asmir Mustafic", + "email": "goetas@gmail.com" + } + ], + "description": "An HTML5 parser and serializer.", + "homepage": "http://masterminds.github.io/html5-php", + "keywords": [ + "HTML5", + "dom", + "html", + "parser", + "querypath", + "serializer", + "xml" + ], + "support": { + "issues": "https://github.com/Masterminds/html5-php/issues", + "source": "https://github.com/Masterminds/html5-php/tree/2.7.5" + }, + "time": "2021-07-01T14:25:37+00:00" + }, + { + "name": "myclabs/deep-copy", + "version": "1.11.0", + "source": { + "type": "git", + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/14daed4296fae74d9e3201d2c4925d1acb7aa614", + "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "conflict": { + "doctrine/collections": "<1.6.8", + "doctrine/common": "<2.13.3 || >=3,<3.2.2" + }, + "require-dev": { + "doctrine/collections": "^1.6.8", + "doctrine/common": "^2.13.3 || ^3.2.2", + "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" + }, + "type": "library", + "autoload": { + "files": [ + "src/DeepCopy/deep_copy.php" + ], + "psr-4": { + "DeepCopy\\": "src/DeepCopy/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Create deep copies (clones) of your objects", + "keywords": [ + "clone", + "copy", + "duplicate", + "object", + "object graph" + ], + "support": { + "issues": "https://github.com/myclabs/DeepCopy/issues", + "source": "https://github.com/myclabs/DeepCopy/tree/1.11.0" + }, + "funding": [ + { + "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", + "type": "tidelift" + } + ], + "time": "2022-03-03T13:19:32+00:00" + }, + { + "name": "nikic/php-parser", + "version": "v4.14.0", + "source": { + "type": "git", + "url": "https://github.com/nikic/PHP-Parser.git", + "reference": "34bea19b6e03d8153165d8f30bba4c3be86184c1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/34bea19b6e03d8153165d8f30bba4c3be86184c1", + "reference": "34bea19b6e03d8153165d8f30bba4c3be86184c1", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "php": ">=7.0" + }, + "require-dev": { + "ircmaxell/php-yacc": "^0.0.7", + "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0" + }, + "bin": [ + "bin/php-parse" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.9-dev" + } + }, + "autoload": { + "psr-4": { + "PhpParser\\": "lib/PhpParser" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Nikita Popov" + } + ], + "description": "A PHP parser written in PHP", + "keywords": [ + "parser", + "php" + ], + "support": { + "issues": "https://github.com/nikic/PHP-Parser/issues", + "source": "https://github.com/nikic/PHP-Parser/tree/v4.14.0" + }, + "time": "2022-05-31T20:59:12+00:00" + }, + { + "name": "phar-io/manifest", + "version": "2.0.3", + "source": { + "type": "git", + "url": "https://github.com/phar-io/manifest.git", + "reference": "97803eca37d319dfa7826cc2437fc020857acb53" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/manifest/zipball/97803eca37d319dfa7826cc2437fc020857acb53", + "reference": "97803eca37d319dfa7826cc2437fc020857acb53", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-phar": "*", + "ext-xmlwriter": "*", + "phar-io/version": "^3.0.1", + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", + "support": { + "issues": "https://github.com/phar-io/manifest/issues", + "source": "https://github.com/phar-io/manifest/tree/2.0.3" + }, + "time": "2021-07-20T11:28:43+00:00" + }, + { + "name": "phar-io/version", + "version": "3.2.1", + "source": { + "type": "git", + "url": "https://github.com/phar-io/version.git", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/version/zipball/4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Library for handling version information and constraints", + "support": { + "issues": "https://github.com/phar-io/version/issues", + "source": "https://github.com/phar-io/version/tree/3.2.1" + }, + "time": "2022-02-21T01:04:05+00:00" + }, + { + "name": "php-cs-fixer/diff", + "version": "v2.0.2", + "source": { + "type": "git", + "url": "https://github.com/PHP-CS-Fixer/diff.git", + "reference": "29dc0d507e838c4580d018bd8b5cb412474f7ec3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHP-CS-Fixer/diff/zipball/29dc0d507e838c4580d018bd8b5cb412474f7ec3", + "reference": "29dc0d507e838c4580d018bd8b5cb412474f7ec3", + "shasum": "" + }, + "require": { + "php": "^5.6 || ^7.0 || ^8.0" + }, + "require-dev": { + "phpunit/phpunit": "^5.7.23 || ^6.4.3 || ^7.0", + "symfony/process": "^3.3" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" + } + ], + "description": "sebastian/diff v3 backport support for PHP 5.6+", + "homepage": "https://github.com/PHP-CS-Fixer", + "keywords": [ + "diff" + ], + "support": { + "issues": "https://github.com/PHP-CS-Fixer/diff/issues", + "source": "https://github.com/PHP-CS-Fixer/diff/tree/v2.0.2" + }, + "time": "2020-10-14T08:32:19+00:00" + }, + { + "name": "phpdocumentor/reflection-common", + "version": "2.2.0", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/ReflectionCommon.git", + "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/1d01c49d4ed62f25aa84a747ad35d5a16924662b", + "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-2.x": "2.x-dev" + } + }, + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jaap van Otterdijk", + "email": "opensource@ijaap.nl" + } + ], + "description": "Common reflection classes used by phpdocumentor to reflect the code structure", + "homepage": "http://www.phpdoc.org", + "keywords": [ + "FQSEN", + "phpDocumentor", + "phpdoc", + "reflection", + "static analysis" + ], + "support": { + "issues": "https://github.com/phpDocumentor/ReflectionCommon/issues", + "source": "https://github.com/phpDocumentor/ReflectionCommon/tree/2.x" + }, + "time": "2020-06-27T09:03:43+00:00" + }, + { + "name": "phpdocumentor/reflection-docblock", + "version": "5.3.0", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", + "reference": "622548b623e81ca6d78b721c5e029f4ce664f170" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/622548b623e81ca6d78b721c5e029f4ce664f170", + "reference": "622548b623e81ca6d78b721c5e029f4ce664f170", + "shasum": "" + }, + "require": { + "ext-filter": "*", + "php": "^7.2 || ^8.0", + "phpdocumentor/reflection-common": "^2.2", + "phpdocumentor/type-resolver": "^1.3", + "webmozart/assert": "^1.9.1" + }, + "require-dev": { + "mockery/mockery": "~1.3.2", + "psalm/phar": "^4.8" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.x-dev" + } + }, + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mike van Riel", + "email": "me@mikevanriel.com" + }, + { + "name": "Jaap van Otterdijk", + "email": "account@ijaap.nl" + } + ], + "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", + "support": { + "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues", + "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.3.0" + }, + "time": "2021-10-19T17:43:47+00:00" + }, + { + "name": "phpdocumentor/type-resolver", + "version": "1.6.1", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/TypeResolver.git", + "reference": "77a32518733312af16a44300404e945338981de3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/77a32518733312af16a44300404e945338981de3", + "reference": "77a32518733312af16a44300404e945338981de3", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0", + "phpdocumentor/reflection-common": "^2.0" + }, + "require-dev": { + "ext-tokenizer": "*", + "psalm/phar": "^4.8" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-1.x": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mike van Riel", + "email": "me@mikevanriel.com" + } + ], + "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", + "support": { + "issues": "https://github.com/phpDocumentor/TypeResolver/issues", + "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.6.1" + }, + "time": "2022-03-15T21:29:03+00:00" + }, + { + "name": "phpspec/prophecy", + "version": "v1.15.0", + "source": { + "type": "git", + "url": "https://github.com/phpspec/prophecy.git", + "reference": "bbcd7380b0ebf3961ee21409db7b38bc31d69a13" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/bbcd7380b0ebf3961ee21409db7b38bc31d69a13", + "reference": "bbcd7380b0ebf3961ee21409db7b38bc31d69a13", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.2", + "php": "^7.2 || ~8.0, <8.2", + "phpdocumentor/reflection-docblock": "^5.2", + "sebastian/comparator": "^3.0 || ^4.0", + "sebastian/recursion-context": "^3.0 || ^4.0" + }, + "require-dev": { + "phpspec/phpspec": "^6.0 || ^7.0", + "phpunit/phpunit": "^8.0 || ^9.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Prophecy\\": "src/Prophecy" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Konstantin Kudryashov", + "email": "ever.zet@gmail.com", + "homepage": "http://everzet.com" + }, + { + "name": "Marcello Duarte", + "email": "marcello.duarte@gmail.com" + } + ], + "description": "Highly opinionated mocking framework for PHP 5.3+", + "homepage": "https://github.com/phpspec/prophecy", + "keywords": [ + "Double", + "Dummy", + "fake", + "mock", + "spy", + "stub" + ], + "support": { + "issues": "https://github.com/phpspec/prophecy/issues", + "source": "https://github.com/phpspec/prophecy/tree/v1.15.0" + }, + "time": "2021-12-08T12:19:24+00:00" + }, + { + "name": "phpunit/php-code-coverage", + "version": "9.2.15", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "2e9da11878c4202f97915c1cb4bb1ca318a63f5f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/2e9da11878c4202f97915c1cb4bb1ca318a63f5f", + "reference": "2e9da11878c4202f97915c1cb4bb1ca318a63f5f", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-libxml": "*", + "ext-xmlwriter": "*", + "nikic/php-parser": "^4.13.0", + "php": ">=7.3", + "phpunit/php-file-iterator": "^3.0.3", + "phpunit/php-text-template": "^2.0.2", + "sebastian/code-unit-reverse-lookup": "^2.0.2", + "sebastian/complexity": "^2.0", + "sebastian/environment": "^5.1.2", + "sebastian/lines-of-code": "^1.0.3", + "sebastian/version": "^3.0.1", + "theseer/tokenizer": "^1.2.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "suggest": { + "ext-pcov": "*", + "ext-xdebug": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "9.2-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", + "homepage": "https://github.com/sebastianbergmann/php-code-coverage", + "keywords": [ + "coverage", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.15" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-03-07T09:28:20+00:00" + }, + { + "name": "phpunit/php-file-iterator", + "version": "3.0.6", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf", + "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "FilterIterator implementation that filters files based on a list of suffixes.", + "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", + "keywords": [ + "filesystem", + "iterator" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/3.0.6" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2021-12-02T12:48:52+00:00" + }, + { + "name": "phpunit/php-invoker", + "version": "3.1.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-invoker.git", + "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/5a10147d0aaf65b58940a0b72f71c9ac0423cc67", + "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "ext-pcntl": "*", + "phpunit/phpunit": "^9.3" + }, + "suggest": { + "ext-pcntl": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Invoke callables with a timeout", + "homepage": "https://github.com/sebastianbergmann/php-invoker/", + "keywords": [ + "process" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-invoker/issues", + "source": "https://github.com/sebastianbergmann/php-invoker/tree/3.1.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T05:58:55+00:00" + }, + { + "name": "phpunit/php-text-template", + "version": "2.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", + "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "keywords": [ + "template" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-text-template/issues", + "source": "https://github.com/sebastianbergmann/php-text-template/tree/2.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T05:33:50+00:00" + }, + { + "name": "phpunit/php-timer", + "version": "5.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", + "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", + "keywords": [ + "timer" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-timer/issues", + "source": "https://github.com/sebastianbergmann/php-timer/tree/5.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:16:10+00:00" + }, + { + "name": "phpunit/phpunit", + "version": "9.5.20", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "12bc8879fb65aef2138b26fc633cb1e3620cffba" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/12bc8879fb65aef2138b26fc633cb1e3620cffba", + "reference": "12bc8879fb65aef2138b26fc633cb1e3620cffba", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.3.1", + "ext-dom": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xml": "*", + "ext-xmlwriter": "*", + "myclabs/deep-copy": "^1.10.1", + "phar-io/manifest": "^2.0.3", + "phar-io/version": "^3.0.2", + "php": ">=7.3", + "phpspec/prophecy": "^1.12.1", + "phpunit/php-code-coverage": "^9.2.13", + "phpunit/php-file-iterator": "^3.0.5", + "phpunit/php-invoker": "^3.1.1", + "phpunit/php-text-template": "^2.0.3", + "phpunit/php-timer": "^5.0.2", + "sebastian/cli-parser": "^1.0.1", + "sebastian/code-unit": "^1.0.6", + "sebastian/comparator": "^4.0.5", + "sebastian/diff": "^4.0.3", + "sebastian/environment": "^5.1.3", + "sebastian/exporter": "^4.0.3", + "sebastian/global-state": "^5.0.1", + "sebastian/object-enumerator": "^4.0.3", + "sebastian/resource-operations": "^3.0.3", + "sebastian/type": "^3.0", + "sebastian/version": "^3.0.2" + }, + "require-dev": { + "ext-pdo": "*", + "phpspec/prophecy-phpunit": "^2.0.1" + }, + "suggest": { + "ext-soap": "*", + "ext-xdebug": "*" + }, + "bin": [ + "phpunit" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "9.5-dev" + } + }, + "autoload": { + "files": [ + "src/Framework/Assert/Functions.php" + ], + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "The PHP Unit Testing framework.", + "homepage": "https://phpunit.de/", + "keywords": [ + "phpunit", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/phpunit/issues", + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.20" + }, + "funding": [ + { + "url": "https://phpunit.de/sponsors.html", + "type": "custom" + }, + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-04-01T12:37:26+00:00" + }, + { + "name": "sebastian/cli-parser", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/cli-parser.git", + "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/442e7c7e687e42adc03470c7b668bc4b2402c0b2", + "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for parsing CLI options", + "homepage": "https://github.com/sebastianbergmann/cli-parser", + "support": { + "issues": "https://github.com/sebastianbergmann/cli-parser/issues", + "source": "https://github.com/sebastianbergmann/cli-parser/tree/1.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T06:08:49+00:00" + }, + { + "name": "sebastian/code-unit", + "version": "1.0.8", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit.git", + "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/1fc9f64c0927627ef78ba436c9b17d967e68e120", + "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Collection of value objects that represent the PHP code units", + "homepage": "https://github.com/sebastianbergmann/code-unit", + "support": { + "issues": "https://github.com/sebastianbergmann/code-unit/issues", + "source": "https://github.com/sebastianbergmann/code-unit/tree/1.0.8" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:08:54+00:00" + }, + { + "name": "sebastian/code-unit-reverse-lookup", + "version": "2.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", + "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", + "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Looks up which function or method a line of code belongs to", + "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", + "support": { + "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", + "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/2.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T05:30:19+00:00" + }, + { + "name": "sebastian/comparator", + "version": "4.0.6", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "55f4261989e546dc112258c7a75935a81a7ce382" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/55f4261989e546dc112258c7a75935a81a7ce382", + "reference": "55f4261989e546dc112258c7a75935a81a7ce382", + "shasum": "" + }, + "require": { + "php": ">=7.3", + "sebastian/diff": "^4.0", + "sebastian/exporter": "^4.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + } + ], + "description": "Provides the functionality to compare PHP values for equality", + "homepage": "https://github.com/sebastianbergmann/comparator", + "keywords": [ + "comparator", + "compare", + "equality" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/comparator/issues", + "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.6" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T15:49:45+00:00" + }, + { + "name": "sebastian/complexity", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/complexity.git", + "reference": "739b35e53379900cc9ac327b2147867b8b6efd88" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/739b35e53379900cc9ac327b2147867b8b6efd88", + "reference": "739b35e53379900cc9ac327b2147867b8b6efd88", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^4.7", + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for calculating the complexity of PHP code units", + "homepage": "https://github.com/sebastianbergmann/complexity", + "support": { + "issues": "https://github.com/sebastianbergmann/complexity/issues", + "source": "https://github.com/sebastianbergmann/complexity/tree/2.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T15:52:27+00:00" + }, + { + "name": "sebastian/diff", + "version": "4.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/3461e3fccc7cfdfc2720be910d3bd73c69be590d", + "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3", + "symfony/process": "^4.2 || ^5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" + } + ], + "description": "Diff implementation", + "homepage": "https://github.com/sebastianbergmann/diff", + "keywords": [ + "diff", + "udiff", + "unidiff", + "unified diff" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/diff/issues", + "source": "https://github.com/sebastianbergmann/diff/tree/4.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:10:38+00:00" + }, + { + "name": "sebastian/environment", + "version": "5.1.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "1b5dff7bb151a4db11d49d90e5408e4e938270f7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/1b5dff7bb151a4db11d49d90e5408e4e938270f7", + "reference": "1b5dff7bb151a4db11d49d90e5408e4e938270f7", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "suggest": { + "ext-posix": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides functionality to handle HHVM/PHP environments", + "homepage": "http://www.github.com/sebastianbergmann/environment", + "keywords": [ + "Xdebug", + "environment", + "hhvm" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/environment/issues", + "source": "https://github.com/sebastianbergmann/environment/tree/5.1.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-04-03T09:37:03+00:00" + }, + { + "name": "sebastian/exporter", + "version": "4.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "65e8b7db476c5dd267e65eea9cab77584d3cfff9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/65e8b7db476c5dd267e65eea9cab77584d3cfff9", + "reference": "65e8b7db476c5dd267e65eea9cab77584d3cfff9", + "shasum": "" + }, + "require": { + "php": ">=7.3", + "sebastian/recursion-context": "^4.0" + }, + "require-dev": { + "ext-mbstring": "*", + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Provides the functionality to export PHP variables for visualization", + "homepage": "https://www.github.com/sebastianbergmann/exporter", + "keywords": [ + "export", + "exporter" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/exporter/issues", + "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2021-11-11T14:18:36+00:00" + }, + { + "name": "sebastian/global-state", + "version": "5.0.5", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "0ca8db5a5fc9c8646244e629625ac486fa286bf2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/0ca8db5a5fc9c8646244e629625ac486fa286bf2", + "reference": "0ca8db5a5fc9c8646244e629625ac486fa286bf2", + "shasum": "" + }, + "require": { + "php": ">=7.3", + "sebastian/object-reflector": "^2.0", + "sebastian/recursion-context": "^4.0" + }, + "require-dev": { + "ext-dom": "*", + "phpunit/phpunit": "^9.3" + }, + "suggest": { + "ext-uopz": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Snapshotting of global state", + "homepage": "http://www.github.com/sebastianbergmann/global-state", + "keywords": [ + "global state" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/global-state/issues", + "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.5" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-02-14T08:28:10+00:00" + }, + { + "name": "sebastian/lines-of-code", + "version": "1.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/lines-of-code.git", + "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/c1c2e997aa3146983ed888ad08b15470a2e22ecc", + "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^4.6", + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for counting the lines of code in PHP source code", + "homepage": "https://github.com/sebastianbergmann/lines-of-code", + "support": { + "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", + "source": "https://github.com/sebastianbergmann/lines-of-code/tree/1.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-28T06:42:11+00:00" + }, + { + "name": "sebastian/object-enumerator", + "version": "4.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "5c9eeac41b290a3712d88851518825ad78f45c71" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/5c9eeac41b290a3712d88851518825ad78f45c71", + "reference": "5c9eeac41b290a3712d88851518825ad78f45c71", + "shasum": "" + }, + "require": { + "php": ">=7.3", + "sebastian/object-reflector": "^2.0", + "sebastian/recursion-context": "^4.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Traverses array structures and object graphs to enumerate all referenced objects", + "homepage": "https://github.com/sebastianbergmann/object-enumerator/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/4.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:12:34+00:00" + }, + { + "name": "sebastian/object-reflector", + "version": "2.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-reflector.git", + "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", + "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Allows reflection of object attributes, including inherited and non-public ones", + "homepage": "https://github.com/sebastianbergmann/object-reflector/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-reflector/issues", + "source": "https://github.com/sebastianbergmann/object-reflector/tree/2.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:14:26+00:00" + }, + { + "name": "sebastian/recursion-context", + "version": "4.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/cd9d8cf3c5804de4341c283ed787f099f5506172", + "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides functionality to recursively process PHP variables", + "homepage": "http://www.github.com/sebastianbergmann/recursion-context", + "support": { + "issues": "https://github.com/sebastianbergmann/recursion-context/issues", + "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:17:30+00:00" + }, + { + "name": "sebastian/resource-operations", + "version": "3.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/resource-operations.git", + "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8", + "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides a list of PHP built-in functions that operate on resources", + "homepage": "https://www.github.com/sebastianbergmann/resource-operations", + "support": { + "issues": "https://github.com/sebastianbergmann/resource-operations/issues", + "source": "https://github.com/sebastianbergmann/resource-operations/tree/3.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T06:45:17+00:00" + }, + { + "name": "sebastian/type", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/type.git", + "reference": "b233b84bc4465aff7b57cf1c4bc75c86d00d6dad" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/b233b84bc4465aff7b57cf1c4bc75c86d00d6dad", + "reference": "b233b84bc4465aff7b57cf1c4bc75c86d00d6dad", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Collection of value objects that represent the types of the PHP type system", + "homepage": "https://github.com/sebastianbergmann/type", + "support": { + "issues": "https://github.com/sebastianbergmann/type/issues", + "source": "https://github.com/sebastianbergmann/type/tree/3.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-03-15T09:54:48+00:00" + }, + { + "name": "sebastian/version", + "version": "3.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "c6c1022351a901512170118436c764e473f6de8c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c6c1022351a901512170118436c764e473f6de8c", + "reference": "c6c1022351a901512170118436c764e473f6de8c", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", + "support": { + "issues": "https://github.com/sebastianbergmann/version/issues", + "source": "https://github.com/sebastianbergmann/version/tree/3.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T06:39:44+00:00" + }, + { + "name": "symfony/browser-kit", + "version": "v6.1.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/browser-kit.git", + "reference": "b839cef6e6526bd2090efe92c218d8c7479a51e0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/browser-kit/zipball/b839cef6e6526bd2090efe92c218d8c7479a51e0", + "reference": "b839cef6e6526bd2090efe92c218d8c7479a51e0", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/dom-crawler": "^5.4|^6.0" + }, + "require-dev": { + "symfony/css-selector": "^5.4|^6.0", + "symfony/http-client": "^5.4|^6.0", + "symfony/mime": "^5.4|^6.0", + "symfony/process": "^5.4|^6.0" + }, + "suggest": { + "symfony/process": "" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\BrowserKit\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Simulates the behavior of a web browser, allowing you to make requests, click on links and submit forms programmatically", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/browser-kit/tree/v6.1.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-05-06T20:04:05+00:00" + }, + { + "name": "symfony/console", + "version": "v6.1.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/console.git", + "reference": "c9646197ef43b0e2ff44af61e7f0571526fd4170" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/console/zipball/c9646197ef43b0e2ff44af61e7f0571526fd4170", + "reference": "c9646197ef43b0e2ff44af61e7f0571526fd4170", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/polyfill-mbstring": "~1.0", + "symfony/service-contracts": "^1.1|^2|^3", + "symfony/string": "^5.4|^6.0" + }, + "conflict": { + "symfony/dependency-injection": "<5.4", + "symfony/dotenv": "<5.4", + "symfony/event-dispatcher": "<5.4", + "symfony/lock": "<5.4", + "symfony/process": "<5.4" + }, + "provide": { + "psr/log-implementation": "1.0|2.0|3.0" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^5.4|^6.0", + "symfony/dependency-injection": "^5.4|^6.0", + "symfony/event-dispatcher": "^5.4|^6.0", + "symfony/lock": "^5.4|^6.0", + "symfony/process": "^5.4|^6.0", + "symfony/var-dumper": "^5.4|^6.0" + }, + "suggest": { + "psr/log": "For using the console logger", + "symfony/event-dispatcher": "", + "symfony/lock": "", + "symfony/process": "" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Console\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Eases the creation of beautiful and testable command line interfaces", + "homepage": "https://symfony.com", + "keywords": [ + "cli", + "command line", + "console", + "terminal" + ], + "support": { + "source": "https://github.com/symfony/console/tree/v6.1.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-05-27T06:34:22+00:00" + }, + { + "name": "symfony/dom-crawler", + "version": "v6.1.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/dom-crawler.git", + "reference": "baacc99edd169bd8e06723f4c38150ef97feca0f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/dom-crawler/zipball/baacc99edd169bd8e06723f4c38150ef97feca0f", + "reference": "baacc99edd169bd8e06723f4c38150ef97feca0f", + "shasum": "" + }, + "require": { + "masterminds/html5": "^2.6", + "php": ">=8.1", + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-mbstring": "~1.0" + }, + "require-dev": { + "symfony/css-selector": "^5.4|^6.0" + }, + "suggest": { + "symfony/css-selector": "" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\DomCrawler\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Eases DOM navigation for HTML and XML documents", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/dom-crawler/tree/v6.1.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-05-04T14:48:14+00:00" + }, + { + "name": "symfony/options-resolver", + "version": "v6.1.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/options-resolver.git", + "reference": "a3016f5442e28386ded73c43a32a5b68586dd1c4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/options-resolver/zipball/a3016f5442e28386ded73c43a32a5b68586dd1c4", + "reference": "a3016f5442e28386ded73c43a32a5b68586dd1c4", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/deprecation-contracts": "^2.1|^3" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\OptionsResolver\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides an improved replacement for the array_replace PHP function", + "homepage": "https://symfony.com", + "keywords": [ + "config", + "configuration", + "options" + ], + "support": { + "source": "https://github.com/symfony/options-resolver/tree/v6.1.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-02-25T11:15:52+00:00" + }, + { + "name": "symfony/polyfill-intl-grapheme", + "version": "v1.26.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-grapheme.git", + "reference": "433d05519ce6990bf3530fba6957499d327395c2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/433d05519ce6990bf3530fba6957499d327395c2", + "reference": "433d05519ce6990bf3530fba6957499d327395c2", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.26-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Grapheme\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's grapheme_* functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "grapheme", + "intl", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.26.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-05-24T11:49:31+00:00" + }, + { + "name": "symfony/polyfill-intl-normalizer", + "version": "v1.26.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-normalizer.git", + "reference": "219aa369ceff116e673852dce47c3a41794c14bd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/219aa369ceff116e673852dce47c3a41794c14bd", + "reference": "219aa369ceff116e673852dce47c3a41794c14bd", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.26-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Normalizer\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's Normalizer class and related functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "intl", + "normalizer", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.26.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-05-24T11:49:31+00:00" + }, + { + "name": "symfony/polyfill-php80", + "version": "v1.26.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php80.git", + "reference": "cfa0ae98841b9e461207c13ab093d76b0fa7bace" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/cfa0ae98841b9e461207c13ab093d76b0fa7bace", + "reference": "cfa0ae98841b9e461207c13ab093d76b0fa7bace", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.26-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" } }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php80\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ + { + "name": "Ion Bazan", + "email": "ion.bazan@gmail.com" + }, { "name": "Nicolas Grekas", "email": "p@tchwork.com" @@ -2453,18 +6194,16 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Generic abstractions related to translation", + "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", "homepage": "https://symfony.com", "keywords": [ - "abstractions", - "contracts", - "decoupling", - "interfaces", - "interoperability", - "standards" + "compatibility", + "polyfill", + "portable", + "shim" ], "support": { - "source": "https://github.com/symfony/translation-contracts/tree/v2.5.0" + "source": "https://github.com/symfony/polyfill-php80/tree/v1.26.0" }, "funding": [ { @@ -2480,84 +6219,44 @@ "type": "tidelift" } ], - "time": "2021-08-17T14:20:01+00:00" + "time": "2022-05-10T07:21:04+00:00" }, { - "name": "symfony/validator", - "version": "v5.4.6", + "name": "symfony/polyfill-php81", + "version": "v1.26.0", "source": { "type": "git", - "url": "https://github.com/symfony/validator.git", - "reference": "ab461eab209e3be062ba9c609d37b37e8364dbe4" + "url": "https://github.com/symfony/polyfill-php81.git", + "reference": "13f6d1271c663dc5ae9fb843a8f16521db7687a1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/validator/zipball/ab461eab209e3be062ba9c609d37b37e8364dbe4", - "reference": "ab461eab209e3be062ba9c609d37b37e8364dbe4", + "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/13f6d1271c663dc5ae9fb843a8f16521db7687a1", + "reference": "13f6d1271c663dc5ae9fb843a8f16521db7687a1", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1|^3", - "symfony/polyfill-ctype": "~1.8", - "symfony/polyfill-mbstring": "~1.0", - "symfony/polyfill-php73": "~1.0", - "symfony/polyfill-php80": "^1.16", - "symfony/polyfill-php81": "^1.22", - "symfony/translation-contracts": "^1.1|^2|^3" - }, - "conflict": { - "doctrine/annotations": "<1.13", - "doctrine/cache": "<1.11", - "doctrine/lexer": "<1.1", - "phpunit/phpunit": "<5.4.3", - "symfony/dependency-injection": "<4.4", - "symfony/expression-language": "<5.1", - "symfony/http-kernel": "<4.4", - "symfony/intl": "<4.4", - "symfony/property-info": "<5.3", - "symfony/translation": "<4.4", - "symfony/yaml": "<4.4" - }, - "require-dev": { - "doctrine/annotations": "^1.13", - "doctrine/cache": "^1.11|^2.0", - "egulias/email-validator": "^2.1.10|^3", - "symfony/cache": "^4.4|^5.0|^6.0", - "symfony/config": "^4.4|^5.0|^6.0", - "symfony/console": "^4.4|^5.0|^6.0", - "symfony/dependency-injection": "^4.4|^5.0|^6.0", - "symfony/expression-language": "^5.1|^6.0", - "symfony/finder": "^4.4|^5.0|^6.0", - "symfony/http-client": "^4.4|^5.0|^6.0", - "symfony/http-foundation": "^4.4|^5.0|^6.0", - "symfony/http-kernel": "^4.4|^5.0|^6.0", - "symfony/intl": "^4.4|^5.0|^6.0", - "symfony/mime": "^4.4|^5.0|^6.0", - "symfony/property-access": "^4.4|^5.0|^6.0", - "symfony/property-info": "^5.3|^6.0", - "symfony/translation": "^4.4|^5.0|^6.0", - "symfony/yaml": "^4.4|^5.0|^6.0" - }, - "suggest": { - "egulias/email-validator": "Strict (RFC compliant) email validation", - "psr/cache-implementation": "For using the mapping cache.", - "symfony/config": "", - "symfony/expression-language": "For using the Expression validator and the ExpressionLanguageSyntax constraints", - "symfony/http-foundation": "", - "symfony/intl": "", - "symfony/property-access": "For accessing properties within comparison constraints", - "symfony/property-info": "To automatically add NotNull and Type constraints", - "symfony/translation": "For translating validation errors.", - "symfony/yaml": "" + "php": ">=7.1" }, "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.26-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, "autoload": { + "files": [ + "bootstrap.php" + ], "psr-4": { - "Symfony\\Component\\Validator\\": "" + "Symfony\\Polyfill\\Php81\\": "" }, - "exclude-from-classmap": [ - "/Tests/" + "classmap": [ + "Resources/stubs" ] }, "notification-url": "https://packagist.org/downloads/", @@ -2566,18 +6265,24 @@ ], "authors": [ { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" + "name": "Nicolas Grekas", + "email": "p@tchwork.com" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], - "description": "Provides tools to validate values", + "description": "Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions", "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], "support": { - "source": "https://github.com/symfony/validator/tree/v5.4.6" + "source": "https://github.com/symfony/polyfill-php81/tree/v1.26.0" }, "funding": [ { @@ -2593,53 +6298,29 @@ "type": "tidelift" } ], - "time": "2022-03-02T12:42:23+00:00" + "time": "2022-05-24T11:49:31+00:00" }, { - "name": "symfony/var-dumper", - "version": "v5.4.6", + "name": "symfony/process", + "version": "v6.1.0", "source": { "type": "git", - "url": "https://github.com/symfony/var-dumper.git", - "reference": "294e9da6e2e0dd404e983daa5aa74253d92c05d0" + "url": "https://github.com/symfony/process.git", + "reference": "318718453c2be58266f1a9e74063d13cb8dd4165" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/294e9da6e2e0dd404e983daa5aa74253d92c05d0", - "reference": "294e9da6e2e0dd404e983daa5aa74253d92c05d0", + "url": "https://api.github.com/repos/symfony/process/zipball/318718453c2be58266f1a9e74063d13cb8dd4165", + "reference": "318718453c2be58266f1a9e74063d13cb8dd4165", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/polyfill-mbstring": "~1.0", - "symfony/polyfill-php80": "^1.16" - }, - "conflict": { - "phpunit/phpunit": "<5.4.3", - "symfony/console": "<4.4" + "php": ">=8.1" }, - "require-dev": { - "ext-iconv": "*", - "symfony/console": "^4.4|^5.0|^6.0", - "symfony/process": "^4.4|^5.0|^6.0", - "symfony/uid": "^5.1|^6.0", - "twig/twig": "^2.13|^3.0.4" - }, - "suggest": { - "ext-iconv": "To convert non-UTF-8 strings to UTF-8 (or symfony/polyfill-iconv in case ext-iconv cannot be used).", - "ext-intl": "To show region name in time zone dump", - "symfony/console": "To use the ServerDumpCommand and/or the bin/var-dump-server script" - }, - "bin": [ - "Resources/bin/var-dump-server" - ], "type": "library", "autoload": { - "files": [ - "Resources/functions/dump.php" - ], "psr-4": { - "Symfony\\Component\\VarDumper\\": "" + "Symfony\\Component\\Process\\": "" }, "exclude-from-classmap": [ "/Tests/" @@ -2651,22 +6332,18 @@ ], "authors": [ { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" + "name": "Fabien Potencier", + "email": "fabien@symfony.com" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], - "description": "Provides mechanisms for walking through any arbitrary PHP variable", + "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", - "keywords": [ - "debug", - "dump" - ], "support": { - "source": "https://github.com/symfony/var-dumper/tree/v5.4.6" + "source": "https://github.com/symfony/process/tree/v6.1.0" }, "funding": [ { @@ -2682,33 +6359,30 @@ "type": "tidelift" } ], - "time": "2022-03-02T12:42:23+00:00" + "time": "2022-05-11T12:12:29+00:00" }, { - "name": "symfony/var-exporter", - "version": "v5.4.6", + "name": "symfony/stopwatch", + "version": "v6.1.0", "source": { "type": "git", - "url": "https://github.com/symfony/var-exporter.git", - "reference": "49e2355fe6f59ea30c18ebb68edf13b7e20582e5" + "url": "https://github.com/symfony/stopwatch.git", + "reference": "77dedae82ce2a26e2e9b481855473fc3b3e4e54d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-exporter/zipball/49e2355fe6f59ea30c18ebb68edf13b7e20582e5", - "reference": "49e2355fe6f59ea30c18ebb68edf13b7e20582e5", + "url": "https://api.github.com/repos/symfony/stopwatch/zipball/77dedae82ce2a26e2e9b481855473fc3b3e4e54d", + "reference": "77dedae82ce2a26e2e9b481855473fc3b3e4e54d", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/polyfill-php80": "^1.16" - }, - "require-dev": { - "symfony/var-dumper": "^4.4.9|^5.0.9|^6.0" + "php": ">=8.1", + "symfony/service-contracts": "^1|^2|^3" }, "type": "library", "autoload": { "psr-4": { - "Symfony\\Component\\VarExporter\\": "" + "Symfony\\Component\\Stopwatch\\": "" }, "exclude-from-classmap": [ "/Tests/" @@ -2720,26 +6394,18 @@ ], "authors": [ { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" + "name": "Fabien Potencier", + "email": "fabien@symfony.com" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], - "description": "Allows exporting any serializable PHP data structure to plain PHP code", + "description": "Provides a way to profile code", "homepage": "https://symfony.com", - "keywords": [ - "clone", - "construct", - "export", - "hydrate", - "instantiate", - "serialize" - ], "support": { - "source": "https://github.com/symfony/var-exporter/tree/v5.4.6" + "source": "https://github.com/symfony/stopwatch/tree/v6.1.0" }, "funding": [ { @@ -2755,42 +6421,45 @@ "type": "tidelift" } ], - "time": "2022-03-02T12:42:23+00:00" - } - ], - "packages-dev": [ + "time": "2022-02-25T11:15:52+00:00" + }, { - "name": "symfony/browser-kit", - "version": "v5.4.3", + "name": "symfony/string", + "version": "v6.1.0", "source": { "type": "git", - "url": "https://github.com/symfony/browser-kit.git", - "reference": "18e73179c6a33d520de1b644941eba108dd811ad" + "url": "https://github.com/symfony/string.git", + "reference": "d3edc75baf9f1d4f94879764dda2e1ac33499529" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/browser-kit/zipball/18e73179c6a33d520de1b644941eba108dd811ad", - "reference": "18e73179c6a33d520de1b644941eba108dd811ad", + "url": "https://api.github.com/repos/symfony/string/zipball/d3edc75baf9f1d4f94879764dda2e1ac33499529", + "reference": "d3edc75baf9f1d4f94879764dda2e1ac33499529", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/dom-crawler": "^4.4|^5.0|^6.0", - "symfony/polyfill-php80": "^1.16" + "php": ">=8.1", + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-intl-grapheme": "~1.0", + "symfony/polyfill-intl-normalizer": "~1.0", + "symfony/polyfill-mbstring": "~1.0" }, - "require-dev": { - "symfony/css-selector": "^4.4|^5.0|^6.0", - "symfony/http-client": "^4.4|^5.0|^6.0", - "symfony/mime": "^4.4|^5.0|^6.0", - "symfony/process": "^4.4|^5.0|^6.0" + "conflict": { + "symfony/translation-contracts": "<2.0" }, - "suggest": { - "symfony/process": "" + "require-dev": { + "symfony/error-handler": "^5.4|^6.0", + "symfony/http-client": "^5.4|^6.0", + "symfony/translation-contracts": "^2.0|^3.0", + "symfony/var-exporter": "^5.4|^6.0" }, "type": "library", "autoload": { + "files": [ + "Resources/functions.php" + ], "psr-4": { - "Symfony\\Component\\BrowserKit\\": "" + "Symfony\\Component\\String\\": "" }, "exclude-from-classmap": [ "/Tests/" @@ -2802,18 +6471,26 @@ ], "authors": [ { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" + "name": "Nicolas Grekas", + "email": "p@tchwork.com" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], - "description": "Simulates the behavior of a web browser, allowing you to make requests, click on links and submit forms programmatically", + "description": "Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way", "homepage": "https://symfony.com", + "keywords": [ + "grapheme", + "i18n", + "string", + "unicode", + "utf-8", + "utf8" + ], "support": { - "source": "https://github.com/symfony/browser-kit/tree/v5.4.3" + "source": "https://github.com/symfony/string/tree/v6.1.0" }, "funding": [ { @@ -2829,43 +6506,42 @@ "type": "tidelift" } ], - "time": "2022-01-02T09:53:40+00:00" + "time": "2022-04-22T08:18:23+00:00" }, { - "name": "symfony/dom-crawler", - "version": "v5.4.6", + "name": "symfony/yaml", + "version": "v6.1.0", "source": { "type": "git", - "url": "https://github.com/symfony/dom-crawler.git", - "reference": "c0bda97480d96337bd3866026159a8b358665457" + "url": "https://github.com/symfony/yaml.git", + "reference": "84ce4f9d2d68f306f971a39d949d8f4b5550dba2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dom-crawler/zipball/c0bda97480d96337bd3866026159a8b358665457", - "reference": "c0bda97480d96337bd3866026159a8b358665457", + "url": "https://api.github.com/repos/symfony/yaml/zipball/84ce4f9d2d68f306f971a39d949d8f4b5550dba2", + "reference": "84ce4f9d2d68f306f971a39d949d8f4b5550dba2", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1|^3", - "symfony/polyfill-ctype": "~1.8", - "symfony/polyfill-mbstring": "~1.0", - "symfony/polyfill-php80": "^1.16" + "php": ">=8.1", + "symfony/polyfill-ctype": "^1.8" }, "conflict": { - "masterminds/html5": "<2.6" + "symfony/console": "<5.4" }, "require-dev": { - "masterminds/html5": "^2.6", - "symfony/css-selector": "^4.4|^5.0|^6.0" + "symfony/console": "^5.4|^6.0" }, "suggest": { - "symfony/css-selector": "" + "symfony/console": "For validating YAML files using the lint command" }, + "bin": [ + "Resources/bin/yaml-lint" + ], "type": "library", "autoload": { "psr-4": { - "Symfony\\Component\\DomCrawler\\": "" + "Symfony\\Component\\Yaml\\": "" }, "exclude-from-classmap": [ "/Tests/" @@ -2885,10 +6561,10 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Eases DOM navigation for HTML and XML documents", + "description": "Loads and dumps YAML files", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/dom-crawler/tree/v5.4.6" + "source": "https://github.com/symfony/yaml/tree/v6.1.0" }, "funding": [ { @@ -2904,7 +6580,115 @@ "type": "tidelift" } ], - "time": "2022-03-02T12:42:23+00:00" + "time": "2022-04-15T14:25:02+00:00" + }, + { + "name": "theseer/tokenizer", + "version": "1.2.1", + "source": { + "type": "git", + "url": "https://github.com/theseer/tokenizer.git", + "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/34a41e998c2183e22995f158c581e7b5e755ab9e", + "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": "^7.2 || ^8.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + } + ], + "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", + "support": { + "issues": "https://github.com/theseer/tokenizer/issues", + "source": "https://github.com/theseer/tokenizer/tree/1.2.1" + }, + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2021-07-28T10:34:58+00:00" + }, + { + "name": "webmozart/assert", + "version": "1.10.0", + "source": { + "type": "git", + "url": "https://github.com/webmozarts/assert.git", + "reference": "6964c76c7804814a842473e0c8fd15bab0f18e25" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/webmozarts/assert/zipball/6964c76c7804814a842473e0c8fd15bab0f18e25", + "reference": "6964c76c7804814a842473e0c8fd15bab0f18e25", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0", + "symfony/polyfill-ctype": "^1.8" + }, + "conflict": { + "phpstan/phpstan": "<0.12.20", + "vimeo/psalm": "<4.6.1 || 4.6.2" + }, + "require-dev": { + "phpunit/phpunit": "^8.5.13" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.10-dev" + } + }, + "autoload": { + "psr-4": { + "Webmozart\\Assert\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Assertions to validate method input/output with nice error messages.", + "keywords": [ + "assert", + "check", + "validate" + ], + "support": { + "issues": "https://github.com/webmozarts/assert/issues", + "source": "https://github.com/webmozarts/assert/tree/1.10.0" + }, + "time": "2021-03-09T10:59:23+00:00" } ], "aliases": [], @@ -2913,7 +6697,7 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": "^7.4|^8.0", + "php": ">=7.4.0|>=8.0.2", "ext-curl": "*", "ext-json": "*", "ext-mbstring": "*" diff --git a/openapitools.json b/openapitools.json index 9cbc6d5d..92036ec7 100755 --- a/openapitools.json +++ b/openapitools.json @@ -2,6 +2,6 @@ "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", "spaces": 2, "generator-cli": { - "version": "5.4.0" + "version": "6.0.0" } }