IgnoreOpenAPI.php 563 B

12345678910111213141516171819202122
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\AppFramework\Http\Attribute;
  8. use Attribute;
  9. /**
  10. * Attribute for controller methods that should be ignored when generating OpenAPI documentation
  11. *
  12. * @since 28.0.0
  13. * @deprecated 28.0.0 Use {@see OpenAPI} with {@see OpenAPI::SCOPE_IGNORE} instead: `#[OpenAPI(scope: OpenAPI::SCOPE_IGNORE)]`
  14. */
  15. #[Attribute(Attribute::TARGET_METHOD | Attribute::TARGET_CLASS)]
  16. class IgnoreOpenAPI {
  17. }