[BUGFIX] Abstract XSD generator can handle more than two namespace parts 71/42971/3
authorHelmut Hummel <helmut.hummel@typo3.org>
Tue, 1 Sep 2015 20:10:56 +0000 (22:10 +0200)
committerNicole Cordes <typo3@cordes.co>
Wed, 2 Sep 2015 07:41:16 +0000 (09:41 +0200)
commit3d50d7334195853c2e0136cb09540c55512c889f
tree3ae63cc9f2e19736c113e7457e7834252bb06286
parent81ad545eb4bf8804d1abc529671af6da8b7fbed9
[BUGFIX] Abstract XSD generator can handle more than two namespace parts

The getTagNameForClass method in the abstract XSD generator class
could not handle class names with more than two namespace parts.

This caused e.g. TYPO3\CMS\Fluid\ViewHelpers\Be\Buttons\CshViewHelper to
not be transformed to "be.buttons.csh", but just "be.", which in turn
caused duplicate id errors in the resulting XSD document.

Make the code aware of more than two namespace parts.

Releases: master, 6.2
Resolves: #69463
Change-Id: I9a6a28b470679e7487f0d83a7ce9f267a1f3ec7f
Reviewed-on: http://review.typo3.org/42971
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
typo3/sysext/fluid/Classes/Service/AbstractGenerator.php