diff options
Diffstat (limited to 'lib/public/Command/IBus.php')
-rw-r--r-- | lib/public/Command/IBus.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/public/Command/IBus.php b/lib/public/Command/IBus.php new file mode 100644 index 00000000000..619b0c42109 --- /dev/null +++ b/lib/public/Command/IBus.php @@ -0,0 +1,31 @@ +<?php + +/** + * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors + * SPDX-FileCopyrightText: 2016 ownCloud, Inc. + * SPDX-License-Identifier: AGPL-3.0-only + */ +namespace OCP\Command; + +/** + * Interface IBus + * + * @since 8.1.0 + */ +interface IBus { + /** + * Schedule a command to be fired + * + * @param \OCP\Command\ICommand | callable $command + * @since 8.1.0 + */ + public function push($command); + + /** + * Require all commands using a trait to be run synchronous + * + * @param string $trait + * @since 8.1.0 + */ + public function requireSync($trait); +} |