Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public function getClient() |
||
29 | { |
||
30 | $user = $this->tokenStorage->getToken()->getUser(); |
||
31 | |||
32 | //Create google client |
||
33 | $client = new Google_Client(); |
||
34 | $client->setAccessToken($user->getGoogleAccessToken()); |
||
35 | |||
36 | //Set Drive Service |
||
37 | return new Google_Service_Calendar($client); |
||
38 | } |
||
63 | } |