Skip to content
Snippets Groups Projects
Commit 404e74e1 authored by Larry Garfield's avatar Larry Garfield Committed by Alex Bronstein
Browse files

Make the new HtmlPageController Container-aware.

parent b9d56899
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -4,9 +4,21 @@
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
class HtmlPageController implements ContainerAwareInterface {
class HtmlPageController {
/**
* The injection container for this object.
*
* @var ContainerInterface
*/
protected $container;
public function setContainer(ContainerInterface $container = NULL) {
$this->container = $container;
}
public function content(Request $request, $_content) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment