diff options
author | Louis Chemineau <louis@chmn.me> | 2024-03-14 10:16:43 +0100 |
---|---|---|
committer | Louis <louis@chmn.me> | 2024-03-21 12:30:01 +0100 |
commit | 673a85184872c10be77095d8011bbee47c997e70 (patch) | |
tree | 90a947355c563b78400c20a741389d10b48e9d86 /apps | |
parent | 67b9b3485763d4ff299df699dad83b68bdca6073 (diff) | |
download | nextcloud-server-673a85184872c10be77095d8011bbee47c997e70.tar.gz nextcloud-server-673a85184872c10be77095d8011bbee47c997e70.zip |
refactor(files_versions): Rename MetadataFileEvents to VersionAuthorListener
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_versions/composer/composer/autoload_classmap.php | 2 | ||||
-rw-r--r-- | apps/files_versions/composer/composer/autoload_static.php | 2 | ||||
-rw-r--r-- | apps/files_versions/lib/AppInfo/Application.php | 6 | ||||
-rw-r--r-- | apps/files_versions/lib/Listener/VersionAuthorListener.php (renamed from apps/files_versions/lib/Listener/MetadataFileEvents.php) | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/apps/files_versions/composer/composer/autoload_classmap.php b/apps/files_versions/composer/composer/autoload_classmap.php index 49ef00a733b..c7fa952de27 100644 --- a/apps/files_versions/composer/composer/autoload_classmap.php +++ b/apps/files_versions/composer/composer/autoload_classmap.php @@ -21,7 +21,7 @@ return array( 'OCA\\Files_Versions\\Listener\\FileEventsListener' => $baseDir . '/../lib/Listener/FileEventsListener.php', 'OCA\\Files_Versions\\Listener\\LoadAdditionalListener' => $baseDir . '/../lib/Listener/LoadAdditionalListener.php', 'OCA\\Files_Versions\\Listener\\LoadSidebarListener' => $baseDir . '/../lib/Listener/LoadSidebarListener.php', - 'OCA\\Files_Versions\\Listener\\MetadataFileEvents' => $baseDir . '/../lib/Listener/MetadataFileEvents.php', + 'OCA\\Files_Versions\\Listener\\VersionAuthorListener' => $baseDir . '/../lib/Listener/VersionAuthorListener.php', 'OCA\\Files_Versions\\Migration\\Version1020Date20221114144058' => $baseDir . '/../lib/Migration/Version1020Date20221114144058.php', 'OCA\\Files_Versions\\Sabre\\Plugin' => $baseDir . '/../lib/Sabre/Plugin.php', 'OCA\\Files_Versions\\Sabre\\RestoreFolder' => $baseDir . '/../lib/Sabre/RestoreFolder.php', diff --git a/apps/files_versions/composer/composer/autoload_static.php b/apps/files_versions/composer/composer/autoload_static.php index 78175ea1fba..988b8e27cbe 100644 --- a/apps/files_versions/composer/composer/autoload_static.php +++ b/apps/files_versions/composer/composer/autoload_static.php @@ -36,7 +36,7 @@ class ComposerStaticInitFiles_Versions 'OCA\\Files_Versions\\Listener\\FileEventsListener' => __DIR__ . '/..' . '/../lib/Listener/FileEventsListener.php', 'OCA\\Files_Versions\\Listener\\LoadAdditionalListener' => __DIR__ . '/..' . '/../lib/Listener/LoadAdditionalListener.php', 'OCA\\Files_Versions\\Listener\\LoadSidebarListener' => __DIR__ . '/..' . '/../lib/Listener/LoadSidebarListener.php', - 'OCA\\Files_Versions\\Listener\\MetadataFileEvents' => __DIR__ . '/..' . '/../lib/Listener/MetadataFileEvents.php', + 'OCA\\Files_Versions\\Listener\\VersionAuthorListener' => __DIR__ . '/..' . '/../lib/Listener/VersionAuthorListener.php', 'OCA\\Files_Versions\\Migration\\Version1020Date20221114144058' => __DIR__ . '/..' . '/../lib/Migration/Version1020Date20221114144058.php', 'OCA\\Files_Versions\\Sabre\\Plugin' => __DIR__ . '/..' . '/../lib/Sabre/Plugin.php', 'OCA\\Files_Versions\\Sabre\\RestoreFolder' => __DIR__ . '/..' . '/../lib/Sabre/RestoreFolder.php', diff --git a/apps/files_versions/lib/AppInfo/Application.php b/apps/files_versions/lib/AppInfo/Application.php index 7e1960da1eb..e6870139ee2 100644 --- a/apps/files_versions/lib/AppInfo/Application.php +++ b/apps/files_versions/lib/AppInfo/Application.php @@ -36,7 +36,7 @@ use OCA\Files_Versions\Capabilities; use OCA\Files_Versions\Listener\FileEventsListener; use OCA\Files_Versions\Listener\LoadAdditionalListener; use OCA\Files_Versions\Listener\LoadSidebarListener; -use OCA\Files_Versions\Listener\MetadataFileEvents; +use OCA\Files_Versions\Listener\VersionAuthorListener; use OCA\Files_Versions\Versions\IVersionManager; use OCA\Files_Versions\Versions\VersionManager; use OCP\Accounts\IAccountManager; @@ -120,8 +120,8 @@ class Application extends App implements IBootstrap { $context->registerEventListener(NodeCopiedEvent::class, FileEventsListener::class); $context->registerEventListener(BeforeNodeRenamedEvent::class, FileEventsListener::class); $context->registerEventListener(BeforeNodeCopiedEvent::class, FileEventsListener::class); - - $context->registerEventListener(NodeWrittenEvent::class, MetadataFileEvents::class); + + $context->registerEventListener(NodeWrittenEvent::class, VersionAuthorListener::class); } public function boot(IBootContext $context): void { diff --git a/apps/files_versions/lib/Listener/MetadataFileEvents.php b/apps/files_versions/lib/Listener/VersionAuthorListener.php index c8a38da588d..158f039d555 100644 --- a/apps/files_versions/lib/Listener/MetadataFileEvents.php +++ b/apps/files_versions/lib/Listener/VersionAuthorListener.php @@ -32,7 +32,7 @@ use OCP\Files\Node; use OCP\IUserSession; /** @template-implements IEventListener<NodeWrittenEvent> */ -class MetadataFileEvents implements IEventListener { +class VersionAuthorListener implements IEventListener { public function __construct( private IVersionManager $versionManager, private IUserSession $userSession, |