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