IBus.php 579 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. namespace OCP\Command;
  8. /**
  9. * Interface IBus
  10. *
  11. * @since 8.1.0
  12. */
  13. interface IBus {
  14. /**
  15. * Schedule a command to be fired
  16. *
  17. * @param \OCP\Command\ICommand | callable $command
  18. * @since 8.1.0
  19. */
  20. public function push($command);
  21. /**
  22. * Require all commands using a trait to be run synchronous
  23. *
  24. * @param string $trait
  25. * @since 8.1.0
  26. */
  27. public function requireSync($trait);
  28. }