| @@ 18-29 (lines=12) @@ | ||
| 15 | * |
|
| 16 | * @return Response |
|
| 17 | */ |
|
| 18 | public function indexAction(Application $app) |
|
| 19 | { |
|
| 20 | if (!$app['security']->isGranted('ROLE_ADMIN')) { |
|
| 21 | $app->abort(403); |
|
| 22 | } |
|
| 23 | ||
| 24 | return new Response( |
|
| 25 | $app['twig']->render( |
|
| 26 | 'contents/members-area/statistics/index.html.twig' |
|
| 27 | ) |
|
| 28 | ); |
|
| 29 | } |
|
| 30 | } |
|
| 31 | ||
| @@ 21-35 (lines=15) @@ | ||
| 18 | * |
|
| 19 | * @return Response |
|
| 20 | */ |
|
| 21 | public function indexAction(Request $request, Application $app) |
|
| 22 | { |
|
| 23 | $data = array(); |
|
| 24 | ||
| 25 | if (!$app['security']->isGranted('ROLE_ADMIN')) { |
|
| 26 | $app->abort(403); |
|
| 27 | } |
|
| 28 | ||
| 29 | return new Response( |
|
| 30 | $app['twig']->render( |
|
| 31 | 'contents/members-area/tools/email.html.twig', |
|
| 32 | $data |
|
| 33 | ) |
|
| 34 | ); |
|
| 35 | } |
|
| 36 | ||
| 37 | /** |
|
| 38 | * @param Request $request |
|