File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -12,15 +12,15 @@ class TwilioProvider extends ServiceProvider
12
12
*/
13
13
public function boot ()
14
14
{
15
- $ config = $ this ->app ->make (TwilioConfig::class, $ this ->app ['config ' ]['services.twilio ' ]);
16
- $ twilio = $ this ->app ->make (TwilioService::class, [
17
- $ config ->getAccountSid (),
18
- $ config ->getAuthToken (),
19
- ]);
20
-
21
15
$ this ->app ->when (TwilioChannel::class)
22
16
->needs (Twilio::class)
23
- ->give (function () use ($ twilio , $ config ) {
17
+ ->give (function () {
18
+ $ config = $ this ->app ->make (TwilioConfig::class, $ this ->app ['config ' ]['services.twilio ' ]);
19
+ $ twilio = $ this ->app ->make (TwilioService::class, [
20
+ $ config ->getAccountSid (),
21
+ $ config ->getAuthToken (),
22
+ ]);
23
+
24
24
return new Twilio ($ twilio , $ config );
25
25
});
26
26
}
You can’t perform that action at this time.
0 commit comments