There's a lot of copy/paste code in the action manager class to return arrays of specific controller types. Use generics to write a general purpose getControllers function that takes a typeguard, then use that in each of the controller type functions.
There's a lot of copy/paste code in the action manager class to return arrays of specific controller types. Use generics to write a general purpose getControllers function that takes a typeguard, then use that in each of the controller type functions.