xperseguers / t3ext-routing

TYPO3 Extension routing
19 stars 6 forks source link

CamelCase controller names are wrong converted #17

Closed nicodh closed 7 years ago

nicodh commented 7 years ago

If you configure a UpperCamelCase controller name like this: name: 'Routes for list of all userGroups' uriPattern: 'userGroups' defaults: '@vendor': 'FOO' '@package': 'Bar' '@plugin': 'myplugin' '@controller': 'UserGroup' '@action': 'list'

the controller name is converted to Usergroup, due to the GeneralUtility::underscoredToUpperCamelCase conversion in RoutingController::getControllerParameters

I don't see why the underscoredToUpperCamelCase conversion is needed at all, since there shouldn't be underscores in class names in Extbase...?

xperseguers commented 7 years ago

IIRC, origin of this dates back from when we did not have namespaces