1
0
mirror of https://github.com/flarum/core.git synced 2025-10-13 07:54:25 +02:00

Tweak ContentInterface so that callables can be used as well

This commit is contained in:
Franz Liedke
2018-10-21 20:41:10 +02:00
parent eafc637475
commit 86b26ce2fb
9 changed files with 10 additions and 10 deletions

View File

@@ -29,7 +29,7 @@ class Layout implements ContentInterface
$this->layoutView = $layoutView;
}
public function populate(HtmlDocument $document, Request $request)
public function __invoke(HtmlDocument $document, Request $request)
{
$document->layoutView = $this->layoutView;
}