Пример #1
0
 /**
  * @param array|string[] $scope
  * @param string|null $redirectUri
  * @return RedirectResponse
  */
 public function start(array $scope = array(), $redirectUri = null)
 {
     $state = $this->generateState();
     $url = $this->client->getAuthorizeUrl($state, $scope, $redirectUri);
     return new RedirectResponse($url);
 }