Skip to content
Snippets Groups Projects
Unverified Commit b9de133e authored by Morris Jobke's avatar Morris Jobke Committed by GitHub
Browse files

Merge pull request #23771 from nextcloud/techdebt/noid/remove-deprecated-inotifystorage-listen

Remove deprecated INotifyStorage::listen
parents 1d8b954a 32e4a61c
No related branches found
No related tags found
No related merge requests found
...@@ -37,24 +37,6 @@ interface INotifyStorage { ...@@ -37,24 +37,6 @@ interface INotifyStorage {
public const NOTIFY_MODIFIED = 3; public const NOTIFY_MODIFIED = 3;
public const NOTIFY_RENAMED = 4; public const NOTIFY_RENAMED = 4;
/**
* Start listening for update notifications
*
* The provided callback will be called for every incoming notification with the following parameters
* - int $type the type of update, one of the INotifyStorage::NOTIFY_* constants
* - string $path the path of the update
* - string $renameTarget the target of the rename operation, only provided for rename updates
*
* Note that this call is blocking and will not exit on it's own, to stop listening for notifications return `false` from the callback
*
* @param string $path
* @param callable $callback
*
* @since 9.1.0
* @deprecated 12.0.0 use INotifyStorage::notify()->listen() instead
*/
public function listen($path, callable $callback);
/** /**
* Start the notification handler for this storage * Start the notification handler for this storage
* *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment