Skip to content

Commit 22246fb

Browse files
committed
Use resolve helper instead of app
1 parent f58a21e commit 22246fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extend.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ function (Document $document, Request $request) {
2020
// Add the discussion content to the document so that the
2121
// payload will be included on the page and the JS app will be
2222
// able to render the discussion immediately.
23-
app(Flarum\Forum\Content\Discussion::class)($document, $request);
23+
resolve(Flarum\Forum\Content\Discussion::class)($document, $request);
2424

25-
app(Flarum\Frontend\Content\Assets::class)->forFrontend('embed')($document, $request);
25+
resolve(Flarum\Frontend\Content\Assets::class)->forFrontend('embed')($document, $request);
2626
}
2727
),
2828

0 commit comments

Comments
 (0)