mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 00:27:30 +00:00
Remove static references
This commit is contained in:
@@ -46,7 +46,7 @@ class AdminRequestedTestMessage extends Event
|
||||
*/
|
||||
public function __construct(User $user)
|
||||
{
|
||||
Log::debug(sprintf('Triggered AdminRequestedTestMessage for user #%d (%s)', $user->id, $user->email));
|
||||
app('log')->debug(sprintf('Triggered AdminRequestedTestMessage for user #%d (%s)', $user->id, $user->email));
|
||||
$this->user = $user;
|
||||
}
|
||||
}
|
||||
|
@@ -46,7 +46,7 @@ class DestroyedTransactionGroup extends Event
|
||||
*/
|
||||
public function __construct(TransactionGroup $transactionGroup)
|
||||
{
|
||||
Log::debug(sprintf('Now in %s', __METHOD__));
|
||||
app('log')->debug(sprintf('Now in %s', __METHOD__));
|
||||
$this->transactionGroup = $transactionGroup;
|
||||
}
|
||||
}
|
||||
|
@@ -53,7 +53,7 @@ class ChangedAmount extends Event
|
||||
*/
|
||||
public function __construct(PiggyBank $piggyBank, string $amount, ?TransactionJournal $transactionJournal, ?TransactionGroup $transactionGroup)
|
||||
{
|
||||
Log::debug(sprintf('Created piggy bank event for piggy bank #%d with amount %s', $piggyBank->id, $amount));
|
||||
app('log')->debug(sprintf('Created piggy bank event for piggy bank #%d with amount %s', $piggyBank->id, $amount));
|
||||
$this->piggyBank = $piggyBank;
|
||||
$this->transactionJournal = $transactionJournal;
|
||||
$this->transactionGroup = $transactionGroup;
|
||||
|
@@ -53,7 +53,7 @@ class RequestedReportOnJournals
|
||||
*/
|
||||
public function __construct(int $userId, Collection $groups)
|
||||
{
|
||||
Log::debug('In event RequestedReportOnJournals.');
|
||||
app('log')->debug('In event RequestedReportOnJournals.');
|
||||
$this->userId = $userId;
|
||||
$this->groups = $groups;
|
||||
}
|
||||
|
Reference in New Issue
Block a user