11 Sep 2020 12:38:26 UTC
- Distribution: Catalyst-Runtime
- Source (raw)
- Browse (raw)
- How to Contribute
- Repository (git clone)
- Issues (26)
- Testers (1863 / 1 / 0)
- KwaliteeBus factor: 11
- 85.17% Coverage
- License: perl_5
- Perl: v5.8.3
- Activity24 month
- Download (374.97KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- TRAIT LOADING
Catalyst::ScriptRunner - The Catalyst Framework script runner
# Will run MyApp::Script::Server if it exists, otherwise # will run Catalyst::Script::Server. Catalyst::ScriptRunner->run('MyApp', 'Server');
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.
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.
Catalyst will automatically load and apply roles to the scripts in your application.
MyApp::TraitFor::Scriptwill be loaded if present, and will be applied to ALL scripts.
MyApp::TraitFor::Script::XXXXwill be loaded (if present) and for script individually.
Called with two parameters, the application class (e.g. MyApp) and the script class, (i.e. one of Server/FastCGI/CGI/Create/Test)
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.
Finds and loads a set of traits. Returns the list of traits which were loaded.
Catalyst Contributors, see Catalyst.pm
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Catalyst::Runtime, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Catalyst::Runtime
For more information on module installation, please visit the detailed CPAN module installation guide.