You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(1/1) InvalidArgumentException
Identifier "xiaochengxu" is not defined.
in Container.php (line 96)
at Container->offsetGet('xiaochengxu')
in Application.php (line 194)
at Application->__get('xiaochengxu')
in web.php (line 30)
at Closure->{closure}()
at call_user_func_array(object(Closure), array())
in BoundMethod.php (line 29)
at BoundMethod::Illuminate\Container{closure}()
in BoundMethod.php (line 75)
at BoundMethod::callBoundMethod(object(AppKernel), object(Closure), object(Closure))
in BoundMethod.php (line 31)
at BoundMethod::call(object(AppKernel), object(Closure), array(), null)
in Container.php (line 539)
at Container->call(object(Closure), array())
in RoutesRequests.php (line 654)
The text was updated successfully, but these errors were encountered:
我用的环境
PHP 版本:7.1.5
overtrue/wechat 版本:最新版本
问题及现象
由于overtrue/wechat内没有门店小程序的接口,我们想自己去扩展,然后看你们代码,有个register可以注册自己的provider,但是实际使用的时候,打印keys可以打印出来,具体调用小程序接口内容,发现找不到我注册的这个 ‘xiaochengxu’这个key
这个$application即vendor/overtrue/wechat/src/Foundation/Application.php
$application->register(new \WechatBundle\Custom\ServicesProviders\XcxServiceProvider);
$application->addProvider(\WechatBundle\Custom\ServicesProviders\XcxServiceProvider::class);
报错
(1/1) InvalidArgumentException
Identifier "xiaochengxu" is not defined.
in Container.php (line 96)
at Container->offsetGet('xiaochengxu')
in Application.php (line 194)
at Application->__get('xiaochengxu')
in web.php (line 30)
at Closure->{closure}()
at call_user_func_array(object(Closure), array())
in BoundMethod.php (line 29)
at BoundMethod::Illuminate\Container{closure}()
in BoundMethod.php (line 75)
at BoundMethod::callBoundMethod(object(AppKernel), object(Closure), object(Closure))
in BoundMethod.php (line 31)
at BoundMethod::call(object(AppKernel), object(Closure), array(), null)
in Container.php (line 539)
at Container->call(object(Closure), array())
in RoutesRequests.php (line 654)
The text was updated successfully, but these errors were encountered: