[TYPO3-core] RFC #11105: Feature: Add a method to register an Extbase plugin
Ernesto Baschny [cron IT]
ernst at cron-it.de
Mon May 18 11:25:22 CEST 2009
Steffen Kamper wrote: on 18.05.2009 11:20:
> Jochen Rau schrieb:
>> Hi,
>>
>> I really like the solution to have the process of registering a plugin
>> inside of Extbase. Extbase should depend on TYPO3 not the other way
>> around ;-). I have already implemented and tested:
>>
>> Tx_Extbase_Utility_Plugin::registerPlugin(
>> 'BlogExample',
>> 'Pi1',
>> 'A Blog Example',
>> array(
>> 'Blog' => 'index,show,new,create,delete,deleteAll',
>> 'Post' => 'index,show,new,create,delete,edit,update',
>> 'Comment' => 'create',
>> ),
>> array(
>> 'Blog' => 'delete,deleteAll,edit,update',
>> 'Post' => 'show,delete,edit,update',
>> 'Comment' => 'create',
>> )
>> );
>>
>> It works. So, if you agree, I will commit this with the next revision
>> of extbase.
>>
>
> yeah, go ahead.
>
> What do you think with the constant, so we could use it in localconf like
> if (EXTBASE_LOADED) {...}
> ?
I wouldn't do that. The ext manager shouldn't allow an extension that
"depends" on extbase to be installed if extbase isn't installed.
Cheers,
Ernesto
More information about the TYPO3-team-core
mailing list