Skip to content

Commit

Permalink
Backport 1.4.1 changes from Pro
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkwinkelmann committed Jul 21, 2021
1 parent 96d182c commit 29828da
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,7 @@
->addGambit(Search\Gambits\DiscussionGambit::class)
->addGambit(Search\Gambits\IpGambit::class)
->addGambit(Search\Gambits\UserGambit::class),

(new Extend\ServiceProvider())
->register(LoggerServiceProvider::class),
];
17 changes: 17 additions & 0 deletions src/LoggerServiceProvider.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

namespace Kilowhat\Audit;

use Flarum\Foundation\AbstractServiceProvider;

class LoggerServiceProvider extends AbstractServiceProvider
{
public function register()
{
$this->container->extend('flarum.api_client.exclude_middleware', function (array $middlewares): array {
$middlewares[] = Middlewares\SetLoggerActor::class;

return $middlewares;
});
}
}

0 comments on commit 29828da

Please sign in to comment.