From: Florian Ragwitz Date: Mon, 3 Jan 2011 20:20:52 +0000 (+0000) Subject: Work with PP Package::Stash again now the incorrect assumption that broke with :... X-Git-Tag: 5.80030~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=fc9ec364765000e6874aa44cae2231ca04a0ac17 Work with PP Package::Stash again now the incorrect assumption that broke with ::XS is fixed --- diff --git a/lib/Catalyst/Component.pm b/lib/Catalyst/Component.pm index d428826..1c61eb2 100644 --- a/lib/Catalyst/Component.pm +++ b/lib/Catalyst/Component.pm @@ -127,7 +127,7 @@ sub config { # TODO maybe this should be a ClassData option? my $class = blessed($self) || $self; my $meta = Class::MOP::get_metaclass_by_name($class); - unless (${ $meta->get_package_symbol('$_config') }) { + unless (${ $meta->get_or_add_package_symbol('$_config') }) { # Call merge_hashes to ensure we deep copy the parent # config onto the subclass $self->_config( Catalyst::Utils::merge_hashes($config, {}) );