Skip to content

Commit cb346cc

Browse files
author
farhadzand
committed
refactor: clean up AuditLoggerServiceProvider by removing unused audit driver registration and facade binding
- Removed the binding for the audit driver interface, simplifying the service provider. - Eliminated the facade accessor registration to streamline the codebase. - No functional changes; the service provider remains focused on core responsibilities.
1 parent fdd8fc0 commit cb346cc

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/AuditLoggerServiceProvider.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,6 @@ public function register(): void
2727

2828
$this->app->bind(AuditLogInterface::class, AuditLog::class);
2929

30-
// Register the audit driver interface
31-
$this->app->bind(AuditDriverInterface::class, function ($app) {
32-
return match ($app['config']['audit-logger.default']) {
33-
'mysql' => new MySQLDriver,
34-
default => new MySQLDriver,
35-
};
36-
});
37-
3830
// Register the causer resolver
3931
$this->app->singleton(
4032
CauserResolverInterface::class,
@@ -55,9 +47,6 @@ public function register(): void
5547

5648
return new AuditLogger($driver);
5749
});
58-
59-
// Register facade accessor - use fully qualified namespace
60-
$this->app->bind('audit-logger', \iamfarhad\LaravelAuditLog\Services\AuditLogger::class);
6150
}
6251

6352
/**

0 commit comments

Comments
 (0)