EdpModuleLayouts icon indicating copy to clipboard operation
EdpModuleLayouts copied to clipboard

Namespaced module support

Open dstockto opened this issue 10 years ago • 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.

dstockto avatar Jun 23 '15 17:06 dstockto

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

dstockto avatar Jun 23 '15 17:06 dstockto