| 1 | <?php |
||
| 20 | class RoutingTestController |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * // シングルコーテーションは読めないので注意. |
||
| 24 | * |
||
| 25 | * @Route("/{_admin}/test", name="admin_test") |
||
| 26 | * @Security("has_role('ROLE_ADMIN')") |
||
| 27 | * |
||
| 28 | * @param Application $app |
||
| 29 | * |
||
| 30 | * @return \Symfony\Component\HttpFoundation\Response |
||
| 31 | */ |
||
| 32 | public function testAdmin(Application $app) |
||
| 33 | { |
||
| 34 | return '管理画面のルーティングは, /{_admin}/xxx を指定します.'; |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @Route("/{_user_data}/test") |
||
| 39 | * |
||
| 40 | * @param Application $app |
||
| 41 | * |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | public function testUserData(Application $app) |
||
| 45 | { |
||
| 46 | return 'UserDataのルーティングは, /{_user_data}/xxx を指定します'; |
||
| 47 | } |
||
| 48 | } |
||
| 49 |