Hi Fabio,
I really depends what helper/plugin you're implementing I believe. Do you
want to implement some application logic there using multiple services? I'd
rather move it into service class itself.
>From your code snipped it looks like you use them just to get service
instances - why not to inject these directly into your
controllers wherever needed?
On another hand in view part we like to implement (view) plugins that is
one per entity/service. They are mostly used to retrieve entity by ID in
the view (strictly read only obviously) or implements another entity
related "helper" methods.

Some examples:
https://github.com/kapitchi/KapMessage/tree/master/src/KapMessage/View/Helper
https://github.com/kapitchi/KapitchiContact/blob/master/src/KapitchiContact/View/Helper/Contact.php
Plugins above extends from:
https://github.com/kapitchi/KapitchiEntity/blob/master/src/KapitchiEntity/View/Helper/AbstractEntityHelper.php

Matus


On 25 June 2013 04:27, whisher <whishe...@gmail.com> wrote:

> Hi weierophinney thanks for the reply.
>
> https://gist.github.com/whisher/5853740
>
>
> Bye.
>
>
>
> --
> View this message in context:
> http://zend-framework-community.634137.n4.nabble.com/Re-Controller-Plugin-for-service-all-in-one-or-tp4660427p4660447.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
> --
> List: fw-general@lists.zend.com
> Info: http://framework.zend.com/archives
> Unsubscribe: fw-general-unsubscr...@lists.zend.com
>
>
>

Reply via email to