diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-02-16 07:55:18 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-02-29 21:28:25 +0100 |
commit | b6321bed7b8b8ba34e23a3d0c048f7d05ab309bf (patch) | |
tree | 14cc69975a28587cd13df20dbf2c96d8e081e165 /src/Wallabag/CoreBundle/Controller | |
parent | 24152cdb5e48edc5128082b285736b06ebda3c82 (diff) | |
download | wallabag-b6321bed7b8b8ba34e23a3d0c048f7d05ab309bf.tar.gz wallabag-b6321bed7b8b8ba34e23a3d0c048f7d05ab309bf.tar.zst wallabag-b6321bed7b8b8ba34e23a3d0c048f7d05ab309bf.zip |
Added developer documentation
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller')
-rw-r--r-- | src/Wallabag/CoreBundle/Controller/DeveloperController.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/DeveloperController.php b/src/Wallabag/CoreBundle/Controller/DeveloperController.php index 3cb86881..edbcec4b 100644 --- a/src/Wallabag/CoreBundle/Controller/DeveloperController.php +++ b/src/Wallabag/CoreBundle/Controller/DeveloperController.php | |||
@@ -12,6 +12,8 @@ class DeveloperController extends Controller | |||
12 | * @param Request $request | 12 | * @param Request $request |
13 | * | 13 | * |
14 | * @Route("/developer", name="developer") | 14 | * @Route("/developer", name="developer") |
15 | * | ||
16 | * @return \Symfony\Component\HttpFoundation\Response | ||
15 | */ | 17 | */ |
16 | public function indexAction(Request $request) | 18 | public function indexAction(Request $request) |
17 | { | 19 | { |
@@ -22,6 +24,8 @@ class DeveloperController extends Controller | |||
22 | * @param Request $request | 24 | * @param Request $request |
23 | * | 25 | * |
24 | * @Route("/developer/client/create", name="create_client") | 26 | * @Route("/developer/client/create", name="create_client") |
27 | * | ||
28 | * @return \Symfony\Component\HttpFoundation\Response | ||
25 | */ | 29 | */ |
26 | public function createClientAction(Request $request) | 30 | public function createClientAction(Request $request) |
27 | { | 31 | { |
@@ -33,6 +37,19 @@ class DeveloperController extends Controller | |||
33 | 37 | ||
34 | return $this->render('WallabagCoreBundle:Developer:client.html.twig', array( | 38 | return $this->render('WallabagCoreBundle:Developer:client.html.twig', array( |
35 | 'client_id' => $client->getPublicId(), | 39 | 'client_id' => $client->getPublicId(), |
40 | 'client_secret' => $client->getSecret(), | ||
36 | )); | 41 | )); |
37 | } | 42 | } |
43 | |||
44 | /** | ||
45 | * @param Request $request | ||
46 | * | ||
47 | * @Route("/developer/howto/first-app", name="howto-firstapp") | ||
48 | * | ||
49 | * @return \Symfony\Component\HttpFoundation\Response | ||
50 | */ | ||
51 | public function howtoFirstAppAction(Request $request) | ||
52 | { | ||
53 | return $this->render('WallabagCoreBundle:Developer:howto_app.html.twig'); | ||
54 | } | ||
38 | } | 55 | } |