onAttached
Called when the middleware manager is attached.
This method initializes all middleware switchers by invoking their onAttached method.
Parameters
middlewareContext
The context providing information about the middleware state.