Skip to content

Commit

Permalink
Merge pull request #70 from creative-commoners/pulls/2/depr-messages
Browse files Browse the repository at this point in the history
API Update deprecations
  • Loading branch information
GuySartorelli authored Nov 20, 2022
2 parents 4b9938a + a55c95b commit 29e9010
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Controllers/CronTaskController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace SilverStripe\CronTask\Controllers;

use SilverStripe\Dev\Deprecation;
use Cron\CronExpression;
use DateTime;
use Exception;
Expand All @@ -28,7 +29,7 @@ class CronTaskController extends Controller
/**
* If this controller is in quiet mode
*
* @deprecated Use $verbosity instead
* @deprecated 2.5.0 Use $verbosity instead
*
* @var bool
*/
Expand All @@ -43,11 +44,12 @@ class CronTaskController extends Controller

/**
* Tell the controller how noisy it may be
* @deprecated Use setVerbosity instead
* @deprecated 2.5.0 Use setVerbosity() instead
* @param bool $quiet If set to true this controller will not emit debug noise
*/
public function setQuiet($quiet)
{
Deprecation::notice('2.5.0', 'Use setVerbosity() instead');
$this->setVerbosity($quiet ? 0 : 1);

$this->quiet = (bool) $quiet;
Expand Down

0 comments on commit 29e9010

Please sign in to comment.