From: Tomas Doran Date: Thu, 11 Feb 2010 20:36:22 +0000 (+0000) Subject: First attempt to make this make more sense. X-Git-Tag: 5.80021~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=128a7cee923f95115d4339dc6a29e81275ffbdaf First attempt to make this make more sense. --- diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index dd44d0f..b8cced0 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -1182,23 +1182,20 @@ EOF return 1; # Explicit return true as people have __PACKAGE__->setup as the last thing in their class. HATE. } - =head2 $app->setup_finalize -A hook to attach modifiers to. -Using C<< after setup => sub{}; >> doesn't work, because of quirky things done for plugin setup. -Also better than C< setup_finished(); >, as that is a getter method. - - sub setup_finalize { - - my $app = shift; +A hook to attach modifiers to. This method does not do anything except set the +C accessor. - ## do stuff, i.e., determine a primary key column for sessions stored in a DB +Applying method modifiers to the C method doesn't work, because of quirky thingsdone for plugin setup. - $app->next::method(@_); +Example: + after setup_finalize => sub { + my $app = shift; - } + ## do stuff here.. + }; =cut