X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FScriptRunner.pm;h=f652e785bcafad718a0349e074843ec793262ea3;hb=859ab869f91223b635a515ede9b083df2b964961;hp=3797a136bfb26511f1ea0e23ef16123d9335af94;hpb=725afced1f1ab67a6e54849325368ee61715cc1f;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/ScriptRunner.pm b/lib/Catalyst/ScriptRunner.pm index 3797a13..f652e78 100644 --- a/lib/Catalyst/ScriptRunner.pm +++ b/lib/Catalyst/ScriptRunner.pm @@ -61,8 +61,23 @@ Catalyst::ScriptRunner - The Catalyst Framework script runner =head1 DESCRIPTION -This class is responsible for running scripts, either in the application specific namespace -(e.g. C), or the Catalyst namespace (e.g. C) +This class is responsible for loading and running scripts, either in the +application specific namespace +(e.g. C), or the Catalyst namespace (e.g. C). + +If your application contains a custom script, then it will be used in preference to the generic +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 +application. + +C will be loaded if present, and will be applied to B +scripts. + +C will be loaded (if present) and for script +individually. =head1 METHODS @@ -71,6 +86,16 @@ This class is responsible for running scripts, either in the application specifi 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