Cataly...Runner(3pm)
π NAME π
Catalyst::ScriptRunner β the Catalyst Framework script runner, bestie. it's literally the lil bouncer that decides which script gets to run. β¨
πΈ SYNOPSIS πΈ
okay so here's the vibe:
# Will run MyApp::Script::Server if it exists, otherwise
# will run Catalyst::Script::Server.
Catalyst::ScriptRunner->run('MyApp', 'Server');
like. it checks for your app's script first. if it's not there? generic script steps in. no drama. π«Ά
π¦ DESCRIPTION π¦
so this class is the one responsible for loading and running scripts β either in the application-specific namespace (think MyApp::Script::Server) or in the Catalyst namespace (think Catalyst::Script::Server).
and the way it picks? if your application contains a custom script, then it will be used in preference to the generic script, and it's expected to sub-class the standard script. so like, your script is the main character, but it still gotta respect the family tree. π
π TRAIT LOADING π
Catalyst will automatically load and apply roles to the scripts in your application. it just does it. no asking. β¨
MyApp::TraitFor::Scriptwill be loaded if present, and will be applied to ALL scripts. every single one. periodt.MyApp::TraitFor::Script::XXXXwill be loaded (if present) and for script individually. so like, one specific lil guy gets its own special treatment. π
π 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)
that's it. two args. go off. π₯
β 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. so it's giving "try the fancy one, settle for the basic one, then tell you which one you got." π
β find_script_traits ($appname, @try)
Finds and loads a set of traits. Returns the list of traits which were loaded. plural. a whole squad of traits. π«Ά
π AUTHORS π
Catalyst Contributors, see Catalyst.pm. iconic collective energy, ngl. π
π COPYRIGHT π
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself. so like, it's free free. go wild (respectfully). πΈ
sign-off bestie moment: this page came from the User Contributed Perl Documentation for Cataly...Runner(3pm), generated with perl v5.40.0 on 2024-11-15. that's the whole vibe check. mwah. π
β¨
π¦ where this page comes from
- debian trixie: libcatalyst-perl 5.90132-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatalyst-perl 5.90132-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatalyst-perl 5.90132-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms