first commit

This commit is contained in:
2023-04-15 23:29:27 +08:00
commit 2d9ac93a7a
71 changed files with 4592 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
<?php
namespace Kiri\Message\Handler;
use Kiri;
class DataGrip
{
private array $servers = [];
/**
* @param $type
* @return RouterCollector
*/
public function get($type): RouterCollector
{
if (!isset($this->servers[$type])) {
$this->servers[$type] = Kiri::getDi()->create(RouterCollector::class);
}
return $this->servers[$type];
}
}