Catalyst::Controller::BindLex does some fairly nasty magic - the attribute wrapping tricks are complex and will break if you declare the same lexical name twice in the same method, and the approach to get $c out of the call stack is hacky and fragile.

It was designed as a PROOF OF CONCEPT ONLY and should not be considered for use in production. The authors no longer consider it a viable implementation plan and THIS MODULE IS NOT SUPPORTED AND WILL NOT BE MAINTAINED.

If you really want to use it, please read the source code and be sure you understand it well enough to fix anything that goes wrong, then set

If you use the same name for two variables with the same storage binding attribute they will be aliased to each other, so you can use this for reading as well as writing values across controller subs. This is almost like sharing your lexical scope.

You can add attributes to the configaration by mapping attributes to handlers.

Handlers are either strings of methods to be called on $c with no arguments, which are expected to return a hash reference (like stash, session, etc), or code references invoked with $c, a reference to the variable we're binding, and the name of the variable we're binding, also expected to return a hash reference.