1 | <?php |
||
10 | class ClientsController extends FOSRestController |
||
11 | { |
||
12 | use Traits\TokenFromHeaderTrait; |
||
13 | |||
14 | /** |
||
15 | * List all oauth clients created. |
||
16 | */ |
||
17 | public function getClientsAction() |
||
28 | |||
29 | /** |
||
30 | * Create a new oauth client. |
||
31 | * |
||
32 | * @param Client $client Client posted by the caller |
||
33 | * |
||
34 | * @Annotations\Post("/clients") |
||
35 | * |
||
36 | * @ParamConverter( |
||
37 | * "client", |
||
38 | * converter="fos_rest.request_body" |
||
39 | * ) |
||
40 | * |
||
41 | * @return Client |
||
42 | */ |
||
43 | public function postClientAction(Client $client) |
||
62 | } |
||
63 |