diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-10-01 15:51:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-01 15:51:37 +0200 |
commit | db5541e7a1e7131d62b4df23fa6eadd0c542b256 (patch) | |
tree | c5c71df873a9aa9350660e225f046a448274868f /src/Wallabag/UserBundle/Resources | |
parent | 114c55c0a6eade2ba6c53fe25f61cc58cca91620 (diff) | |
parent | fb7354c4a430f4f4916a1247aa1b1bf564ead0da (diff) | |
download | wallabag-db5541e7a1e7131d62b4df23fa6eadd0c542b256.tar.gz wallabag-db5541e7a1e7131d62b4df23fa6eadd0c542b256.tar.zst wallabag-db5541e7a1e7131d62b4df23fa6eadd0c542b256.zip |
Merge pull request #2320 from wallabag/user-config
Create user config in one place.
Diffstat (limited to 'src/Wallabag/UserBundle/Resources')
-rw-r--r-- | src/Wallabag/UserBundle/Resources/config/services.yml | 12 | ||||
-rw-r--r-- | src/Wallabag/UserBundle/Resources/views/Registration/check_email.html.twig (renamed from src/Wallabag/UserBundle/Resources/views/Registration/checkEmail.html.twig) | 0 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/Wallabag/UserBundle/Resources/config/services.yml b/src/Wallabag/UserBundle/Resources/config/services.yml index 05830555..eb9c8e67 100644 --- a/src/Wallabag/UserBundle/Resources/config/services.yml +++ b/src/Wallabag/UserBundle/Resources/config/services.yml | |||
@@ -20,3 +20,15 @@ services: | |||
20 | factory: [ "@doctrine.orm.default_entity_manager", getRepository ] | 20 | factory: [ "@doctrine.orm.default_entity_manager", getRepository ] |
21 | arguments: | 21 | arguments: |
22 | - WallabagUserBundle:User | 22 | - WallabagUserBundle:User |
23 | |||
24 | wallabag_user.create_config: | ||
25 | class: Wallabag\UserBundle\EventListener\CreateConfigListener | ||
26 | arguments: | ||
27 | - "@doctrine.orm.entity_manager" | ||
28 | - "%wallabag_core.theme%" | ||
29 | - "%wallabag_core.items_on_page%" | ||
30 | - "%wallabag_core.rss_limit%" | ||
31 | - "%wallabag_core.language%" | ||
32 | - "%wallabag_core.reading_speed%" | ||
33 | tags: | ||
34 | - { name: kernel.event_subscriber } | ||
diff --git a/src/Wallabag/UserBundle/Resources/views/Registration/checkEmail.html.twig b/src/Wallabag/UserBundle/Resources/views/Registration/check_email.html.twig index 50937276..50937276 100644 --- a/src/Wallabag/UserBundle/Resources/views/Registration/checkEmail.html.twig +++ b/src/Wallabag/UserBundle/Resources/views/Registration/check_email.html.twig | |||