We have already seen in our previous section all the events that are announced by WireBox, but how do we listen? There are two ways to build WireBox listeners because there are two modes of operations, but the core is the same.
- 1.Listeners are simple CFCs that must create methods that match the same name of the event they want to listen to.
These methods can take up to two parameters depending on your mode of operation (standalone or ColdBox). The one main difference between pure Wirebox listeners and ColdBox interceptors are that the
configuremethod for the standalone WireBox is different.