A prefix helps prevent false positive lookups, and naming collisions. We're
using this pattern elsewhere, too. We could potentially change this before
the rc.

On Tuesday, April 30, 2013, Josias Duarte Busiquia wrote:

> In library/Zend/Form/FormAbstractFactory.php:
>
> > +class FormAbstractFactory implements AbstractFactoryInterface
> > +{
> > +    /**
> > +     * @var string Top-level configuration key indicating forms configuration
> > +     */
> > +    protected $configKey     = 'form_manager';
> > +
> > +    /**
> > +     * @var Factory Form factory used to create forms
> > +     */
> > +    protected $factory;
> > +
> > +    /**
> > +     * @var string Service prefix necessary for abstract factory to trigger
> > +     */
> > +    protected $servicePrefix = 'Form\\';
>
> What's the reason to force the prefix? IMHO this limit us, e. g. if I want
> to prefix my forms with the module name.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/zendframework/zf2/pull/4358/files#r4024876>
> .
>


-- 
Matthew Weier O'Phinney
matthew@weierophinney.net
http://mwop.net/