This commit is contained in:
2023-04-15 23:31:16 +08:00
parent 2d9ac93a7a
commit 41a53200b3
69 changed files with 1678 additions and 749 deletions
+4 -2
View File
@@ -1,8 +1,9 @@
<?php
namespace Kiri\Message\Handler;
namespace Kiri\Router;
use Kiri;
use ReflectionException;
class DataGrip
{
@@ -13,11 +14,12 @@ class DataGrip
/**
* @param $type
* @return RouterCollector
* @throws ReflectionException
*/
public function get($type): RouterCollector
{
if (!isset($this->servers[$type])) {
$this->servers[$type] = Kiri::getDi()->create(RouterCollector::class);
$this->servers[$type] = Kiri::getDi()->make(RouterCollector::class);
}
return $this->servers[$type];
}