In the bundle, I created a RouteGeneratorInterface to describe the callable that is used for generating paginated URLs. Would there be value in deprecating the existing callable $routeGenerator signatures in favor of the typed PHP class? Note, I wouldn't change the interface signature, so it would still fulfill the callable typehint, but if the interface is added in at some point the requirements would change to require that instead of any callable.
In the bundle, I created a
RouteGeneratorInterface
to describe the callable that is used for generating paginated URLs. Would there be value in deprecating the existingcallable $routeGenerator
signatures in favor of the typed PHP class? Note, I wouldn't change the interface signature, so it would still fulfill the callable typehint, but if the interface is added in at some point the requirements would change to require that instead of any callable.