[TYPO3-mvc] questions: @lazy, @inject, @api, constructors
Barbara Schwarz
barbara at yejj.com
Fri Jan 15 06:26:53 CET 2010
Hello
I have a couple of questions:
1. Which fields should in general be annotated with @lazy? Is there
some guideline?
2. Is the @api annotation supported and if yes, when should it be used?
3. Is the @inject annotation supported? In the blog example,
t3lib_div::makeInstance() is used for accessing the repositories in the
controllers. Does it really create a new instance of a repository each
time? If @inject is supported already, should it replace the
t3lib_div::makeInstance function?
4. Is there a guideline/good practice rule which defines which fields of
a class should be initialized in its constructor?
Thanks a lot in advance, I appreciate any tips!
Barbara
More information about the TYPO3-project-typo3v4mvc
mailing list