Skip to content

Commit

Permalink
chore: register data source routes after application has booted (#4658)
Browse files Browse the repository at this point in the history
  • Loading branch information
webong committed Oct 25, 2023
1 parent da720c5 commit f8e965d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Ushahidi/DataSource/DataSourceServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ public function register()

public function boot()
{
$this->app->make('datasources')->registerRoutes($this->app->router);
$this->app->booted(function () {
$this->app->make('datasources')->registerRoutes($this->app['router']);
});

Event::listen('site.changed', function () {
// Reset datasources
Expand Down

0 comments on commit f8e965d

Please sign in to comment.