This is wrong and should not be done. Apps must not call each others code like this.
What you want to do is make it possible for other apps to provide dashboard panels.
Have a look at:
The activity manager with settings/filters/providers
The notification manager with notifiers/apps
The settings manager with personal/admin sections/settings
We have enough examples how to avoid inter-app-dependencies, but this here is just bad...
https://github.com/nextcloud/dashboard/blob/master/lib/Service/ActivityService.php#L29-L31
This is wrong and should not be done. Apps must not call each others code like this. What you want to do is make it possible for other apps to provide dashboard panels. Have a look at:
We have enough examples how to avoid inter-app-dependencies, but this here is just bad...