From: Florian Ragwitz Date: Fri, 30 Jan 2009 18:34:32 +0000 (+0000) Subject: Disallow writing to config after setup. X-Git-Tag: 5.8000_06~22 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=fcf89172d340daeba2cea536b807868ddc4aad0f Disallow writing to config after setup. --- diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index f3df124..7665829 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -805,8 +805,8 @@ around config => sub { my $orig = shift; my $c = shift; - $c->log->warn("Setting config after setup has been run is not a good idea.") - if ( @_ and $c->setup_finished ); + croak('Setting config after setup has been run is not allowed.') + if ( @_ and $c->setup_finished ); $c->$orig(@_); };