[TYPO3-ect] lib/div & compatibility

Franz Holzinger franz at fholzinger.com
Mon Apr 28 11:19:44 CEST 2008


Franz Holzinger a écrit :
>> so the only solutions seems to be that we use special extensionkeys for
>> every release of the framework.
> 
> Yes, because the EM does not support 2 versions of an extension to be
> installed at the same time. You cannot use div 0.0.12 and div 1.1.1
> simultaneously.
> 
>> * first release (=SVN branch01): lib 01 + div 01
>> * second release (=SVN branch02): lib 02 + div 02
>>
>> Within a branch _NO change of the API_, just bugfix-updates.
> 

The best solution would only be to enhance the EM if nobody opposes.
Multiple versions of the same extension should be installable.
Each extension must tell in its ext_emconf.php for which version of an
extension it will work. This info must be updatable somewhere without a
necessary reupload of an extension.

The class name must contain a macro:

#define CLASSNAME_div  class.tx_div

class CLASSNAME_div {

}

If you call div::myfunction then this is not possible, because you can
only have one class with this name at a time.
This must be changed to the macro CLASSNAME_div::myfunction everywhere
in the code.

This is however untested and just a concept. Maybe something must be
changed here.

The macro can be undefined and redefined.

- Franz


More information about the TYPO3-team-extension-coordination mailing list