=head1 INTEGRATING YOUR PLUGIN
-You can use L<NEXT> for your lugin by overloading certain methods which
+You can use L<NEXT> for your plugin by overloading certain methods which
are called by Catalyst during a request.
=head2 The request life-cycle
$c->NEXT::handler-name( @_ );
if you already C<shift>ed it out of C<@_>. Remember to C<use> C<NEXT>.
-
+
=head2 Storage and Configuration
Some Plugins use their accessor names as a storage point, e.g.
to add a unique ID to every request:
package Catalyst::Plugin::RequestUUID;
-
+
use warnings;
use strict;
-
+
use Catalyst::Request;
use Data::UUID;
use NEXT;
our $VERSION = 0.01;
-
+
{ # create a uuid accessor
package Catalyst::Request;
__PACKAGE__->mk_accessors('uuid');
sub prepare {
my $class = shift;
-
+
+ # Turns the engine-specific request into a Catalyst context .
my $c = $class->NEXT::prepare( @_ );
$c->request->uuid( Data::UUID->new->create_str );
=head1 AUTHOR
S<Robert Sedlacek, C<phaylon@dunkelheit.at>> with a lot of help from the
-poeple on #catalyst.
+people on #catalyst.
=cut