Bug fix for require dieing as make_immutable doesn't return true.
[catagits/Catalyst-Runtime.git] / lib / Catalyst / ScriptRunner.pm
index 1e9626e..7619e61 100644 (file)
@@ -48,6 +48,7 @@ sub run {
 }
 
 __PACKAGE__->meta->make_immutable;
+1;
 
 =head1 NAME
 
@@ -61,7 +62,8 @@ Catalyst::ScriptRunner - The Catalyst Framework script runner
 
 =head1 DESCRIPTION
 
-This class is responsible for loading and running scripts, either in the application specific namespace
+This class is responsible for loading and running scripts, either in the
+application specific namespace
 (e.g. C<MyApp::Script::Server>), or the Catalyst namespace (e.g. C<Catalyst::Script::Server>).
 
 If your application contains a custom script, then it will be used in preference to the generic
@@ -69,7 +71,8 @@ script, and is expected to sub-class the standard script.
 
 =head1 TRAIT LOADING
 
-Catalyst will automatically load and apply roles to the scripts in your appliction.
+Catalyst will automatically load and apply roles to the scripts in your
+application.
 
 C<MyApp::TraitFor::Script> will be loaded if present, and will be applied to B<ALL>
 scripts.
@@ -84,6 +87,16 @@ individually.
 Called with two parameters, the application class (e.g. MyApp)
 and the script class, (i.e. one of Server/FastCGI/CGI/Create/Test)
 
+=head2 find_script_class ($appname, $script_name)
+
+Finds and loads the class for the script, trying the application specific
+script first, and falling back to the generic script. Returns the script
+which was loaded.
+
+=head2 find_script_traits ($appname, @try)
+
+Finds and loads a set of traits. Returns the list of traits which were loaded.
+
 =head1 AUTHORS
 
 Catalyst Contributors, see Catalyst.pm