From 88dcbb207dee3dcb512be8dfc2cc2e098e01ee8f Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 28 Oct 2019 12:05:47 -0400 Subject: [PATCH] Changing DKAN frontend routes from a class to service (#242) --- modules/custom/dkan_frontend/dkan_frontend.routing.yml | 2 +- modules/custom/dkan_frontend/dkan_frontend.services.yml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/custom/dkan_frontend/dkan_frontend.routing.yml b/modules/custom/dkan_frontend/dkan_frontend.routing.yml index 2687958b9..cf2e01773 100644 --- a/modules/custom/dkan_frontend/dkan_frontend.routing.yml +++ b/modules/custom/dkan_frontend/dkan_frontend.routing.yml @@ -1,2 +1,2 @@ route_callbacks: - - '\Drupal\dkan_frontend\Routing\RouteProvider::routes' + - 'dkan_frontend.route_provider::routes' diff --git a/modules/custom/dkan_frontend/dkan_frontend.services.yml b/modules/custom/dkan_frontend/dkan_frontend.services.yml index ab8fb59da..3208caeec 100644 --- a/modules/custom/dkan_frontend/dkan_frontend.services.yml +++ b/modules/custom/dkan_frontend/dkan_frontend.services.yml @@ -4,3 +4,7 @@ services: arguments: - '@app.root' shared: false + dkan_frontend.route_provider: + class: Drupal\dkan_frontend\Routing\RouteProvider + arguments: + - '@app.root'