<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<br><div><div>On 9 Jun 2009, at 04:29, Robert Krimen wrote:</div><blockquote type="cite"><div class="gmail_quote">On Mon, Jun 8, 2009 at 11:55 AM, Matt S Trout <span dir="ltr">&lt;<a href="mailto:dbix-class@trout.me.uk">dbix-class@trout.me.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <br> See Catalyst::Plugin::AutoCRUD for injecting extra components into the<br> various areas during application setup.</blockquote><div><br>I had this problem last week, and released a solution today:<br><br><a href="http://search.cpan.org/perldoc?CatalystX::InjectComponent">http://search.cpan.org/perldoc?CatalystX::InjectComponent</a><br> <br>Based of off the ::AutoCRUD code<br></div></div></blockquote></div><br><div>This is neat, but in no way taking advantage of the new Moose code.</div><div><br></div><div>I have some code in the CatalystX::DynamicComponent namespace meant to solve this problem:</div><div><br></div><div><a href="http://github.com/bobtfish/catalyst-dynamicappdemo/tree/master">http://github.com/bobtfish/catalyst-dynamicappdemo/tree/master</a></div><div><a href="http://search.cpan.org/dist/CatalystX-DynamicComponent/">http://search.cpan.org/dist/CatalystX-DynamicComponent/</a></div><div><br></div><div>CatalystX::DynamicComponent (which solves around the same problem you're solving) is fairly solid at this point. The other things based off it which are also in the dist - much less so...</div><div><br></div><div>My initial approach was to provide an application class role, but I think I may prefer your approach of putting all of the logic into it's own class, which you then pass the application class to permute.</div><div><br></div><div>Would you be interested in collaborating on this? Initially I think I'd fork your code and compose my pre-existing role onto it to see how far that gets us / how much of the ugly code you inherited from AutoCRUD goes away.</div><div><br></div><div>Sound reasonable?</div><div><br></div><div>Cheers</div><div>t0m</div><div><br></div><div><br></div></body></html>