Override class in Classes/Base/
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Override class in Classes/Base/
Hello,
what is the correct way to override a class in Classes/Base/ , in the aimeos TYPO3 extension?
Claudia
what is the correct way to override a class in Classes/Base/ , in the aimeos TYPO3 extension?
Claudia
Re: Override class in Classes/Base/
Add a closure function to the ext_localconf.php of your Aimeos TYPO3 extension for your project that returns the object implementation you need, e.g.
Check the Aimeos base class to see what objects you can overwrite and how:
https://github.com/aimeos/aimeos-typo3/ ... s/Base.php
Code: Select all
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['aimeos_context'] = function( $config ) {
return new Mycontext( $config );
}
https://github.com/aimeos/aimeos-typo3/ ... s/Base.php
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Override class in Classes/Base/
Thank you, it works.