[Catalyst] Plugin::Authentication vs Authentiaction

Joel Bernstein joel at fysh.org
Mon Nov 10 13:30:08 GMT 2008


2008/11/10 Alex Povolotsky <tarkhil at over.ru>:
> Hello!
>
> Trying to use Catalyst::Authentication::Credential::Authen::Simple
> (::RADIUS, but it does not matter), I've found that I've got two
> Authentication directories, one is under Plugin. What's worse, Catalyst does
> not load Catalyst::Authentication::Credential::Authen::Simple automatically,
> and fails when I put it into
>
> use Catalyst qw/ .... /
>
> because it searches only Catalust/Plugin
>
> What am I doing wrong? I don't want just put a bunch of symlinks.

The fine manual states:
If your plugin starts with a name other than Catalyst::Plugin::, you
can fully qualify the name by using a unary plus.

So you'd do:

use Catalyst qw/
  Foo # loads C::Plugin::Foo
  +Catalyst::Authentication::Credential::Authen::Simple # loads the
module you wanted
/;

/joel



More information about the Catalyst mailing list