diff options
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/command/ibus.php | 18 | ||||
-rw-r--r-- | lib/public/command/icommand.php | 16 | ||||
-rw-r--r-- | lib/public/iservercontainer.php | 5 |
3 files changed, 39 insertions, 0 deletions
diff --git a/lib/public/command/ibus.php b/lib/public/command/ibus.php new file mode 100644 index 00000000000..707f8fd072d --- /dev/null +++ b/lib/public/command/ibus.php @@ -0,0 +1,18 @@ +<?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); +} diff --git a/lib/public/command/icommand.php b/lib/public/command/icommand.php new file mode 100644 index 00000000000..6de61258a41 --- /dev/null +++ b/lib/public/command/icommand.php @@ -0,0 +1,16 @@ +<?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 ICommand { + /** + * Run the command + */ + public function handle(); +} diff --git a/lib/public/iservercontainer.php b/lib/public/iservercontainer.php index f2806529a4c..3b73426d9fb 100644 --- a/lib/public/iservercontainer.php +++ b/lib/public/iservercontainer.php @@ -317,4 +317,9 @@ interface IServerContainer { * @return \bantu\IniGetWrapper\IniGetWrapper */ function getIniWrapper(); + + /** + * @return \OCP\Command\IBus + */ + function getAsyncCommandBus(); } |