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'