[TYPO3-mvc] URIBuilder rewrite

Jochen Rau jochen.rau at typoplanet.de
Wed Aug 12 10:01:16 CEST 2009


Hi.

Steffen Kamper wrote:
> Robert Lemke schrieb:
>> 1) ignore this bad feeling, make the UriBuilder a singleton and
>> provide your proposed
>> setters
>> 2) make UriBuilder a prototype to avoid unintended misconfiguration
>> and accept the overhead
>> of creating a new instance everytime we create a link (sounds slow huh?)
>> 3) make UriBuilder a singleton and a) provide a kind of reset method
>> or b) even let the builder reset
>> all options automatically after calling build()
>> 4) ...
>>
>> Maybe 3b)?
[...]
> i think 3b) would be a good option, but give an option to prevent reset
> like build(FALSE) for bulk actions.

I also prefer 3b) with the option to keep the settings. But reading 
"build(FALSE)" is a bit weird and unintuitive. What about a method 
clearSettingsAfterBuild(FALSE) which defaults to TRUE?

Regards
Jochen


-- 
Every nit picked is a bug fixed



More information about the TYPO3-project-typo3v4mvc mailing list