@@ -12,36 +12,31 @@ class CitrixServiceProvider extends ServiceProvider
12
12
*
13
13
* @var bool
14
14
*/
15
- protected $ defer = false ;
15
+ protected $ defer = true ;
16
16
17
17
18
18
public function register ()
19
19
{
20
20
//runtime merge config
21
21
$ this ->mergeConfigFrom (__DIR__ . '/../config/citrix.php ' , 'citrix ' );
22
22
$ this ->registerGotoWebinar (config ('citrix.auth_type ' ));
23
- $ this ->registerGotoMeeting (config ('citrix.auth_type ' ));
24
-
23
+ //$this->registerGotoMeeting(config('citrix.auth_type'));
25
24
}
26
25
27
26
28
- public function registerGotoWebinar ($ authType )
27
+ public function registerGotoWebinar ($ authType = ' direct ' )
29
28
{
30
- $ this ->app ->singleton (' g2webinar ' , function ($ app ) use ($ authType ) {
29
+ $ this ->app ->singleton (Webinar::class , function ($ app ) use ($ authType ) {
31
30
return new Webinar ($ authType );
32
31
});
33
-
34
- $ this ->app ->alias ('g2webinar ' , Webinar::class);
35
32
}
36
33
37
34
38
- public function registerGotoMeeting ($ authType )
35
+ public function registerGotoMeeting ($ authType = ' direct ' )
39
36
{
40
- $ this ->app ->singleton (' g2meeting ' , function ($ app ) use ($ authType ) {
37
+ $ this ->app ->singleton (Meeting::class , function ($ app ) use ($ authType ) {
41
38
return new Meeting ($ authType );
42
39
});
43
-
44
- $ this ->app ->alias ('g2meeting ' , Meeting::class);
45
40
}
46
41
47
42
@@ -61,8 +56,8 @@ public function boot()
61
56
public function provides ()
62
57
{
63
58
return [
64
- ' g2webinar ' ,
65
- ' g2meeting ' ,
59
+ Webinar::class ,
60
+ //Meeting::class ,
66
61
];
67
62
}
68
63
}
0 commit comments