RouteDiff class final
Laravel's routes against Daravel's, for a migration route by route
(the strangler fig pattern, Blueprint #29): which Laravel routes
Daravel answers already, which still go to Laravel through
withUpstream, and which exist in Daravel only.
Constructors
-
RouteDiff.compute(Iterable<
RouteKey> laravel, Iterable<RouteKey> daravel) -
Compares
laravelwithdaravel. Methods are compared one by one (GET|HEADisGET), URIs without their leading slash and parameter names (users/{user}matches/users/{id},{id?}and{id}too).factory
Properties
-
daravelOnly
→ List<
RouteKey> -
Daravel routes Laravel does not have.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
legacy
→ List<
RouteKey> -
Laravel routes Daravel does not answer:
withUpstreamforwards them.final -
migrated
→ List<
RouteKey> -
Laravel routes Daravel answers.
final
- percent → double
-
The share of Laravel's routes Daravel answers, 0 to 100.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- total → int
-
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
render(
) → String - The terminal report.
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromRouter(
Router router) → List< RouteKey> -
The routes of a Daravel router, one key per method, without
HEAD. -
parseLaravel(
String json) → List< RouteKey> -
One key per method of
php artisan route:list --jsonoutput, withoutHEAD(it followsGET).