Skip to content

Commit 980d7c5

Browse files
committed
added setAutoRefresh()
1 parent 1e6bcad commit 980d7c5

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/RobotLoader/RobotLoader.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class RobotLoader
2727
/** @var string|array comma separated wildcards */
2828
public $acceptFiles = '*.php, *.php5';
2929

30-
/** @var bool */
30+
/** @var bool @deprecated */
3131
public $autoRebuild = TRUE;
3232

3333
/** @var array */
@@ -335,6 +335,17 @@ private function scanPhp($code)
335335
/********************* caching ****************d*g**/
336336

337337

338+
/**
339+
* Sets auto-refresh mode.
340+
* @return self
341+
*/
342+
public function setAutoRefresh($on = TRUE)
343+
{
344+
$this->autoRebuild = (bool) $on;
345+
return $this;
346+
}
347+
348+
338349
/**
339350
* @return self
340351
*/

0 commit comments

Comments
 (0)