The problem is that on creation of MyApp object in Catalyst::prepare, i get MyApp object merged with (!!!) my config.<br><br>MyApp->new does ok until this line of code<br><br>Catalyst::CODE(0x80d2d81f8)(/usr/local/lib/perl5/site_perl/5.10.0/Catalyst.pm:1110):<br>
1110: $meta->make_immutable(replace_constructor => 1) unless $meta->is_immutable;<br><br>After that MyApp->new is a mix of correct object and config hash which breaks my application :(<br><br>More details:<br>
<br>when executing MyApp->new the problem is at<br>Catalyst::Controller::BUILD<br>it receives $args - somewhy it is my config :-)<br>Then goes MooseX::Emulate::Class::Accessor::Fast::CODE which also receives %args which is my config and merges it into MyApp object:<br>
<br>87: my @extra = grep { !exists($self->{$_}) } keys %args;<br>88: @{$self}{@extra} = @args{@extra};<br><br>What's the problem and how to fix it?<br>