diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-03-05 22:29:58 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-03-05 22:29:58 +0100 |
commit | 1256f6fe34ed4e5f7a1d9eec2ac8092da44de191 (patch) | |
tree | 91e855bd4e376fd9e038a825b75a6504c60c30d5 /src/Wallabag/CoreBundle/Controller | |
parent | 9bf15f02695823652a0e783c915b039836f51626 (diff) | |
download | wallabag-1256f6fe34ed4e5f7a1d9eec2ac8092da44de191.tar.gz wallabag-1256f6fe34ed4e5f7a1d9eec2ac8092da44de191.tar.zst wallabag-1256f6fe34ed4e5f7a1d9eec2ac8092da44de191.zip |
Add translations
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller')
-rw-r--r-- | src/Wallabag/CoreBundle/Controller/DeveloperController.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/DeveloperController.php b/src/Wallabag/CoreBundle/Controller/DeveloperController.php index e7720355..71065534 100644 --- a/src/Wallabag/CoreBundle/Controller/DeveloperController.php +++ b/src/Wallabag/CoreBundle/Controller/DeveloperController.php | |||
@@ -11,6 +11,8 @@ use Wallabag\CoreBundle\Form\Type\ClientType; | |||
11 | class DeveloperController extends Controller | 11 | class DeveloperController extends Controller |
12 | { | 12 | { |
13 | /** | 13 | /** |
14 | * List all clients and link to create a new one. | ||
15 | * | ||
14 | * @Route("/developer", name="developer") | 16 | * @Route("/developer", name="developer") |
15 | * | 17 | * |
16 | * @return \Symfony\Component\HttpFoundation\Response | 18 | * @return \Symfony\Component\HttpFoundation\Response |
@@ -25,6 +27,8 @@ class DeveloperController extends Controller | |||
25 | } | 27 | } |
26 | 28 | ||
27 | /** | 29 | /** |
30 | * Create a client (an app). | ||
31 | * | ||
28 | * @param Request $request | 32 | * @param Request $request |
29 | * | 33 | * |
30 | * @Route("/developer/client/create", name="developer_create_client") | 34 | * @Route("/developer/client/create", name="developer_create_client") |
@@ -62,13 +66,13 @@ class DeveloperController extends Controller | |||
62 | /** | 66 | /** |
63 | * Remove a client. | 67 | * Remove a client. |
64 | * | 68 | * |
65 | * @param Request $request | 69 | * @param Client $client |
66 | * | 70 | * |
67 | * @Route("/developer/client/delete/{id}", requirements={"id" = "\d+"}, name="developer_delete_client") | 71 | * @Route("/developer/client/delete/{id}", requirements={"id" = "\d+"}, name="developer_delete_client") |
68 | * | 72 | * |
69 | * @return \Symfony\Component\HttpFoundation\RedirectResponse | 73 | * @return \Symfony\Component\HttpFoundation\RedirectResponse |
70 | */ | 74 | */ |
71 | public function deleteClientAction(Request $request, Client $client) | 75 | public function deleteClientAction(Client $client) |
72 | { | 76 | { |
73 | $em = $this->getDoctrine()->getManager(); | 77 | $em = $this->getDoctrine()->getManager(); |
74 | $em->remove($client); | 78 | $em->remove($client); |
@@ -83,6 +87,8 @@ class DeveloperController extends Controller | |||
83 | } | 87 | } |
84 | 88 | ||
85 | /** | 89 | /** |
90 | * Display developer how to use an existing app. | ||
91 | * | ||
86 | * @Route("/developer/howto/first-app", name="developer_howto_firstapp") | 92 | * @Route("/developer/howto/first-app", name="developer_howto_firstapp") |
87 | * | 93 | * |
88 | * @return \Symfony\Component\HttpFoundation\Response | 94 | * @return \Symfony\Component\HttpFoundation\Response |