[Dancer-users] Can I subclass DP::Authorize::Credentials from a different namespace
Gurunandan Bhat
gbhat at pobox.com
Mon Dec 13 20:10:46 CET 2010
Hi,
I want to subclass Dancer::Plugin::Authorize::Credentials but not in the
DPAC namespace, but in my App namespace, essentially something that
would go like this:
package App:Authenticate;
use base qw/Dancer::Plugin::Authorize::Credentials/;
sub authorize {
my ($app, $opts, $username, $passwd) = @_;
.....
}
1;
I have two questions:
1. Can I do this?
2. If yes, how do I set option parameters in config.yml so that they are
passed as a hashref in $opts.
Thank you.
-----------------------------------------------------------------
dancer does for web frameworks what sqlite did to databases
More information about the Dancer-users
mailing list