EvanDotPro/EdpModuleLayouts

Namespaced module support

dstockto opened this issue · 1 comments

I tried to use this module to change the layout for the Apigility Documentation module which is loaded be ZF\zfcampus\zf-apigility-documentation. The function that grabs the namespace from the class name appears to assume a single word namespace followed by the classname which ends up at "ZF" for the above example.

Changing the strpos call to strrpos appears to work for single or multiple named namespace. Any objections to an update? I can certainly provide a patch, but there may be a reason for only getting the first namespace that I'm not aware of.

Thank you.

It looks like PR #10 would be identical to what I'd PR anyway.