The problem is that on creation of MyApp object in Catalyst::prepare, i get MyApp object merged with (!!!) my config.<br><br>MyApp-&gt;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-&gt;make_immutable(replace_constructor =&gt; 1) unless $meta-&gt;is_immutable;<br><br>After that MyApp-&gt;new is a mix of correct object and config hash which breaks my application :(<br><br>More details:<br>
<br>when executing MyApp-&gt;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-&gt;{$_}) } keys %args;<br>88:       @{$self}{@extra} = @args{@extra};<br><br>What&#39;s the problem and how to fix it?<br>