[TYPO3-mvc] Using Repository outside extbase

Jochen Rau jochen.rau at typoplanet.de
Tue Jul 14 16:56:39 CEST 2009


Ah, no, wait a moment.

Jochen Rau wrote:
> Hi Xavier.
>
>> I have to fix some other issues of the persistence layer first.
>
> I am catching up ...
>
> The issue should be resolved with r935. After a discussion with
> Sebastian, we decided to further use the singleton as a global object.
> The Persistence Manager will be set up at the first call to the
> dispatcher and can be reached everywhere by saying
>
> t3lib_div::makeInstance('Tx_Extbase_Persistence_Manager')
>
> Not the best solution (from a software architects perspective), but it
> works.

That doesn't solve your problem, because the Dispatcher must have been 
invoked at least once before you can use the Persistence Manager inside 
an itemProcFunc.

Hmm. Maybe we can implement a distinct static function. Let's see ....

Jochen

-- 
Every nit picked is a bug fixed



More information about the TYPO3-project-typo3v4mvc mailing list