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

Robert Lemke robert at typo3.org
Tue May 19 11:17:51 CEST 2009


Hi Sebastian,

On 18.05.2009, at 20:02, Sebastian KurfŸürst wrote:

> I just had a look at the ControllerContext Christopher implemented for
> the AbstractController... I've seen that we still have $this->request,
> $this->response, $this->arguments and $this->argumentsMappingResults  
> in
> the Controller available.
>
> Do you think it makes sense to have this duplication?

yes.

> I think that you usually will not deal with the above objects directly
> inside the controller, thus I would rather remove the above attributes
> from the controller.

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

I could imagine making the controller context private. What do you  
think?

robert


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