Commit 2e8e2eaa authored by Bas de Nooijer's avatar Bas de Nooijer

Changed existing endpoint var into option in bufferedadd plugin to support...

Changed existing endpoint var into option in bufferedadd plugin to support endpoint in config mode (#212)
parent e450fb35
......@@ -81,13 +81,6 @@ class BufferedAdd extends Plugin
*/
protected $buffer = array();
/**
* End point to execute updates against.
*
* @var string
*/
protected $endpoint;
/**
* Plugin init function
*
......@@ -110,8 +103,7 @@ class BufferedAdd extends Plugin
*/
public function setEndpoint($endpoint)
{
$this->endpoint = $endpoint;
return $this;
return $this->setOption('endpoint', $endpoint);
}
/**
......@@ -121,7 +113,7 @@ class BufferedAdd extends Plugin
*/
public function getEndPoint()
{
return $this->endpoint;
return $this->getOption('endpoint');
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment