apps/activity/lib/AppInfo/Application.php
/**
	 * Register the hooks for filesystem operations
	 */
Register the hooks for filesystem operations
Register the hooks for filesystem operations
public function registerFilesActivity() {
		Util::connectHook('OC_Filesystem', 'post_create', FilesHooksStatic::class, 'fileCreate');
		Util::connectHook('OC_Filesystem', 'post_update', FilesHooksStatic::class, 'fileUpdate');
		Util::connectHook('OC_Filesystem', 'delete', FilesHooksStatic::class, 'fileDelete');
		Util::connectHook('OC_Filesystem', 'rename', FilesHooksStatic::class, 'fileMove');
		Util::connectHook('OC_Filesystem', 'post_rename', FilesHooksStatic::class, 'fileMovePost');
		Util::connectHook('\OCA\Files_Trashbin\Trashbin', 'post_restore', FilesHooksStatic::class, 'fileRestore');
		Util::connectHook('OCP\Share', 'post_shared', FilesHooksStatic::class, 'share');
		$eventDispatcher = $this->getContainer()->getServer()->getEventDispatcher();
		$eventDispatcher->addListener('OCP\Share::preUnshare', [FilesHooksStatic::class, 'unShare']);
	}
public function registerFilesActivity ( ) { Util :: connectHook ( 'OC_Filesystem' , 'post_create' , FilesHooksStatic :: class , 'fileCreate' ) ; Util :: connectHook ( 'OC_Filesystem' , 'post_update' , FilesHooksStatic :: class , 'fileUpdate' ) ; Util :: connectHook ( 'OC_Filesystem' , 'delete' , FilesHooksStatic :: class , 'fileDelete' ) ; Util :: connectHook ( 'OC_Filesystem' , 'rename' , FilesHooksStatic :: class , 'fileMove' ) ; Util :: connectHook ( 'OC_Filesystem' , 'post_rename' , FilesHooksStatic :: class , 'fileMovePost' ) ; Util :: connectHook ( '\OCA\Files_Trashbin\Trashbin' , 'post_restore' , FilesHooksStatic :: class , 'fileRestore' ) ; Util :: connectHook ( 'OCP\Share' , 'post_shared' , FilesHooksStatic :: class , 'share' ) ; $ eventDispatcher = $ this -> getContainer ( ) -> getServer ( ) -> getEventDispatcher ( ) ; $ eventDispatcher -> addListener ( 'OCP\Share::preUnshare' , [ FilesHooksStatic :: class , 'unShare' ] ) ; }
Register the hooks for filesystem operations
Register the hooks for filesystem operations
// All other events from other apps have to be send via the Consumer