Validate and normalize museum URLs when submitting artwork

This commit is contained in:
Alex Cabal 2024-01-12 14:20:54 -06:00
parent 9c27d80dd9
commit 16df5b29fe
9 changed files with 554 additions and 41 deletions

View file

@ -0,0 +1,8 @@
<?
namespace Exceptions;
class InvalidPageScanUrlException extends InvalidUrlException{
public function __construct(string $url, string $exampleUrl){
$this->message = 'Invalid page scan URL: <' . $url . '>. Expected a URL like: <'. $exampleUrl . '>.';
}
}