ViewHelper extension using Delegators #5172

shipleyr opened this Issue Sep 26, 2013 · 4 comments

3 participants


I have a need to create an extension to the Url view helper but also have the Url view helper functionality available to me. Using a delegator factory does not work. I have spoken with @ocramius on IRC about this.

See: for the code I'm using.

Zend Framework member

The problem is that a delegator service factory cannot pass the validatePlugin step. A quickfix consists in instantiating it on-the-fly if it is not defined as a service


With the URL helper this is not really possible as it has configuration steps (injecting the route match object for example) which would need duplicating if it was instantiated directly.


so none of the provided plugin managers can handle delegators since delegator factories are treated like plugin themselves, which they're obviously not. is that right?

Zend Framework member
@weierophinney weierophinney added a commit that closed this issue Oct 23, 2013
@weierophinney weierophinney Merge branch 'hotfix/5175'
Close #5175
Fixes #5172
@weierophinney weierophinney added a commit to zendframework/zend-servicemanager that referenced this issue May 15, 2015
@weierophinney weierophinney Merge branch 'hotfix/5175' 9650994
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment