fix: remove fediverse prefix to prevent migration error + load routes during podcast import

refactor migration queries to use forge functions
This commit is contained in:
Yassine Doghri 2023-08-26 13:03:01 +00:00
commit 7ff1dbe903
63 changed files with 387 additions and 355 deletions

View file

@ -82,7 +82,7 @@ class ComponentRenderer
$matches[name] = tag name
$matches[attributes] = array of attribute string (class="foo")
*/
return preg_replace_callback($pattern, function ($match): string {
return preg_replace_callback($pattern, function (array $match): string {
$view = $this->locateView($match['name']);
$attributes = $this->parseAttributes($match['attributes']);
@ -104,7 +104,7 @@ class ComponentRenderer
$matches[attributes] = string of tag attributes (class="foo")
$matches[slot] = the content inside the tags
*/
return preg_replace_callback($pattern, function ($match): string {
return preg_replace_callback($pattern, function (array $match): string {
$view = $this->locateView($match['name']);
$attributes = $this->parseAttributes($match['attributes']);
$attributes['slot'] = $match['slot'];