mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-30 21:30:14 +02:00
[FileCache] Rename 'prepare' to 'setParameters'
This is a cosmetic change to use the same naming convention for all methods.
This commit is contained in:
@@ -55,7 +55,11 @@ class FileCache implements CacheInterface {
|
||||
}
|
||||
}
|
||||
|
||||
public function prepare(array $param){
|
||||
/**
|
||||
* Set HTTP GET parameters
|
||||
* @return self
|
||||
*/
|
||||
public function setParameters(array $param){
|
||||
$this->param = $param;
|
||||
|
||||
return $this;
|
||||
@@ -68,7 +72,7 @@ class FileCache implements CacheInterface {
|
||||
*/
|
||||
protected function isPrepareCache(){
|
||||
if(is_null($this->param)){
|
||||
throw new \Exception('Please feed "prepare" method before try to load');
|
||||
throw new \Exception('Please feed "setParameters" method before try to load');
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user