Skip to content

Commit

Permalink
Deprecated method calls
Browse files Browse the repository at this point in the history
  • Loading branch information
dakota committed Aug 23, 2018
1 parent 8e51ddc commit a42dd64
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Worker/ArchiveWorker.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ public function __invoke(Job $job)
$this->_ensureTable($archiveTable);

$connection = $archiveTable->getConnection();
$quote = $connection->driver()
->autoQuoting();
$connection->driver()
->autoQuoting(true);
$quote = $connection->getDriver()
->isAutoQuotingEnabled();
$connection->getDriver()
->enableAutoQuoting(true);

$selectQuery = $delayedJobsTable->query()
->where(['status IN' => [Job::STATUS_BURIED, Job::STATUS_SUCCESS]]);
Expand All @@ -91,8 +91,8 @@ public function __invoke(Job $job)
Log::debug('Archive cleaned.');
}

$connection->driver()
->autoQuoting($quote);
$connection->getDriver()
->enableAutoQuoting($quote);

return new Time(Configure::read('DelayedJobs.archive.recurring'));
}
Expand Down

0 comments on commit a42dd64

Please sign in to comment.