Skip to content

Commit

Permalink
API Standardise extension hooks (#629)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Aug 27, 2024
1 parent 85dd0e1 commit e2eb3f6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -1183,7 +1183,7 @@ public function validate()
{
$result = ValidationResult::create();
$this->File->validate($result, $this->Name);
$this->extend('validate', $result);
$this->extend('updateValidate', $result);
return $result;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Folder.php
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ public function StripThumbnail()
public function validate()
{
$result = ValidationResult::create();
$this->extend('validate', $result);
$this->extend('updateValidate', $result);
return $result;
}

Expand Down
3 changes: 1 addition & 2 deletions src/Storage/DBFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit e2eb3f6

Please sign in to comment.