[TYPO3-50-general] ControllerContext - further cleanup?

Bastian Waidelich bastian at typo3.org
Tue May 19 12:36:40 CEST 2009


Robert Lemke wrote:

> You'll surely want to use $this->response->setHeader() or 
> $this->response->setStatus()

and it's much easier to write tests that mock
$this->response->setHeader()
than
$this->controllerContext->getResponse()->setHeader()*

Bastian


* see http://en.wikipedia.org/wiki/Law_of_Demeter


More information about the TYPO3-project-5_0-general mailing list