Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 5 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
14 | public function boot() |
||
15 | { |
||
16 | if ($this->app->runningInConsole()) { |
||
17 | $this->registerPublishing(); |
||
18 | $this->registerCommands(); |
||
19 | return; |
||
20 | } |
||
21 | |||
22 | if($this->app->config->get('telescope-pruning.every_request_pruning', true)) { |
||
23 | $this->app->terminating(function () { |
||
24 | Telescope::withoutRecording(function() { |
||
25 | (new PruneEntries($this->app))->prune(); |
||
26 | }); |
||
66 |