Skip to content

Commit

Permalink
Changing DKAN frontend routes from a class to service (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgading authored and fmizzell committed Oct 28, 2019
1 parent 783f4fe commit 88dcbb2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/custom/dkan_frontend/dkan_frontend.routing.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
route_callbacks:
- '\Drupal\dkan_frontend\Routing\RouteProvider::routes'
- 'dkan_frontend.route_provider::routes'
4 changes: 4 additions & 0 deletions modules/custom/dkan_frontend/dkan_frontend.services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ services:
arguments:
- '@app.root'
shared: false
dkan_frontend.route_provider:
class: Drupal\dkan_frontend\Routing\RouteProvider
arguments:
- '@app.root'

0 comments on commit 88dcbb2

Please sign in to comment.