File tree 3 files changed +8
-28
lines changed
3 files changed +8
-28
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,10 @@ No breaking changes. The only changes are to the development dependencies used f
17
17
18
18
## Changes
19
19
20
+ ### 3.5.0 - 2025-02-11
21
+
22
+ - Move registration of event listeners to the main service provider and remove the dedicated EventServiceProvider.
23
+
20
24
### 3.4.0 - 2024-12-04
21
25
22
26
- Add PHP 8.4 support
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3
3
namespace Bilfeldt \RequestLogger ;
4
4
5
5
use Bilfeldt \RequestLogger \Commands \PruneRequestLogsCommand ;
6
+ use Bilfeldt \RequestLogger \Listeners \LogRequest ;
6
7
use Bilfeldt \RequestLogger \Middleware \LogRequestMiddleware ;
8
+ use Illuminate \Foundation \Http \Events \RequestHandled ;
7
9
use Illuminate \Http \Request ;
8
10
use Illuminate \Routing \Router ;
11
+ use Illuminate \Support \Facades \Event ;
9
12
use Illuminate \Support \ServiceProvider ;
10
13
11
14
class RequestLoggerServiceProvider extends ServiceProvider
@@ -17,7 +20,7 @@ public function register()
17
20
{
18
21
$ this ->mergeConfigFrom (__DIR__ .'/../config/request-logger.php ' , 'request-logger ' );
19
22
20
- $ this -> app -> register (EventServiceProvider ::class);
23
+ Event:: listen (RequestHandled::class, LogRequest ::class);
21
24
}
22
25
23
26
/**
@@ -44,7 +47,6 @@ public function boot()
44
47
$ this ->bootMacros ();
45
48
46
49
// TODO: Register command PruneRequestLogsCommand::class);
47
- // TODO: Register EventServiceProvider::class
48
50
}
49
51
50
52
private function registerMiddlewareAlias (): void
You can’t perform that action at this time.
0 commit comments