[Catalyst] Problem with Catalyst::Engine::component()

Matt S Trout dbix-class at trout.me.uk
Sat Aug 27 22:01:02 CEST 2005

On Fri, Aug 26, 2005 at 01:20:14PM +0200, Sebastian Riedel wrote:
> Am 26.08.2005 um 13:00 schrieb Bernhard Graf:
> >Maybe you could implement sth. like a find_comp_by_regex() if people
> >find it usefull.
> Umm...the whole idea was about less typing. :)

How about making the behaviour like the following (the regex search "feature"
has annoyed me too :) -


looks for (in order)


and change the check from a straight if to an exists check, which will sort
the CDBI issue.

I think it might also be worth searching for each of the above case-insensitive
so that $c->comp("foo") will return MyApp::C::Foo since this makes sense
w.r.t. the /foo/ URL base for local actions therein.

     Matt S Trout       Specialists in perl consulting, web development, and
  Technical Director    UNIX/Linux systems architecture and automation. Mail
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

 + Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +

More information about the Catalyst mailing list