prefix($class, $name);

request($uri)

ensure_class_loaded($class_name, \%opts)

Loads the class unless it already has been loaded.

If $opts{ignore_loaded} is true always tries the require whether the package already exists or not. Only pass this if you're either (a) sure you know the file exists on disk or (b) have code to catch the file not found exception that will result if it doesn't.

merge_hashes($hashref, $hashref)

Base code to recursively merge two hashes together with right-hand precedence.

env_value($class, $key)

Checks for and returns an environment value. For instance, if $key is 'home', then this method will check for and return the first value it finds, looking at $ENV{MYAPP_HOME} and $ENV{CATALYST_HOME}.

term_width

Try to guess terminal width to use with formatting of debug output

All you need to get this work, is:

1) Install Term::Size::Any, or

2) Export $COLUMNS from your shell.

(Warning to bash users: 'echo $COLUMNS' may be showing you the bash variable, not $ENV{COLUMNS}. 'export COLUMNS=$COLUMNS' and you should see that 'env' now lists COLUMNS.)

As last resort, default value of 80 chars will be used.

Calling term_width with a true value will cause it to be recalculated; you can use this to cause it to get recalculated when your terminal is resized like this

apply_registered_middleware ($psgi)

This exists to deal with the fact Catalyst registered middleware can be either an object with a wrap method or a coderef.

inject_component

Used to add components at runtime:

into The Catalyst package to inject into (e.g. My::App)
component The component package to inject
traits (Optional) ArrayRef of L<Moose::Role>s that the componet should consume.
as An optional moniker to use as the package name for the derived component

Will inject Controller, Model, and View components into your Catalyst application at setup (run)time. It does this by creating a new package on-the-fly, having that package extend the given component, and then having Catalyst setup the new component (via $app->setup_component).

NOTE: This is basically a core version of CatalystX::InjectComponent. If you were using that you can now use this safely instead. Going forward changes required to make this work will be synchronized with the core method.

NOTE: The 'traits' option is unique to the Catalyst::Utils version of this feature.