In a runtime context, given I have a route object, e.g. from route name
user.register, how do I find the path or routing.yml or other definer of the route?
Does Drupal or Symfony provide for this?
There's probably a better way to do what I want. The scenario I have is: a plugin manager is deciding which plugin to instantiate based on route context. For example, if module
foo defines route
foo.bar at path
/foo/bar, the plugin manager will instantiate plugin
foo_plugin. If module,
zee defines route
zee.bang at path
/zee/bang, the plugin manager will instantiate