From 37f9677df5593828417f854f8e6cfebc5839403b Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Thu, 15 Aug 2024 16:50:05 +1200 Subject: [PATCH] API Standardise extension hooks --- src/File.php | 2 +- src/Folder.php | 2 +- src/Storage/DBFile.php | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/File.php b/src/File.php index b1da31e8..081fd642 100644 --- a/src/File.php +++ b/src/File.php @@ -1180,7 +1180,7 @@ public function validate() { $result = ValidationResult::create(); $this->File->validate($result, $this->Name); - $this->extend('validate', $result); + $this->extend('updateValidate', $result); return $result; } diff --git a/src/Folder.php b/src/Folder.php index e9e1c78d..1a6041c5 100644 --- a/src/Folder.php +++ b/src/Folder.php @@ -339,7 +339,7 @@ public function StripThumbnail() public function validate() { $result = ValidationResult::create(); - $this->extend('validate', $result); + $this->extend('updateValidate', $result); return $result; } diff --git a/src/Storage/DBFile.php b/src/Storage/DBFile.php index d75e61ec..5ec4300b 100644 --- a/src/Storage/DBFile.php +++ b/src/Storage/DBFile.php @@ -277,8 +277,7 @@ public function getURL($grant = true) return null; } $url = $this->getSourceURL($grant); - $this->updateURL($url); - $this->extend('updateURL', $url); + $this->invokeWithExtensions('updateURL', $url); return $url; }