Overview

A Slim application provides a set of hooks to which you can register your own callbacks.

What is a hook?

A “hook” is a moment in the Slim application lifecycle at which a priority list of callables assigned to the hookwill be invoked. A hook is identified by a string name.

A “callable” is anything that returns true for is_callable(). A callable is assigned to a hook and is invokedwhen the hook is called. If multiple callables are assigned to a single hook, each callable is invoked in the orderassigned.