Form::Factory::Feature::Role::PreProcess - features that run just before processing
version 0.021
package MyApp::Feature::Baz; use Moose; with qw( Form::Factory::Feature Form::Factory::Feature::Role::PreProcess ); sub pre_process { my $self = shift; MyApp::Logger->info('Starting to process.'); } package Form::Factory::Feature::Custom::Baz; sub register_implementation { 'MyApp::Feature::Baz' }
Features that run something immediately before the action runs may implement this role. This feature cannot stop the action from running. That must be performed with a Form::Factory::Feature::Role::Check.
This method is called immediately before the run method is called. It is passed no arguments other than the feature object it is called upon. It's return value is ignored.
run
This method can be used to prevent the run method from being called by throwing an exception.
Andrew Sterling Hanenkamp <hanenkamp@cpan.org>
<hanenkamp@cpan.org>
Copyright 2009 Qubling Software LLC.
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
To install Form::Factory, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Form::Factory
CPAN shell
perl -MCPAN -e shell install Form::Factory
For more information on module installation, please visit the detailed CPAN module installation guide.