diff --git a/composer.json b/composer.json index b2c6522..36a03f7 100644 --- a/composer.json +++ b/composer.json @@ -48,7 +48,7 @@ "color": "#fff" }, "optional-dependencies": [ - "blomstra/gdpr" + "flarum/gdpr" ] }, "flagrow": { @@ -67,7 +67,7 @@ }, "require-dev": { "flarum/phpstan": "*", - "blomstra/gdpr": "@beta" + "flarum/gdpr": "dev-main" }, "scripts": { "analyse:phpstan": "phpstan analyse", diff --git a/extend.php b/extend.php index 179d66f..8b76020 100644 --- a/extend.php +++ b/extend.php @@ -11,7 +11,7 @@ namespace FoF\Terms; -use Blomstra\Gdpr\Extend\UserData; +use Flarum\Gdpr\Extend\UserData; use Flarum\Api\Controller\ShowForumController; use Flarum\Api\Serializer\BasicUserSerializer; use Flarum\Api\Serializer\ForumSerializer; @@ -90,7 +90,7 @@ ->addInclude('fofTermsPolicies'), (new Extend\Conditional()) - ->whenExtensionEnabled('blomstra-gdpr', fn () => [ + ->whenExtensionEnabled('flarum-gdpr', fn () => [ (new UserData()) ->addType(Data\UserPolicyData::class), ]), diff --git a/resources/locale/en.yml b/resources/locale/en.yml index b7adfaa..1d07b01 100644 --- a/resources/locale/en.yml +++ b/resources/locale/en.yml @@ -77,7 +77,7 @@ fof-terms: user_controls: state_button: Terms accept state -blomstra-gdpr: +flarum-gdpr: lib: data: userpolicydata: diff --git a/src/Data/UserPolicyData.php b/src/Data/UserPolicyData.php index 6b80aad..421fc72 100644 --- a/src/Data/UserPolicyData.php +++ b/src/Data/UserPolicyData.php @@ -11,7 +11,7 @@ namespace FoF\Terms\Data; -use Blomstra\Gdpr\Data\Type; +use Flarum\Gdpr\Data\Type; use Carbon\Carbon; use FoF\Terms\Policy; use FoF\Terms\Repositories\PolicyRepository;