[TYPO3-dev] 6.0 Breaking change Toolbaritems

Kay Strobach typo3 at kay-strobach.de
Wed Nov 28 07:14:29 CET 2012


Hello guys,

was it the intention to change the toolbaritem interface to be
incompatible to all version below 6.0 code?

The "old" and now deprecated interface required a function __construct
like this one:

public function __construct(TYPO3backend &$backendReference = null) {

The new one requires a namespaced Version.

__construct(\TYPO3\CMS\Backend\Controller\BackendController
&$backendReference = NULL);

To be compatible i have to include 2 Versions of the same class, where
the only difference is the constructor - not good :(

Will this happen on all places where Hook Interfaces are use? - I'm
currently investigating that stuff :(

Regards
Kay
-- 
http://www.kay-strobach.de - Open Source Rocks

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org

Answer was useful - feel free to donate:
  -
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KPM9NAV73VDF2
  - https://flattr.com/profile/kaystrobach




More information about the TYPO3-dev mailing list