[Catalyst] My application is broken after upgrading to 5.80003.
Please Help.
Oleg Pronin
syber.rus at gmail.com
Thu May 7 23:12:23 GMT 2009
The problem is that on creation of MyApp object in Catalyst::prepare, i get
MyApp object merged with (!!!) my config.
MyApp->new does ok until this line of code
Catalyst::CODE(0x80d2d81f8)(/usr/local/lib/perl5/site_perl/5.10.0/Catalyst.=
pm:1110):
1110: $meta->make_immutable(replace_constructor =3D> 1) unless
$meta->is_immutable;
After that MyApp->new is a mix of correct object and config hash which
breaks my application :(
More details:
when executing MyApp->new the problem is at
Catalyst::Controller::BUILD
it receives $args - somewhy it is my config :-)
Then goes MooseX::Emulate::Class::Accessor::Fast::CODE which also receives
%args which is my config and merges it into MyApp object:
87: my @extra =3D grep { !exists($self->{$_}) } keys %args;
88: @{$self}{@extra} =3D @args{@extra};
What's the problem and how to fix it?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20090508/e3b29=
fae/attachment.htm
More information about the Catalyst
mailing list