1Catalyst::ScriptRunner(U3s)er Contributed Perl DocumentatCiaotnalyst::ScriptRunner(3)
2
3
4
6 Catalyst::ScriptRunner - The Catalyst Framework script runner
7
9 # Will run MyApp::Script::Server if it exists, otherwise
10 # will run Catalyst::Script::Server.
11 Catalyst::ScriptRunner->run('MyApp', 'Server');
12
14 This class is responsible for loading and running scripts, either in
15 the application specific namespace (e.g. "MyApp::Script::Server"), or
16 the Catalyst namespace (e.g. "Catalyst::Script::Server").
17
18 If your application contains a custom script, then it will be used in
19 preference to the generic script, and is expected to sub-class the
20 standard script.
21
23 Catalyst will automatically load and apply roles to the scripts in your
24 application.
25
26 "MyApp::TraitFor::Script" will be loaded if present, and will be
27 applied to ALL scripts.
28
29 "MyApp::TraitFor::Script::XXXX" will be loaded (if present) and for
30 script individually.
31
33 run ($application_class, $scriptclass)
34 Called with two parameters, the application class (e.g. MyApp) and the
35 script class, (i.e. one of Server/FastCGI/CGI/Create/Test)
36
37 find_script_class ($appname, $script_name)
38 Finds and loads the class for the script, trying the application
39 specific script first, and falling back to the generic script. Returns
40 the script which was loaded.
41
42 find_script_traits ($appname, @try)
43 Finds and loads a set of traits. Returns the list of traits which were
44 loaded.
45
47 Catalyst Contributors, see Catalyst.pm
48
50 This library is free software. You can redistribute it and/or modify it
51 under the same terms as Perl itself.
52
53
54
55perl v5.38.0 2023-07-24 Catalyst::ScriptRunner(3)