Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

门店小程序扩展错误问题 #763

Closed
ljyljy0211 opened this issue Jun 26, 2017 · 1 comment
Closed

门店小程序扩展错误问题 #763

ljyljy0211 opened this issue Jun 26, 2017 · 1 comment

Comments

@ljyljy0211
Copy link

ljyljy0211 commented Jun 26, 2017

我用的环境

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)

@mingyoung
Copy link
Collaborator

重复问题 #762

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants