Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/private/Hooks/BasicEmitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@

namespace OC\Hooks;

/**
* @deprecated 18.0.0 use \OCP\EventDispatcher\IEventDispatcher
*/
abstract class BasicEmitter implements Emitter {
use EmitterTrait;
}
1 change: 1 addition & 0 deletions lib/private/Hooks/Emitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
* 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 {
/**
Expand Down
3 changes: 3 additions & 0 deletions lib/private/Hooks/PublicEmitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions lib/private/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -1848,6 +1848,7 @@ public function getCapabilitiesManager() {
*
* @return EventDispatcherInterface
* @since 8.2.0
* @deprecated 18.0.0 use \OCP\EventDispatcher\IEventDispatcher
*/
public function getEventDispatcher() {
return $this->query(\OC\EventDispatcher\SymfonyAdapter::class);
Expand Down
6 changes: 5 additions & 1 deletion lib/private/legacy/hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down