Skip to content

Commit

Permalink
Optimize the admin audit app according to PHP 8
Browse files Browse the repository at this point in the history
  • Loading branch information
Danial Rahimi committed Jul 5, 2023
1 parent 2fb1e21 commit 42509b6
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions apps/admin_audit/lib/BackgroundJobs/Rotate.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,12 @@
class Rotate extends TimedJob {
use RotationTrait;

public function __construct(ITimeFactory $time,
public function __construct(
ITimeFactory $time,
private IConfig $config,
) {
public function __construct(
ITimeFactory $time,
private IConfig $config,
) {
parent::__construct($time);

$this->config = $config;

$this->setInterval(60 * 60 * 3);
}

Expand Down

0 comments on commit 42509b6

Please sign in to comment.