Make the new HtmlPageController Container-aware.

8.0.x
Larry Garfield 2012-09-02 12:46:06 -05:00 committed by effulgentsia
parent b9d5689987
commit 404e74e187
1 changed files with 13 additions and 1 deletions

View File

@ -4,9 +4,21 @@ namespace Drupal\Core;
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) {