We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bc53b1 commit e3e6385Copy full SHA for e3e6385
1 file changed
solid/lib/Notifications/SolidWebhook.php
@@ -1,12 +1,14 @@
1
<?php
2
namespace OCA\Solid\Notifications;
3
4
+ use OCA\Solid\Service\SolidWebhookService;
5
use Pdsinterop\Solid\SolidNotifications\SolidNotificationsInterface;
6
7
class SolidWebhook implements SolidNotificationsInterface
8
{
- public function __construct(\OCA\Solid\Service\SolidWebhookService $webhookService) {
9
- $this->webhookService = $webhookService;
+ public function __construct() {
10
+ $app = new \OCP\AppFramework\App('solid');
11
+ $this->webhookService = $app->getContainer()->get(SolidWebhookService::class);
12
}
13
14
public function send($path, $type) {
0 commit comments