[Catalyst] Major (for me) problem fixed! [patch]

Brian Cassidy brian.cassidy at nald.ca
Mon Jul 31 16:59:07 CEST 2006


Matt S Trout wrote:
> Note the '%$config' there. In MyApp,
>
> http://search.cpan.org/~mramberg/Catalyst-Runtime-5.7001/lib/Catalyst.pm#%24c-%3Esetup_components
>
> __PACKAGE__->config({
>    setup_components => { only => qr/(^|::)\w+$/ }
> });
>
> will fix this without requiring a patch to anything.
>   

It's probably better to do that as an "except":

__PACKAGE__->config({
   setup_components => { except => qr/#/ }
});


Also, if you're using a YAML config:

setup_components:
  except: !!perl/regexp:
    REGEXP: #

(ugly, i know, but it works [at least for YAML 0.62])

-Brian




More information about the Catalyst mailing list