This commit is contained in:
xl
2023-11-14 00:15:27 +08:00
parent fbdbcbccd9
commit e721fe4f36
53 changed files with 1 additions and 1 deletions
+28
View File
@@ -0,0 +1,28 @@
<?php
namespace wchat\wx;
use Kiri\Di\Container;
use ReflectionException;
use wchat\common\Config;
class QqFactory
{
/**
* @param $class
* @param Config $config
* @return mixed
* @throws ReflectionException
*/
public static function get($class, Config $config): mixed
{
$container = Container::instance();
$object = $container->get($class);
$object->setConfig($config);
return $object;
}
}