Emitter¶
-
interface
OC\Hooks\Emitter¶ - Class Emitterinterface for all classes that are able to emit events
Implemented by: OC\User\SessionOC\Files\Config\MountProviderCollectionOC\Hooks\BasicEmitterSource: lib/private/Hooks/Emitter.php#36
Methods¶
-
public
OC\Hooks\Emitter::listen($scope, $method, $callback)¶ Source: Parameters: - $scope (string)
- $method (string)
- $callback (callable)
Returns: void
Deprecated: 18.0.0 use \OCP\EventDispatcher\IEventDispatcher::addListener
-
public
OC\Hooks\Emitter::removeListener($scope=null, $method=null, $callback=null)¶ Source: Parameters: - $scope (string) optional
- $method (string) optional
- $callback (callable) optional
Returns: void
Deprecated: 18.0.0 use \OCP\EventDispatcher\IEventDispatcher::removeListener