Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 292920

Create a \Drupal\Component\Routing\ namespace and move Drupal-independent routing classes into it

$
0
0

Problem/Motivation

The new route match is a concept which is not bound to drupal itself. On the other hand it is a great tool to decouple your
code from needing the request in all kind of places.

On the other hand this makes code less compatible with other PHP folks code out there.

Proposed resolution

Move the Route match into the \code>\Drupal\component\Routingnamespace, so one day it can be shared using composer.

Remaining tasks

User interface changes

API changes

Original report by @effulgentsia

From #2294157-7: Switch getOptions() and getRouteParameters() within LocalActionInterface and LocalTaskInterface to use RouteMatch:

Did we actually ever considered to move the routeMatch interface into Drupal/Component? This could be really useful for other code as well and allows people to write generic libraries without pulling in all of drupal.


Viewing all articles
Browse latest Browse all 292920

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>