Add missing use statement
Add array type in constructor for global function
Replace getRouteName by getActualRouteName
Add GlobalFunction Interface for parameters injection