Fixed wrong used class
Merge pull request #2744 from iamdto/fix-custom_route_loader

[Cookbook][Routing] Fixed wrong method definition