-
-
23 Jul 2022 13:13:34 UTC
- Distribution: Catalyst-Runtime
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (27)
- Testers (447 / 0 / 0)
- Kwalitee
Bus factor: 11- 85.12% Coverage
- License: perl_5
- Perl: v5.8.3
- Activity
24 month- Tools
- Download (375.11KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- CGI::Simple::Cookie
- CGI::Struct
- Carp
- Class::C3::Adopt::NEXT
- Class::Load
- Data::Dump
- Data::OptList
- Devel::InnerPackage
- Encode
- HTML::Entities
- HTML::HeadParser
- HTTP::Body
- HTTP::Headers
- HTTP::Request
- HTTP::Response
- Hash::MultiValue
- JSON::MaybeXS
- LWP
- List::Util
- MRO::Compat
- Module::Pluggable
- Moose
- MooseX::Emulate::Class::Accessor::Fast
- MooseX::Getopt
- MooseX::MethodAttributes::Role::AttrContainer::Inheritable
- Path::Class
- PerlIO::utf8_strict
- Plack
- Plack::Middleware::Conditional
- Plack::Middleware::ContentLength
- Plack::Middleware::FixMissingBodyInRedirect
- Plack::Middleware::HTTPExceptions
- Plack::Middleware::Head
- Plack::Middleware::IIS6ScriptNameFix
- Plack::Middleware::IIS7KeepAliveFix
- Plack::Middleware::LighttpdScriptNameFix
- Plack::Middleware::MethodOverride
- Plack::Middleware::RemoveRedundantBody
- Plack::Middleware::ReverseProxy
- Plack::Request::Upload
- Plack::Test::ExternalServer
- Safe::Isa
- Scalar::Util
- Socket
- Stream::Buffered
- String::RewritePrefix
- Sub::Exporter
- Task::Weaken
- Text::Balanced
- Text::SimpleTable
- Time::HiRes
- Tree::Simple
- Tree::Simple::Visitor::FindByUID
- Try::Tiny
- URI
- URI::ws
- namespace::clean
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Catalyst::ScriptRunner - The Catalyst Framework script runner
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 ALL scripts.MyApp::TraitFor::Script::XXXX
will be loaded (if present) and for script individually.METHODS
run ($application_class, $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, $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, @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.
Module Install Instructions
To install Catalyst::Runtime, copy and paste the appropriate command in to your terminal.
cpanm Catalyst::Runtime
perl -MCPAN -e shell install Catalyst::Runtime
For more information on module installation, please visit the detailed CPAN module installation guide.