UserRateLimit.php 463 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 want to limit the times a logged-in
  11. * user can call the endpoint in a given time period.
  12. *
  13. * @since 27.0.0
  14. */
  15. #[Attribute(Attribute::TARGET_METHOD)]
  16. class UserRateLimit extends ARateLimit {
  17. }