Data-MuFormX-Registry

 view release on metacpan or  search on metacpan

lib/Data/MuFormX/Registry.pm  view on Meta::CPAN

to fix deep problems.  On the other hand there's not a ton of stuff here so
its probably ok...

This is a wrapper on top of L<Module::Pluggable::Object> to make it easier
to load up and create a namespace of L<Data::MuForm> based form validation
classes.  At its heart it makes it so you don't have to say 'use Form;' for
every form you need in a package.  It also adds a way to centralize some
form initialization work.  This may or may not recommend itself to you.  I
think it makes it easier to reuse forms in different packages (for example in
different L<Mojolicous> controllers).  On the other hand it injects a proxy
layer such that '$registry->create("Login")' is not 100% transparent in that
you are getting an instance of 'MyApp::Form::Login'.  You may consider this
a type of action at a distance that makes your code harder to maintain.

If you have a lot of L<Data::MuForm> based form validation classes you may find
it more useful.  I also believe it helps you follow the 'code against an interface
not an class' best practice.  As you wish ;)

=head1 METHOD

This class exposes the follow methods for intended public use.



( run in 0.474 second using v1.01-cache-2.11-cpan-0a6323c29d9 )