modify plugin name

This commit is contained in:
2022-06-17 11:59:19 +08:00
parent 0a70a95b63
commit 92b5b248a3
7 changed files with 257 additions and 29 deletions
@@ -0,0 +1,27 @@
<?php
namespace Kiri\Abstracts;
use Kiri\Coordinator;
class CoordinatorManager
{
private static array $_waite = [];
/**
* @param string $category
* @return Coordinator
*/
public static function utility(string $category): Coordinator
{
if (!((static::$_waite[$category] ?? null) instanceof Coordinator)) {
static::$_waite[$category] = new Coordinator();
}
return static::$_waite[$category];
}
}