Moved Pocket token to user config

This commit is contained in:
Jeremy Benoist
2016-09-16 22:22:25 +02:00
parent 4fc998245c
commit ebe0787e09
34 changed files with 161 additions and 44 deletions

View File

@ -44,7 +44,7 @@ class PocketController extends Controller
return $this->render('WallabagImportBundle:Pocket:index.html.twig', [
'import' => $this->getPocketImportService(),
'has_consumer_key' => '' == trim($this->get('craue_config')->get('pocket_consumer_key')) ? false : true,
'has_consumer_key' => '' === trim($this->getUser()->getConfig()->getPocketConsumerKey()) ? false : true,
'form' => $form->createView(),
]);
}