mirror of
https://github.com/flarum/core.git
synced 2025-08-06 08:27:42 +02:00
Use resolve helper instead of app
This commit is contained in:
@@ -20,9 +20,9 @@ return [
|
|||||||
// Add the discussion content to the document so that the
|
// Add the discussion content to the document so that the
|
||||||
// payload will be included on the page and the JS app will be
|
// payload will be included on the page and the JS app will be
|
||||||
// able to render the discussion immediately.
|
// able to render the discussion immediately.
|
||||||
app(Flarum\Forum\Content\Discussion::class)($document, $request);
|
resolve(Flarum\Forum\Content\Discussion::class)($document, $request);
|
||||||
|
|
||||||
app(Flarum\Frontend\Content\Assets::class)->forFrontend('embed')($document, $request);
|
resolve(Flarum\Frontend\Content\Assets::class)->forFrontend('embed')($document, $request);
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user