diff options
author | Jeremy Benoist <j0k3r@users.noreply.github.com> | 2016-02-01 14:17:20 +0100 |
---|---|---|
committer | Jeremy Benoist <j0k3r@users.noreply.github.com> | 2016-02-01 14:17:20 +0100 |
commit | 85ad629a3ca209907effd75f5fd7f384f42361bc (patch) | |
tree | 6fde1374b404567153478373f3e65e63af9c1120 /src/Wallabag/ImportBundle/Resources | |
parent | e43d27f8450dcdf79850e935b762ac390a19dd63 (diff) | |
parent | 6785f4aa749e381081b93e3db46424cc7475eab8 (diff) | |
download | wallabag-85ad629a3ca209907effd75f5fd7f384f42361bc.tar.gz wallabag-85ad629a3ca209907effd75f5fd7f384f42361bc.tar.zst wallabag-85ad629a3ca209907effd75f5fd7f384f42361bc.zip |
Merge pull request #1601 from wallabag/v2-import-from-v2
[#1590] Add JSON import from wallabag v2
Diffstat (limited to 'src/Wallabag/ImportBundle/Resources')
-rw-r--r-- | src/Wallabag/ImportBundle/Resources/config/services.yml | 9 | ||||
-rw-r--r-- | src/Wallabag/ImportBundle/Resources/views/WallabagV2/index.html.twig | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/Wallabag/ImportBundle/Resources/config/services.yml b/src/Wallabag/ImportBundle/Resources/config/services.yml index e4dde100..6a11892e 100644 --- a/src/Wallabag/ImportBundle/Resources/config/services.yml +++ b/src/Wallabag/ImportBundle/Resources/config/services.yml | |||
@@ -32,3 +32,12 @@ services: | |||
32 | - [ setLogger, [ "@logger" ]] | 32 | - [ setLogger, [ "@logger" ]] |
33 | tags: | 33 | tags: |
34 | - { name: wallabag_import.import, alias: wallabag_v1 } | 34 | - { name: wallabag_import.import, alias: wallabag_v1 } |
35 | |||
36 | wallabag_import.wallabag_v2.import: | ||
37 | class: Wallabag\ImportBundle\Import\WallabagV2Import | ||
38 | arguments: | ||
39 | - "@doctrine.orm.entity_manager" | ||
40 | calls: | ||
41 | - [ setLogger, [ "@logger" ]] | ||
42 | tags: | ||
43 | - { name: wallabag_import.import, alias: wallabag_v2 } | ||
diff --git a/src/Wallabag/ImportBundle/Resources/views/WallabagV2/index.html.twig b/src/Wallabag/ImportBundle/Resources/views/WallabagV2/index.html.twig new file mode 100644 index 00000000..78fe67e4 --- /dev/null +++ b/src/Wallabag/ImportBundle/Resources/views/WallabagV2/index.html.twig | |||
@@ -0,0 +1,2 @@ | |||
1 | {% extends "WallabagImportBundle:WallabagV1:index.html.twig" %} | ||
2 | {% block title %}{% trans %}Import > Wallabag v2{% endtrans %}{% endblock %} | ||