2013-05-27 14:20:06 -04:00
|
|
|
<?php
|
|
|
|
|
/**
|
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
|
2013-05-27 14:20:06 -04:00
|
|
|
*/
|
|
|
|
|
namespace OC\Hooks;
|
|
|
|
|
|
2019-12-11 04:04:36 -05:00
|
|
|
/**
|
|
|
|
|
* @deprecated 18.0.0 use events and the \OCP\EventDispatcher\IEventDispatcher service
|
|
|
|
|
*/
|
2013-05-27 14:20:06 -04:00
|
|
|
class PublicEmitter extends BasicEmitter {
|
|
|
|
|
/**
|
|
|
|
|
* @param string $scope
|
|
|
|
|
* @param string $method
|
|
|
|
|
* @param array $arguments optional
|
2020-10-28 17:27:27 -04:00
|
|
|
* @deprecated 18.0.0 use \OCP\EventDispatcher\IEventDispatcher::dispatchTyped
|
2017-07-19 05:08:43 -04:00
|
|
|
*
|
|
|
|
|
* @suppress PhanAccessMethodProtected
|
2013-05-27 14:20:06 -04:00
|
|
|
*/
|
2020-03-26 04:30:18 -04:00
|
|
|
public function emit($scope, $method, array $arguments = []) {
|
2013-05-27 14:20:06 -04:00
|
|
|
parent::emit($scope, $method, $arguments);
|
|
|
|
|
}
|
|
|
|
|
}
|