X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FUtils.pm;h=62b8446326bdeee31246b49f8280a179777ed5e5;hb=44c6d25a7b66041252d88ea41f26631aeca30eef;hp=0598f535bd7f9ad8f1a9f33c8a63cf253b0a7e5c;hpb=85d9fce671016c9040775c8b4458cf9c72ec2208;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Utils.pm b/lib/Catalyst/Utils.pm index 0598f53..62b8446 100644 --- a/lib/Catalyst/Utils.pm +++ b/lib/Catalyst/Utils.pm @@ -233,10 +233,15 @@ sub request { return $request; } -=head2 ensure_class_loaded($class_name) +=head2 ensure_class_loaded($class_name, \%opts) Loads the class unless it already has been loaded. +If $opts{ignore_loaded} is true always tries the require whether the package +already exists or not. Only pass this if you're either (a) sure you know the +file exists on disk or (b) have code to catch the file not found exception +that will result if it doesn't. + =cut sub ensure_class_loaded {