render('WallabagCoreBundle:Developer:index.html.twig'); } /** * @param Request $request * * @Route("/developer/client/create", name="create_client") * * @return \Symfony\Component\HttpFoundation\Response */ public function createClientAction(Request $request) { $clientManager = $this->container->get('fos_oauth_server.client_manager.default'); $client = $clientManager->createClient(); $client->setRedirectUris(array('http://www.example.com')); $client->setAllowedGrantTypes(array('token', 'authorization_code')); $clientManager->updateClient($client); return $this->render('WallabagCoreBundle:Developer:client.html.twig', array( 'client_id' => $client->getPublicId(), 'client_secret' => $client->getSecret(), )); } /** * @param Request $request * * @Route("/developer/howto/first-app", name="howto-firstapp") * * @return \Symfony\Component\HttpFoundation\Response */ public function howtoFirstAppAction(Request $request) { return $this->render('WallabagCoreBundle:Developer:howto_app.html.twig'); } }