eee
This commit is contained in:
+2
-3
@@ -3,7 +3,6 @@
|
||||
namespace wchat\wx;
|
||||
|
||||
use Kiri\Di\Container;
|
||||
use ReflectionException;
|
||||
use wchat\common\AppConfig;
|
||||
|
||||
class WxFactory
|
||||
@@ -14,12 +13,12 @@ class WxFactory
|
||||
* @param string $class
|
||||
* @param AppConfig $config
|
||||
* @return object|null
|
||||
* @throws ReflectionException
|
||||
* @throws
|
||||
*/
|
||||
public static function get(string $class, AppConfig $config): ?object
|
||||
{
|
||||
$container = Container::instance();
|
||||
$object = $container->get($class);
|
||||
$object = $container->get($class);
|
||||
$object->setPayConfig($config);
|
||||
return $object;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user