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


_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to