@@ -12,12+11,9 @@ use Wallabag\CoreBundle\Entity\Entry;
use Wallabag\CoreBundle\Helper\ContentProxy;
use Craue\ConfigBundle\Util\Config;
use Wallabag\CoreBundle\Helper\ContentProxy;
use Craue\ConfigBundle\Util\Config;
-class PocketImport implements ImportInterface
+class PocketImport extends AbstractImport
{
private $user;
{
private $user;
- private $em;
- private $contentProxy;
- private $logger;
private $client;
private $consumerKey;
private $skippedEntries = 0;
private $client;
private $consumerKey;
private $skippedEntries = 0;
@@ -34,11+30,6 @@ class PocketImport implements ImportInterface
$this->logger = new NullLogger();
}
$this->logger = new NullLogger();
}
- public function setLogger(LoggerInterface $logger)
- {
- $this->logger = $logger;
- }
-
/**
* {@inheritdoc}
*/
/**
* {@inheritdoc}
*/
@@ -60,7+51,7 @@ class PocketImport implements ImportInterface
*/
public function getDescription()
{
*/
public function getDescription()
{
- return 'This importer will import all your Pocket data. Pocket doesn\'t allow us to retrieve content from their service, so the readable content of each article will be re-fetched by wallabag.';
+ return 'import.pocket.description';
}
/**
}
/**
@@ -68,7+59,7 @@ class PocketImport implements ImportInterface
*
* @param string $redirectUri Redirect url in case of error
*
*
* @param string $redirectUri Redirect url in case of error
*
- * @return string request_token for callback method
+ * @return string|false request_token for callback method
*/
public function getRequestToken($redirectUri)
{
*/
public function getRequestToken($redirectUri)
{
@@ -139,7+130,7 @@ class PocketImport implements ImportInterface
/**
* Get whether articles must be all marked as read.
*/
/**
* Get whether articles must be all marked as read.
*/
- public function getRead()
+ public function getMarkAsRead()
{
return $this->markAsRead;
}
{
return $this->markAsRead;
}
@@ -219,14+210,20 @@ class PocketImport implements ImportInterface