I want to do this in a static function. Is there any way to get a reference from the global $app variable for example ?
PHP Code:
$activityService = $this->getServiceFactory()->create('Activities');
Comment