GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  CATALYST::SCRIPTRUNNER (3)

.ds Aq ’

NAME

Catalyst::ScriptRunner - The Catalyst Framework script runner

CONTENTS

SYNOPSIS



    # Will run MyApp::Script::Server if it exists, otherwise
    # will run Catalyst::Script::Server.
    Catalyst::ScriptRunner->run(MyApp, Server);



DESCRIPTION

This class is responsible for loading and running scripts, either in the application specific namespace (e.g. MyApp::Script::Server), or the Catalyst namespace (e.g. Catalyst::Script::Server).

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.

TRAIT LOADING

Catalyst will automatically load and apply roles to the scripts in your application.

MyApp::TraitFor::Script will be loaded if present, and will be applied to <B>ALLB> scripts.

MyApp::TraitFor::Script::XXXX will be loaded (if present) and for script individually.

METHODS

run ($application_class, CW$scriptclass)

Called with two parameters, the application class (e.g. MyApp) and the script class, (i.e. one of Server/FastCGI/CGI/Create/Test)

find_script_class ($appname, CW$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.

find_script_traits ($appname, CW@try)

Finds and loads a set of traits. Returns the list of traits which were loaded.

AUTHORS

Catalyst Contributors, see Catalyst.pm

COPYRIGHT

This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 CATALYST::SCRIPTRUNNER (3) 2012-04-18

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.