1 | <?php |
||
16 | class AdminController extends Controller |
||
|
|||
17 | { |
||
18 | const SESSION_KEY = 'google_token_name'; |
||
19 | |||
20 | /** |
||
21 | * @var ClientProvider |
||
22 | */ |
||
23 | private $clientProvider; |
||
24 | |||
25 | /** |
||
26 | * @var TokenConfig |
||
27 | */ |
||
28 | private $tokenConfig; |
||
29 | |||
30 | public function __construct(ClientProvider $clientProvider, TokenConfig $tokenConfig) |
||
35 | |||
36 | public function indexAction() |
||
49 | |||
50 | /** |
||
51 | * This action starts the authentication. |
||
52 | * |
||
53 | * @param Request $request |
||
54 | * @param $name |
||
55 | * |
||
56 | * @return Response |
||
57 | */ |
||
58 | public function authenticateAction(Request $request, $name) |
||
71 | |||
72 | /** |
||
73 | * This action revokes the authentication token. This make sure the token can not be used on any other site. |
||
74 | * |
||
75 | * @param Request $request |
||
76 | * @param $name |
||
77 | * |
||
78 | * @return Response |
||
79 | */ |
||
80 | public function revokeAction($name) |
||
92 | |||
93 | /** |
||
94 | * This action removes the authentication token form the storage. |
||
95 | * |
||
96 | * @param Request $request |
||
97 | * @param $name |
||
98 | * |
||
99 | * @return Response |
||
100 | */ |
||
101 | public function removeAction($name) |
||
109 | |||
110 | /** |
||
111 | * This action is used when the user has authenticated with google. |
||
112 | * |
||
113 | * @param Request $request |
||
114 | * |
||
115 | * @return Response |
||
116 | */ |
||
117 | public function returnAction(Request $request) |
||
140 | } |
||
141 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.