Use more correct proxy method
This code initially used a lazy-load proxy method. That seemed to work fine, but turned out to be broken with the friendsofphp/proxy-manager-lts re-implementation of ocramius/proxy-manager.
This update also updated all code to use Laminas's code-generator rather than the abandoned version of Zend.