Name : perl-Catalyst-Controller-ActionRole
| |
Version : 0.17
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp151.1.1
| Date : 2018-12-04 00:26:56
|
Group : Development/Libraries/Perl
| Source RPM : perl-Catalyst-Controller-ActionRole-0.17-lp151.1.1.src.rpm
|
Size : 0.04 MB
| |
Packager : (none)
| |
Summary : (DEPRECATED) Apply roles to action instances
|
Description :
This module allows one to apply the Moose::Role manpages to the \'Catalyst::Action\'s for different controller methods.
For that a \'Does\' attribute is provided. That attribute takes an argument, that determines the role, which is going to be applied. If that argument is prefixed with \'+\', it is assumed to be the full name of the role. If it\'s prefixed with \'~\', the name of your application followed by \'::ActionRole::\' is prepended. If it isn\'t prefixed with \'+\' or \'~\', the role name will be searched for in \'AATTINC\' according to the rules for /ROLE PREFIX SEARCHING.
It\'s possible to apply roles to *all* actions of a controller without specifying the \'Does\' keyword in every action definition:
package MyApp::Controller::Bar
use Moose; use namespace::autoclean;
BEGIN { extends \'Catalyst::Controller::ActionRole\' }
__PACKAGE__->config( action_roles => [\'Foo\', \'~Bar\'], );
sub moo : Local { ... }
Additionally, roles can be applied to selected actions without specifying \'Does\' using the Catalyst::Controller/action manpage and configured with the Catalyst::Controller/action_args manpage:
package MyApp::Controller::Baz;
use Moose; use namespace::autoclean;
BEGIN { extends \'Catalyst::Controller::ActionRole\' }
__PACKAGE__->config( action_roles => [qw( Foo )], action => { some_action => { Does => [qw( ~Bar )] }, another_action => { Does => [qw( +MyActionRole::Baz )] }, }, action_args => { another_action => { customarg => \'arg1\' }, } );
sub some_action : Local { ... }
sub another_action : Local { ... }
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl/openSUSE_Leap_15.1/noarch |
Hmm ... It's impossible ;-) This RPM doesn't exist on any FTP server
Provides :
perl(Catalyst::Controller::ActionRole)
perl-Catalyst-Controller-ActionRole
Requires :