diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller/DeveloperController.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Controller/DeveloperController.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/DeveloperController.php b/src/Wallabag/CoreBundle/Controller/DeveloperController.php index 7cb0ead2..d85ba5ee 100644 --- a/src/Wallabag/CoreBundle/Controller/DeveloperController.php +++ b/src/Wallabag/CoreBundle/Controller/DeveloperController.php | |||
@@ -21,9 +21,9 @@ class DeveloperController extends Controller | |||
21 | { | 21 | { |
22 | $clients = $this->getDoctrine()->getRepository('WallabagApiBundle:Client')->findAll(); | 22 | $clients = $this->getDoctrine()->getRepository('WallabagApiBundle:Client')->findAll(); |
23 | 23 | ||
24 | return $this->render('WallabagCoreBundle:Developer:index.html.twig', array( | 24 | return $this->render('WallabagCoreBundle:Developer:index.html.twig', [ |
25 | 'clients' => $clients, | 25 | 'clients' => $clients, |
26 | )); | 26 | ]); |
27 | } | 27 | } |
28 | 28 | ||
29 | /** | 29 | /** |
@@ -43,7 +43,7 @@ class DeveloperController extends Controller | |||
43 | $clientForm->handleRequest($request); | 43 | $clientForm->handleRequest($request); |
44 | 44 | ||
45 | if ($clientForm->isValid()) { | 45 | if ($clientForm->isValid()) { |
46 | $client->setAllowedGrantTypes(array('token', 'authorization_code', 'password', 'refresh_token')); | 46 | $client->setAllowedGrantTypes(['token', 'authorization_code', 'password', 'refresh_token']); |
47 | $em->persist($client); | 47 | $em->persist($client); |
48 | $em->flush(); | 48 | $em->flush(); |
49 | 49 | ||
@@ -52,15 +52,15 @@ class DeveloperController extends Controller | |||
52 | 'flashes.developer.notice.client_created' | 52 | 'flashes.developer.notice.client_created' |
53 | ); | 53 | ); |
54 | 54 | ||
55 | return $this->render('WallabagCoreBundle:Developer:client_parameters.html.twig', array( | 55 | return $this->render('WallabagCoreBundle:Developer:client_parameters.html.twig', [ |
56 | 'client_id' => $client->getPublicId(), | 56 | 'client_id' => $client->getPublicId(), |
57 | 'client_secret' => $client->getSecret(), | 57 | 'client_secret' => $client->getSecret(), |
58 | )); | 58 | ]); |
59 | } | 59 | } |
60 | 60 | ||
61 | return $this->render('WallabagCoreBundle:Developer:client.html.twig', array( | 61 | return $this->render('WallabagCoreBundle:Developer:client.html.twig', [ |
62 | 'form' => $clientForm->createView(), | 62 | 'form' => $clientForm->createView(), |
63 | )); | 63 | ]); |
64 | } | 64 | } |
65 | 65 | ||
66 | /** | 66 | /** |