Skip to content

Commit d4df6bd

Browse files
committed
Added init const and replicate method
1 parent 00a35da commit d4df6bd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Actions/Action.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ class Action
2323

2424
const _withDb = 'Chemem\\Fauxton\\Actions\\Action::_withDb';
2525

26+
const init = 'Chemem\\Fauxton\\Actions\\Action::init';
27+
2628
private $loop;
2729

2830
public function __construct($loop)
@@ -229,4 +231,9 @@ public function deleteDesignDoc(string $database, string $ddoc) : Promise
229231
)
230232
));
231233
}
234+
235+
public function replicate(array $opts, bool $continuous = false) : Promise
236+
{
237+
return self::_resolve($this->loop, 'post', array('replicate' => array()), $opts);
238+
}
232239
}

0 commit comments

Comments
 (0)