Skip to content


Subversion checkout URL

You can clone with
Download ZIP


ViewHelper extension using Delegators #5172

shipleyr opened this Issue · 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.


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?

@weierophinney weierophinney referenced this issue from a commit in zendframework/zend-servicemanager
@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
Something went wrong with that request. Please try again.