X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FExtendingCatalyst.pod;h=824dafc130a48107877ef9f06d89d4558fcffaf7;hp=f9506a4258055ef5d4266aae88fb5160951d8462;hb=4d719c7eb8dcfd8a4b016574d0f8d61d752ad736;hpb=d237e058e669077101afa15019782fb538f80e76 diff --git a/lib/Catalyst/Manual/ExtendingCatalyst.pod b/lib/Catalyst/Manual/ExtendingCatalyst.pod index f9506a4..824dafc 100644 --- a/lib/Catalyst/Manual/ExtendingCatalyst.pod +++ b/lib/Catalyst/Manual/ExtendingCatalyst.pod @@ -120,36 +120,10 @@ it's possible to use the composability of L roles, and method modifiers to hook onto to provide functionality. These can be applied to your models/views/controllers, and your application -class. Please see the sections below for special notes and caveats, and -the L for more information about roles in general. - -=head3 In your application class - -It should be noted that when applying roles to your application class, that -you should B wrap methods provided by L until B you have -run C<< __PACKAGE__->setup >>, as your class does not inherit from any of your -plugins until the setup method is run. - -With Catalyst 5.80004, it is possible to include Roles in the plugin list, and -these roles will be applied to your application class immediately after -'traditional' plugins have been composed into your application class' -inheritance hierarchy. - -=head3 In controllers - -Method modifiers on controller actions will work as expected (either in your -controllers, or when composed from roles) in Catalyst 5.80003 and above. - -It is possible to have action methods with attributes inside Moose roles, using -the trait introduced in L version 0.12, example: - - package MyApp::ControllerRole; - use Moose::Role -traits => 'MethodAttributes'; - - sub foo : Local { - my ($self, $c) = @_; - ... - } +class, and shipped to CPAN. +Please see L for specific information +about using Roles in combination with Catalyst, and L +for more information about roles in general. =head2 Inheritance and overriding methods @@ -623,7 +597,7 @@ A simple example like this is actually better as a L role, for example: package CatalystX::UriforUndefWarning; use Moose::Role; - use namespace::clean -except => 'meta'; + use namespace::autoclean; after 'uri_for' => sub { my ($c, $arg) = @_;