Skip to content

Commit

Permalink
chore: prep for flarum/gdpr (#34)
Browse files Browse the repository at this point in the history
* chore: prep for flarum/gdpr

* Apply fixes from StyleCI

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
  • Loading branch information
imorland and StyleCIBot authored Nov 3, 2024
1 parent 9812e94 commit 248749a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"flarum/testing": "^1.8.0",
"fof/oauth": "*",
"flarum/phpstan": "^1.8",
"blomstra/gdpr": "@beta",
"flarum/gdpr": "dev-main",
"sycho/flarum-private-facade": "^0.1.16",
"blomstra/turnstile": "*"
}
Expand Down
4 changes: 2 additions & 2 deletions extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@

namespace IanM\TwoFactor;

use Blomstra\Gdpr\Extend\UserData;
use Flarum\Api\Controller\ShowUserController;
use Flarum\Api\Serializer\BasicUserSerializer;
use Flarum\Api\Serializer\CurrentUserSerializer;
use Flarum\Api\Serializer\ForumSerializer;
use Flarum\Api\Serializer\GroupSerializer;
use Flarum\Extend;
use Flarum\Gdpr\Extend\UserData;
use Flarum\Group\Event\Saving as GroupSaving;
use Flarum\Group\Group;
use Flarum\User\User;
Expand Down Expand Up @@ -117,7 +117,7 @@
->addBackendRouteExclusion('twoFactor.oauth.verify')
]),
])
->whenExtensionEnabled('blomstra-gdpr', fn () => [
->whenExtensionEnabled('flarum-gdpr', fn () => [
(new UserData())
->addType(Data\TwoFactorData::class),
]),
Expand Down
2 changes: 1 addition & 1 deletion src/Data/TwoFactorData.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace IanM\TwoFactor\Data;

use Blomstra\Gdpr\Data\Type;
use Flarum\Gdpr\Data\Type;
use IanM\TwoFactor\Model\TwoFactor;
use Illuminate\Support\Arr;

Expand Down

0 comments on commit 248749a

Please sign in to comment.