diff --git a/lib/private/Hooks/BasicEmitter.php b/lib/private/Hooks/BasicEmitter.php index 529f3724d32f3f8bf6fcbb5591f7680cd0d6b92e..37c38b4be1d98bedb0aa8ee185833d0463268314 100644 --- a/lib/private/Hooks/BasicEmitter.php +++ b/lib/private/Hooks/BasicEmitter.php @@ -23,6 +23,9 @@ namespace OC\Hooks; +/** + * @deprecated 18.0.0 use \OCP\EventDispatcher\IEventDispatcher + */ abstract class BasicEmitter implements Emitter { use EmitterTrait; } diff --git a/lib/private/Hooks/Emitter.php b/lib/private/Hooks/Emitter.php index fbe1a8eaf1ffac0216d9c491660ba94f2a5173bd..65c99f2b94d238ba73db7115ae23fd0db2fce3b5 100644 --- a/lib/private/Hooks/Emitter.php +++ b/lib/private/Hooks/Emitter.php @@ -30,6 +30,7 @@ namespace OC\Hooks; * interface for all classes that are able to emit events * * @package OC\Hooks + * @deprecated 18.0.0 use events and the \OCP\EventDispatcher\IEventDispatcher service */ interface Emitter { /** diff --git a/lib/private/Hooks/PublicEmitter.php b/lib/private/Hooks/PublicEmitter.php index 4101fd1234955df57fe5071c52a384774d1f9dc3..abb4dedd6676a01fa405bff3033a863809e3c3e2 100644 --- a/lib/private/Hooks/PublicEmitter.php +++ b/lib/private/Hooks/PublicEmitter.php @@ -24,6 +24,9 @@ namespace OC\Hooks; +/** + * @deprecated 18.0.0 use events and the \OCP\EventDispatcher\IEventDispatcher service + */ class PublicEmitter extends BasicEmitter { /** * @param string $scope diff --git a/lib/private/Server.php b/lib/private/Server.php index dcac72369e4d80882e42090de1ffe95f18d74244..7fa01358afe3a79a5c0f1e4deeead205a94e522d 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -1848,6 +1848,7 @@ class Server extends ServerContainer implements IServerContainer { * * @return EventDispatcherInterface * @since 8.2.0 + * @deprecated 18.0.0 use \OCP\EventDispatcher\IEventDispatcher */ public function getEventDispatcher() { return $this->query(\OC\EventDispatcher\SymfonyAdapter::class); diff --git a/lib/private/legacy/hook.php b/lib/private/legacy/hook.php index 0d413a11de7d020da93cbef58c89d93c7a57173f..78060d76e0d0c4289fccf8e52290f8fd17580a11 100644 --- a/lib/private/legacy/hook.php +++ b/lib/private/legacy/hook.php @@ -28,7 +28,11 @@ * along with this program. If not, see <http://www.gnu.org/licenses/> * */ -class OC_Hook{ + +/** + * @deprecated 18.0.0 use events and the \OCP\EventDispatcher\IEventDispatcher service + */ +class OC_Hook { public static $thrownExceptions = []; static private $registered = array();