]> git.immae.eu Git - github/wallabag/wallabag.git/commit - tests/Wallabag/UserBundle/EventListener/CreateConfigListenerTest.php
Create user config in one place
authorJeremy Benoist <jeremy.benoist@gmail.com>
Fri, 30 Sep 2016 19:01:36 +0000 (21:01 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Fri, 30 Sep 2016 19:01:36 +0000 (21:01 +0200)
commitca17abce2d3963e266bee905ab084ddfa7e1ff18
treece33b43a21acc99300d7046387f99d437f713785
parent114c55c0a6eade2ba6c53fe25f61cc58cca91620
Create user config in one place

Using a listener, user config is now created when a user:

- is created from the command line
- register (with or without email confirmation)
- is created from the config panel
src/Wallabag/CoreBundle/Command/InstallCommand.php
src/Wallabag/CoreBundle/Controller/ConfigController.php
src/Wallabag/CoreBundle/Resources/config/services.yml
src/Wallabag/UserBundle/EventListener/CreateConfigListener.php [moved from src/Wallabag/CoreBundle/EventListener/RegistrationConfirmedListener.php with 53% similarity]
src/Wallabag/UserBundle/Resources/config/services.yml
tests/Wallabag/UserBundle/EventListener/CreateConfigListenerTest.php [moved from tests/Wallabag/CoreBundle/EventListener/RegistrationConfirmedListenerTest.php with 83% similarity]