X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FWritingPlugins.pod;h=5af1713d93adf5f62bd374401860589addb115f4;hp=20e3fdc95f731bbd20578febff13ebf44526f1c2;hb=b248fa4a4191cd3eaa13d72e6ec8e64dfef973e0;hpb=b89fe2ddc069b0eef992de0e0e6f1dae333da7bd diff --git a/lib/Catalyst/Manual/WritingPlugins.pod b/lib/Catalyst/Manual/WritingPlugins.pod index 20e3fdc..5af1713 100644 --- a/lib/Catalyst/Manual/WritingPlugins.pod +++ b/lib/Catalyst/Manual/WritingPlugins.pod @@ -108,7 +108,7 @@ the rest of the arguments to the next handler in row by calling it via $c->NEXT::handler-name( @_ ); if you already Ced it out of C<@_>. Remember to C C. - + =head2 Storage and Configuration Some Plugins use their accessor names as a storage point, e.g. @@ -131,16 +131,16 @@ Here's a simple example Plugin that shows how to overload C 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'); @@ -148,7 +148,7 @@ to add a unique ID to every request: sub prepare { my $class = shift; - + # Turns the engine-specific request into a Catalyst context . my $c = $class->NEXT::prepare( @_ );