mirror of
https://github.com/envoyr/nginx-configurator.git
synced 2026-04-28 12:24:08 +00:00
Revoked Builder::clear() method
This commit is contained in:
@@ -9,11 +9,7 @@ namespace Madkom\NginxConfigurator;
|
|||||||
|
|
||||||
use Countable;
|
use Countable;
|
||||||
use Madkom\Collection\CustomTypedCollection;
|
use Madkom\Collection\CustomTypedCollection;
|
||||||
use Madkom\NginxConfigurator\Config\Server;
|
|
||||||
use Madkom\NginxConfigurator\Config\Upstream;
|
|
||||||
use Madkom\NginxConfigurator\Node\Directive;
|
|
||||||
use Madkom\NginxConfigurator\Node\Node;
|
use Madkom\NginxConfigurator\Node\Node;
|
||||||
use Madkom\NginxConfigurator\Node\Param;
|
|
||||||
use Madkom\NginxConfigurator\Node\RootNode;
|
use Madkom\NginxConfigurator\Node\RootNode;
|
||||||
use Traversable;
|
use Traversable;
|
||||||
|
|
||||||
@@ -33,6 +29,14 @@ class Builder implements Countable
|
|||||||
* Builder constructor.
|
* Builder constructor.
|
||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
{
|
||||||
|
$this->clear();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clears builder root node
|
||||||
|
*/
|
||||||
|
public function clear()
|
||||||
{
|
{
|
||||||
$this->rootNode = new RootNode();
|
$this->rootNode = new RootNode();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user