@@ -545,9 +545,9 @@ md5 of the content::
545545
546546 public function indexAction() 
547547 { 
548-  $response = $this->renderView ('MyBundle:Main:index.html.twig'); 
548+  $response = $this->render ('MyBundle:Main:index.html.twig'); 
549549 $response->setETag(md5($response->getContent())); 
550-  $response->isNotModified($this->get('request' )); 
550+  $response->isNotModified($this->getRequest( )); 
551551
552552 return $response; 
553553 } 
@@ -598,7 +598,7 @@ header value::
598598 $date = $authorDate > $articleDate ? $authorDate : $articleDate; 
599599
600600 $response->setLastModified($date); 
601-  $response->isNotModified($this->get('request' )); 
601+  $response->isNotModified($this->getRequest( )); 
602602
603603 return $response; 
604604 } 
@@ -643,7 +643,7 @@ exposing a simple and efficient pattern::
643643 $response->setLastModified($article->getPublishedAt()); 
644644
645645 // Check that the Response is not modified for the given Request 
646-  if ($response->isNotModified($this->get('request' ))) { 
646+  if ($response->isNotModified($this->getRequest( ))) { 
647647 // return the 304 Response immediately 
648648 return $response; 
649649 } else { 
@@ -835,7 +835,7 @@ independent of the rest of the page.
835835
836836 public function indexAction() 
837837 { 
838-  $response = $this->renderView ('MyBundle:MyController:index.html.twig'); 
838+  $response = $this->render ('MyBundle:MyController:index.html.twig'); 
839839 $response->setSharedMaxAge(600); 
840840
841841 return $response; 
0 commit comments