mirror of
https://github.com/standardebooks/web.git
synced 2025-07-07 15:20:32 -04:00
Use static class names instead of strings when getting objects from the DB
This commit is contained in:
parent
a442f92e28
commit
acb6b2949f
16 changed files with 36 additions and 34 deletions
|
@ -592,7 +592,7 @@ class Museum{
|
|||
from Museums
|
||||
where ? like concat("%", Domain, "%")
|
||||
limit 1;
|
||||
', [$parsedUrl['host']], 'Museum');
|
||||
', [$parsedUrl['host']], Museum::class);
|
||||
|
||||
return $result[0] ?? throw new Exceptions\MuseumNotFoundException();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue