Skip to content

Commit

Permalink
Use controller method to get container parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
ychadwick authored Oct 23, 2020
1 parent 5e35191 commit 03dc1e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Controller/FrontendPageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ public function translationNotFoundAction(Request $request)
'admin_pool' => $this->getAdminPool(),
];

return $this->render($this->container->getParameter('networking_init_cms.no_translation_template'), $params);
return $this->render($this->getParameter('networking_init_cms.no_translation_template'), $params);
}

/**
Expand All @@ -494,7 +494,7 @@ public function pageNotFoundAction()
{
$params = ['admin_pool' => $this->getAdminPool()];

return $this->render($this->container->getParameter('networking_init_cms.404_template'), $params);
return $this->render($this->getParameter('networking_init_cms.404_template'), $params);
}

/**
Expand Down

0 comments on commit 03dc1e8

Please sign in to comment.