Skip to content

Commit

Permalink
chore: prep for flarum/gdpr
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland committed Nov 2, 2024
1 parent 423028e commit 1349844
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@

return [
(new Extend\Frontend('forum'))
->js(__DIR__.'/js/dist/forum.js')
->css(__DIR__.'/resources/less/forum.less'),
->js(__DIR__ . '/js/dist/forum.js')
->css(__DIR__ . '/resources/less/forum.less'),

(new Extend\Frontend('admin'))
->js(__DIR__.'/js/dist/admin.js')
->css(__DIR__.'/resources/less/admin.less')
->js(__DIR__ . '/js/dist/admin.js')
->css(__DIR__ . '/resources/less/admin.less')
->content(function (Document $document) {
$document->payload['fof-oauth'] = resolve('fof-oauth.providers.admin');
}),

new Extend\Locales(__DIR__.'/resources/locale'),
new Extend\Locales(__DIR__ . '/resources/locale'),

(new Extend\Middleware('forum'))
->add(Middleware\ErrorHandler::class)
Expand Down Expand Up @@ -80,4 +80,12 @@

(new Extend\SimpleFlarumSearch(UserSearcher::class))
->addGambit(Query\SsoIdFilterGambit::class),

(new Extend\Conditional())
->whenExtensionEnabled('flarum-gdpr', fn() => [

Check failure on line 85 in extend.php

View workflow job for this annotation

GitHub Actions / run / PHPStan PHP 7.3

Syntax error, unexpected T_DOUBLE_ARROW, expecting ')' on line 85

Check failure on line 85 in extend.php

View workflow job for this annotation

GitHub Actions / run / PHPStan PHP 7.3

Syntax error, unexpected T_DOUBLE_ARROW, expecting ')' on line 85

Check failure on line 85 in extend.php

View workflow job for this annotation

GitHub Actions / run / PHPStan PHP 7.3

Syntax error, unexpected T_DOUBLE_ARROW, expecting ')' on line 85

Check failure on line 85 in extend.php

View workflow job for this annotation

GitHub Actions / run / PHPStan PHP 7.3

Syntax error, unexpected T_DOUBLE_ARROW, expecting ')' on line 85

Check failure on line 85 in extend.php

View workflow job for this annotation

GitHub Actions / run / PHPStan PHP 7.3

Syntax error, unexpected T_DOUBLE_ARROW, expecting ')' on line 85

Check failure on line 85 in extend.php

View workflow job for this annotation

GitHub Actions / run / PHPStan PHP 7.3

Syntax error, unexpected T_DOUBLE_ARROW, expecting ')' on line 85

Check failure on line 85 in extend.php

View workflow job for this annotation

GitHub Actions / run / PHPStan PHP 7.3

Syntax error, unexpected T_DOUBLE_ARROW, expecting ')' on line 85

Check failure on line 85 in extend.php

View workflow job for this annotation

GitHub Actions / run / PHPStan PHP 7.3

Syntax error, unexpected T_DOUBLE_ARROW, expecting ')' on line 85

Check failure on line 85 in extend.php

View workflow job for this annotation

GitHub Actions / run / PHPStan PHP 7.3

Syntax error, unexpected T_DOUBLE_ARROW, expecting ')' on line 85

Check failure on line 85 in extend.php

View workflow job for this annotation

GitHub Actions / run / PHPStan PHP 7.3

Syntax error, unexpected T_DOUBLE_ARROW, expecting ')' on line 85
(new Extend\ApiSerializer(ForumSerializer::class))
->attribute('passwordlessSignUp', function (ForumSerializer $serializer) {
return !$serializer->getActor()->isGuest() && $serializer->getActor()->loginProviders()->count() > 0;
}),
]),
];

0 comments on commit 1349844

Please sign in to comment.