mirror of
https://github.com/wallabag/wallabag.git
synced 2025-07-22 17:18:37 +00:00
form to upload file
This commit is contained in:
parent
8c3c77c1bd
commit
d275bdf4d3
7 changed files with 109 additions and 16 deletions
|
@ -51,7 +51,7 @@ class ImportCommand extends ContainerAwareCommand
|
|||
$batchSize = 20;
|
||||
$i = 1;
|
||||
|
||||
$user = $em->getRepository('WallabagCoreBundle:User')
|
||||
$user = $em->getRepository('WallabagUserBundle:User')
|
||||
->findOneById($input->getArgument('userId'));
|
||||
|
||||
if (!is_object($user)) {
|
||||
|
@ -116,6 +116,7 @@ class ImportCommand extends ContainerAwareCommand
|
|||
protected function get(InputInterface $input, OutputInterface $output)
|
||||
{
|
||||
$filename = __DIR__.'/../../../../web/uploads/import/'.$input->getArgument('userId').'.json';
|
||||
|
||||
$data = $this->convert($filename);
|
||||
|
||||
return $data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue