Add missing 'new' keyword in code sample

This commit is contained in:
tjaisson 2019-02-06 11:20:56 +01:00 committed by GitHub
parent 305200977c
commit 2322a5db57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -482,7 +482,7 @@ will be shown in the top right corner of the public page.
class PageController extends Controller {
public function index() {
$template = PublicTemplateResponse($this->appName, 'main', []);
$template = new PublicTemplateResponse($this->appName, 'main', []);
$template->setHeaderTitle('Public page');
$template->setHeaderDetails('some details');
$response->setHeaderActions([