[Catalyst] "Catalyst::Plugin::Authentication uses NEXT, which is deprecated."

will at serensoft.com will at serensoft.com
Mon May 31 15:25:21 GMT 2010


Thanks Tom. I can see now that I was a bit fuzzy on my question, whoops :)


On Mon, May 31, 2010 at 9:34 AM, Tomas Doran <bobtfish at bobtfish.net> wrote:

>
> On 31 May 2010, at 05:16, will at serensoft.com wrote:
>
>  Okay, we should uninstall the deprecated modules just to be sure our
>> dependencies are all clean, and we should use Catalyst::Authentication
>> instead of Catalyst::Plugin::Authentication...
>>
>
We still use Catalyst::Plugin::Authentication to do the heavy lifting -- but
it's not supposed to rely on Catalyst::Plugin::Authentication::Store::DBIC,
but rather Catalyst::Authentication::Store::DBIx::Class instead, right?

The syntax for "use Catalyst qw//" is that it prepends "Catalyst::Plugin" to
the beginning of any module you ask for unless you prefix it with a "+":

use Catalyst qw/
    Authentication
    +Catalyst::Authentication::Store::DBIx::Class
/;

Is that the recommended syntax?


>
> Erm, no. You still use Catalyst::Plugin::Authentication
>
>
>  So I've got two questions:
>>
>>
>> A) How do you uninstall these deprecated Catalyst modules?
>>
>>
> You don't. Why do you think you need to? Just don't use them in your app
> and they won't be loaded.


Would like to have a clean library with no deprecated stuff available to
fall back on. Disk space is cheap but that seems like saying I'll drive
around the countryside just for fun because gas is cheap. Trying "make
uninstall" didn't get me very far. Maybe there's a way to use ExtUtils to
create a packlist file...



>  B) How do we make sure we're using the recommended Store/Credential
>> modules? This isn't something we specify via "use Catalyst qw/blah/" I t=
ake
>> it.
>>
>
> Correct, you specify it by the authentication config (as documented in the
> Authentication plugin)


Documentation? You mean... read? :) That's helpful -- I will return to pore
over those docs. Thanks!



>  And is this also true for Session modules? E.g. is
>> C::P::Session::Store::DBIC deprecated in favor of something like
>> C::Session::Store::DBIx::Class, etc?
>>
>
> No.
>
> Cheers
> t0m
>
>
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>



-- =

will trillich
"It's only by saying 'no' that you can concentrate on the things that are
really important." -- Steve Jobs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20100531/4a338=
785/attachment.htm


More information about the Catalyst mailing list