Add new activity logging code to replace audit log

This commit is contained in:
DaneEveritt 2022-05-28 15:36:26 -04:00
parent c14c7b436e
commit 5bb66a00d8
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
11 changed files with 534 additions and 0 deletions

View file

@ -0,0 +1,20 @@
<?php
namespace Pterodactyl\Providers;
use Illuminate\Support\ServiceProvider;
use Pterodactyl\Services\Activity\AcitvityLogBatchService;
use Pterodactyl\Services\Activity\ActivityLogTargetableService;
class ActivityLogServiceProvider extends ServiceProvider
{
/**
* Registers the necessary activity logger singletons scoped to the individual
* request instances.
*/
public function register()
{
$this->app->scoped(AcitvityLogBatchService::class);
$this->app->scoped(ActivityLogTargetableService::class);
}
}