You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provider based url generators allow you to pass in not just the name of the route,
but also the route object itself.
public function generate($name, $parameters = array(), $absolute = false) {
if ($name instanceof SymfonyRoute) {
$route = $name;
} elseif (null === $route = $this->provider->getRouteByName($name, $parameters)) {
throw new RouteNotFoundException(sprintf('Route "%s" does not exist.', $name));
}
If you do that the doGenerate() method is called on the base url generator, which then potentially uses this $route object in the debug messages and break.
Idea: Use getRouteDebugMessage() in the base url generator somehow
Provider based url generators allow you to pass in not just the name of the route,
but also the route object itself.
If you do that the doGenerate() method is called on the base url generator, which then potentially uses this $route object in the debug messages and break.
Idea: Use getRouteDebugMessage() in the base url generator somehow
This problem causes issues for Drupal: https://drupal.org/node/2031353#comment-7602521
The text was updated successfully, but these errors were encountered: