Form::Factory::Feature::Role::PostProcess - features that run just after processing


Form-Factory documentation  | view source Contained in the Form-Factory distribution.

Index


NAME

Top

Form::Factory::Feature::Role::PostProcess - features that run just after processing

VERSION

Top

version 0.020

SYNOPSIS

Top

  package MyApp::Feature::Qux;
  use Moose;

  with qw(
      Form::Factory::Feature
      Form::Factory::Feature::Role::PostProcess
  );

  sub post_process {
      my $self = shift;
      MyApp::Logger->info('Ending the process.');
  }

  package Form::Factory::Feature::Custom::Qux;
  sub register_implementation { 'MyApp::Feature::Qux' }

DESCRIPTION

Top

Features that run something immediately after the action runs may implement this role. This feature will run after the action does whether it succeeds or not. It will not run if an exception is thrown.

ROLE METHOD

Top

post_process

This method is called immediately after 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.

AUTHOR

Top

Andrew Sterling Hanenkamp <hanenkamp@cpan.org>

COPYRIGHT AND LICENSE

Top


Form-Factory documentation  | view source Contained in the Form-Factory distribution.