Skip to content

Commit e3e6385

Browse files
committed
grab solid webhook service from dependancy injection
1 parent 5bc53b1 commit e3e6385

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

solid/lib/Notifications/SolidWebhook.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
<?php
22
namespace OCA\Solid\Notifications;
33

4+
use OCA\Solid\Service\SolidWebhookService;
45
use Pdsinterop\Solid\SolidNotifications\SolidNotificationsInterface;
56

67
class SolidWebhook implements SolidNotificationsInterface
78
{
8-
public function __construct(\OCA\Solid\Service\SolidWebhookService $webhookService) {
9-
$this->webhookService = $webhookService;
9+
public function __construct() {
10+
$app = new \OCP\AppFramework\App('solid');
11+
$this->webhookService = $app->getContainer()->get(SolidWebhookService::class);
1012
}
1113

1214
public function send($path, $type) {

0 commit comments

Comments
 (0)