mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-23 01:21:03 +00:00
service call
This commit is contained in:
parent
9c9c23cf08
commit
557e549db7
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ class PocketController extends Controller
|
||||||
*/
|
*/
|
||||||
public function authAction()
|
public function authAction()
|
||||||
{
|
{
|
||||||
$pocket = new PocketImport($this->get('security.token_storage'), $this->get('session'), $this->getDoctrine()->getManager(), $this->container->getParameter('pocket_consumer_key'));
|
$pocket = $this->get('wallabag_import.import.pocket_import');
|
||||||
$authUrl = $pocket->oAuthRequest($this->generateUrl('import', array(), true), $this->generateUrl('callbackpocket', array(), true));
|
$authUrl = $pocket->oAuthRequest($this->generateUrl('import', array(), true), $this->generateUrl('callbackpocket', array(), true));
|
||||||
|
|
||||||
return $this->redirect($authUrl, 301);
|
return $this->redirect($authUrl, 301);
|
||||||
|
@ -32,7 +32,7 @@ class PocketController extends Controller
|
||||||
*/
|
*/
|
||||||
public function callbackAction()
|
public function callbackAction()
|
||||||
{
|
{
|
||||||
$pocket = new PocketImport($this->get('security.token_storage'), $this->get('session'), $this->getDoctrine()->getManager(), $this->container->getParameter('pocket_consumer_key'));
|
$pocket = $this->get('wallabag_import.import.pocket_import');
|
||||||
$accessToken = $pocket->oAuthAuthorize();
|
$accessToken = $pocket->oAuthAuthorize();
|
||||||
$pocket->import($accessToken);
|
$pocket->import($accessToken);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue