NAME
Catalyst::Model::InjectionHelpers::Factory - Adaptor that is a model factory
SYNOPSIS
package MyApp;
use Catalyst 'InjectionHelper';
MyApp->inject_components(
'Model::Factory' => {
from_class=>'MyApp::Factory',
adaptor=>'Factory',
method=>'new'
});
MyApp->config(
'Model::Factory' => { aaa=>100 },
);
MyApp->setup;
DESCRIPTION
Injection helper adaptor that returns a new model each time you request it, scoped to the request. See Catalyst::Plugin::InjectionHelpers for details.
AUTHOR
John Napiorkowski email:jjnapiork@cpan.org
SEE ALSO
Catalyst::Plugin::InjectionHelpers Catalyst, Catalyst::Model::InjectionHelpers::Application, Catalyst::Model::InjectionHelpers::Factory, Catalyst::Model::InjectionHelpers::PerRequest Catalyst::ModelRole::InjectionHelpers
COPYRIGHT & LICENSE
Copyright 2016, John Napiorkowski email:jjnapiork@cpan.org
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.