Use resolve helper instead of app

This commit is contained in:
Alexander Skvortsov 2021-03-13 17:13:20 -05:00
parent abf29bd77b
commit ff86e68752

View File

@ -20,9 +20,9 @@ return [
// Add the discussion content to the document so that the
// payload will be included on the page and the JS app will be
// 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);
}
),