- if ($importForm->isValid()) {
- $file = $importForm->get('file')->getData();
- $name = $user->getId().'.json';
+ $wallabag = $this->get('wallabag_import.wallabag_v1.import');
+
+ if ($form->isValid()) {
+ $file = $form->get('file')->getData();
+ $name = $this->getUser()->getId().'.json';