Skip to content

Commit

Permalink
added setAutoRefresh()
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Sep 29, 2016
1 parent 1e6bcad commit 980d7c5
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/RobotLoader/RobotLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class RobotLoader
/** @var string|array comma separated wildcards */
public $acceptFiles = '*.php, *.php5';

/** @var bool */
/** @var bool @deprecated */
public $autoRebuild = TRUE;

/** @var array */
Expand Down Expand Up @@ -335,6 +335,17 @@ private function scanPhp($code)
/********************* caching ****************d*g**/


/**
* Sets auto-refresh mode.
* @return self
*/
public function setAutoRefresh($on = TRUE)
{
$this->autoRebuild = (bool) $on;
return $this;
}


/**
* @return self
*/
Expand Down

0 comments on commit 980d7c5

Please sign in to comment.