2015-02-17 18:49:14 +03:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Copyright (c) 2015 Robin Appelman <icewind@owncloud.com>
|
|
|
|
* This file is licensed under the Affero General Public License version 3 or
|
|
|
|
* later.
|
|
|
|
* See the COPYING-README file.
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace OCP\Command;
|
|
|
|
|
|
|
|
interface IBus {
|
|
|
|
/**
|
|
|
|
* Schedule a command to be fired
|
|
|
|
*
|
|
|
|
* @param \OCP\Command\ICommand | callable $command
|
|
|
|
*/
|
|
|
|
public function push($command);
|
2015-02-23 17:25:59 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Require all commands using a trait to be run synchronous
|
|
|
|
*
|
|
|
|
* @param string $trait
|
|
|
|
*/
|
|
|
|
public function requireSync($trait);
|
2015-02-17 18:49:14 +03:00
|
|
|
}
|