Skip to content

Commit

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

* Apply fixes from StyleCI

* chore: additional namespace change

* Apply fixes from StyleCI

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
  • Loading branch information
imorland and StyleCIBot authored Nov 3, 2024
1 parent 94040c4 commit 4cc4917
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"require-dev": {
"fof/oauth": "*",
"flarum/phpstan": "*",
"blomstra/gdpr": "@beta"
"flarum/gdpr": "dev-main"
},
"scripts": {
"analyse:phpstan": "phpstan analyse",
Expand Down
4 changes: 2 additions & 2 deletions extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@

namespace IanM\BoringAvatars;

use Blomstra\Gdpr\Extend\UserData;
use Flarum\Api\Serializer\BasicUserSerializer;
use Flarum\Api\Serializer\ForumSerializer;
use Flarum\Extend;
use Flarum\Frontend\Document;
use Flarum\Gdpr\Extend\UserData;
use Flarum\Settings\Event\Saved;
use Flarum\User\User;
use IanM\BoringAvatars\Api\Serializer\AddBoringAvatarAttributes;
Expand Down Expand Up @@ -73,7 +73,7 @@
->command(Console\GenerateBoringAvatars::class),

(new Extend\Conditional())
->whenExtensionEnabled('blomstra-gdpr', fn () => [
->whenExtensionEnabled('flarum-gdpr', fn () => [
(new UserData())
->addType(Data\BoringAvatar::class),
]),
Expand Down
2 changes: 1 addition & 1 deletion locale/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ianm-boring-avatars:
theme_help: |
The theme to use for the boring avatars.
blomstra-gdpr:
flarum-gdpr:
lib:
data:
boringavatar:
Expand Down
2 changes: 1 addition & 1 deletion src/Data/BoringAvatar.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace IanM\BoringAvatars\Data;

use Blomstra\Gdpr\Data\Type;
use Flarum\Gdpr\Data\Type;

class BoringAvatar extends Type
{
Expand Down
4 changes: 2 additions & 2 deletions src/Listener/GenerateAvatar.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

namespace IanM\BoringAvatars\Listener;

use Blomstra\Gdpr\Events\Erased;
use Blomstra\Gdpr\Models\ErasureRequest;
use Flarum\Bus\Dispatcher as BusDispatcher;
use Flarum\Gdpr\Events\Erased;
use Flarum\Gdpr\Models\ErasureRequest;
use Flarum\Settings\SettingsRepositoryInterface;
use Flarum\User\Event\EmailChanged;
use Flarum\User\Event\LoggedIn;
Expand Down

0 comments on commit 4cc4917

Please sign in to comment.