Default Changelist

This commit is contained in:
xl
2023-07-11 21:04:33 +08:00
parent 191624b7e6
commit b66d1de244
6 changed files with 178 additions and 148 deletions
+8 -6
View File
@@ -3,20 +3,22 @@
namespace wchat\wx;
use Kiri\Di\Container;
use ReflectionException;
use wchat\common\Config;
class QqFactory
{
/**
* @param $class
* @param Config $config
* @return mixed
*/
/**
* @param $class
* @param Config $config
* @return mixed
* @throws ReflectionException
*/
public static function get($class, Config $config): mixed
{
$container = Container::getInstance();
$container = Container::instance();
$object = $container->get($class);
$object->setConfig($config);
return $object;