chg: [wip] local tool interconnector library created
parent
7ed72c5469
commit
6e2a541e4f
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
|
||||
namespace CommonTools;
|
||||
use Cake\ORM\Locator\LocatorAwareTrait;
|
||||
|
||||
class CommonTools
|
||||
{
|
||||
public function connect($connection1, $connection2, $params): bool
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function connection_test($connection1, $connection2): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function getConnectors(): array
|
||||
{
|
||||
return $this->connects;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
namespace MispToMispInterconnector;
|
||||
require_once(ROOT . '/src/Lib/default/local_tool_interconnectors/CommonTools.php');
|
||||
use CommonTools\CommonTools;
|
||||
use Cake\Http\Client;
|
||||
use Cake\Http\Exception\NotFoundException;
|
||||
use Cake\Http\Exception\MethodNotAllowedException;
|
||||
use Cake\Http\Client\Response;
|
||||
|
||||
class MispToMispInterconnector extends CommonTools
|
||||
{
|
||||
protected $connects = ['MispConnector', 'MispConnector'];
|
||||
|
||||
public function connect($connection1, $connection2, $params): bool
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Loading…
Reference in New Issue