aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Controller
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller')
-rw-r--r--src/Wallabag/CoreBundle/Controller/DeveloperController.php10
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;
11class DeveloperController extends Controller 11class 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