Skip to content

Commit a43fc75

Browse files
committed
fix #8
1 parent 1d6c932 commit a43fc75

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/ServiceProvider.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ class ServiceProvider extends LaravelServiceProvider
1515
*/
1616
protected $defer = true;
1717

18+
/**
19+
* 补充
20+
*
21+
* @var array
22+
*/
23+
protected $providesAppend = ['wechat.server', 'Overtrue\\Wechat\\Server'];
24+
1825
/**
1926
* 服务列表
2027
*
@@ -86,6 +93,6 @@ public function register()
8693
*/
8794
public function provides()
8895
{
89-
return array_merge(array_keys($this->services), array_values($this->services));
96+
return array_merge(array_keys($this->services), array_values($this->services), $this->providesAppend);
9097
}
9198
}

0 commit comments

Comments
 (0)