[TYPO3-mvc] cleaning up my extension, removing core hacks
Philipp
philippwrann at gmx.at
Wed Dec 18 08:59:17 CET 2013
Hey
When writing my extension regional_object i had to modify the core a few times (didnt have trime for a nicer solution). Now i want to fix that.
First File i had to modify was:
\TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend
thought about solving that writing my own StorageDriver (extending the bugged extbase class), overriding 2 methods needed to make everything work and link that via:
config.tx_extbase.objects.TYPO3\CMS\Extbase\Persistence\Generic\Storage\BackendInterface.className = Vendor\Extension\....
Found that here and thought its a nice solution.
Second File i had to hack was fixed in 6.1 Update
Third File i had to modify is:
\TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormFieldViewHelper
Now i think of 2 ways to include my hack:
1) Doing the same think (but i dont think that will work, i think i have to override the autoloadersetting here
2) putting
\TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormFieldViewHelper => 'Vendor/Extension/Classes/ViewHelpers/Form/AbstractFormFieldViewHelper.php'
in my ext_autoload.php
Do you have any suggestions for me here?
More information about the TYPO3-project-typo3v4mvc
mailing list