Exemplo n.º 1
0
 /**
  * @Rest\Post("/app/client", name="create-client")
  * @Rest\View()
  */
 public function createAction()
 {
     $client = $this->clientManager->createClient();
     $client->setRedirectUris(['http://www.example.com']);
     $client->setAllowedGrantTypes(['token', 'password', 'authorization_code', 'client_credentials']);
     $this->clientManager->updateClient($client);
     return $client;
 }