[TYPO3-mvc] settings within a repository?

Franz Koch typo3.RemoveForMessage at elements-net.de
Fri Aug 13 03:17:24 CEST 2010


Hey,

> What I would do is just pass settings from the controller to the repository
> method as an argument.  I am not sure if it's better this way (to keep the
> Repository more "agnostic" of the controller's or other settings), or if it
> should be like the View, which has an array initialized already containing
> all of the settings, but at least atm I think that's the way it is.

yes, that's the way I'd also suggest it to do. Pass the configuration 
arguments to the repository method, so that the repository is reusable 
by other extensions and doesn't depend on specific TS settings of your 
extension.

-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list