Work with PP Package::Stash again now the incorrect assumption that broke with :...
Florian Ragwitz [Mon, 3 Jan 2011 20:20:52 +0000 (20:20 +0000)]
lib/Catalyst/Component.pm

index d428826..1c61eb2 100644 (file)
@@ -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, {}) );