2015-02-17 10:49:14 -05:00
|
|
|
<?php
|
2024-05-23 03:26:56 -04:00
|
|
|
|
2015-02-17 10:49:14 -05:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
2015-02-17 10:49:14 -05:00
|
|
|
*/
|
|
|
|
|
namespace OCP\Command;
|
|
|
|
|
|
2015-04-16 11:00:08 -04:00
|
|
|
/**
|
|
|
|
|
* Interface IBus
|
|
|
|
|
*
|
|
|
|
|
* @since 8.1.0
|
|
|
|
|
*/
|
2015-02-17 10:49:14 -05:00
|
|
|
interface IBus {
|
|
|
|
|
/**
|
|
|
|
|
* Schedule a command to be fired
|
|
|
|
|
*
|
|
|
|
|
* @param \OCP\Command\ICommand | callable $command
|
2015-04-16 11:00:08 -04:00
|
|
|
* @since 8.1.0
|
2015-02-17 10:49:14 -05:00
|
|
|
*/
|
|
|
|
|
public function push($command);
|
2015-02-23 09:25:59 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Require all commands using a trait to be run synchronous
|
|
|
|
|
*
|
|
|
|
|
* @param string $trait
|
2015-04-16 11:00:08 -04:00
|
|
|
* @since 8.1.0
|
2015-02-23 09:25:59 -05:00
|
|
|
*/
|
|
|
|
|
public function requireSync($trait);
|
2015-02-17 10:49:14 -05:00
|
|
|
}
|