From 32da2a70ef278bd42f66eb82c3fbf1905a417b87 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Mon, 23 Feb 2015 22:55:06 +0100 Subject: Add LiipThemeBundle Re-defined the config / user relation to be OneToOne bidirectionnal. ConfigType is now a service so I can inject the list of available themes that are also used by LiipThemeBundle Force sqlite for test In case of people use a different driver in parameter.yml (yes I do :)) --- src/Wallabag/CoreBundle/Resources/config/services.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'src/Wallabag/CoreBundle/Resources/config/services.yml') diff --git a/src/Wallabag/CoreBundle/Resources/config/services.yml b/src/Wallabag/CoreBundle/Resources/config/services.yml index b066c1a3..5437d1cf 100644 --- a/src/Wallabag/CoreBundle/Resources/config/services.yml +++ b/src/Wallabag/CoreBundle/Resources/config/services.yml @@ -1,15 +1,29 @@ services: - wallabag_core.twig.wallabag: + wallabag_core.twig.extension: class: Wallabag\CoreBundle\Twig\Extension\WallabagExtension tags: - { name: twig.extension } + wsse.security.authentication.provider: class: Wallabag\CoreBundle\Security\Authentication\Provider\WsseProvider public: false arguments: ['', '%kernel.cache_dir%/security/nonces'] + wsse.security.authentication.listener: class: Wallabag\CoreBundle\Security\Firewall\WsseListener public: false tags: - { name: monolog.logger, channel: wsse } arguments: ['@security.context', '@security.authentication.manager', '@logger'] + + wallabag_core.helper.detect_active_theme: + class: Wallabag\CoreBundle\Helper\DetectActiveTheme + arguments: + - @security.context + + wallabag_core.form.type.config: + class: Wallabag\CoreBundle\Form\Type\ConfigType + arguments: + - %liip_theme.themes% + tags: + - { name: form.type, alias: config } -- cgit v1.2.3 From 495aecfe7417918c45d8ea32b1ee8903018449cd Mon Sep 17 00:00:00 2001 From: Jeremy Date: Sun, 1 Mar 2015 08:22:29 +0100 Subject: Cleanup & simplify theme --- src/Wallabag/CoreBundle/Resources/config/services.yml | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Wallabag/CoreBundle/Resources/config/services.yml') diff --git a/src/Wallabag/CoreBundle/Resources/config/services.yml b/src/Wallabag/CoreBundle/Resources/config/services.yml index 5437d1cf..c734a3a5 100644 --- a/src/Wallabag/CoreBundle/Resources/config/services.yml +++ b/src/Wallabag/CoreBundle/Resources/config/services.yml @@ -20,6 +20,7 @@ services: class: Wallabag\CoreBundle\Helper\DetectActiveTheme arguments: - @security.context + - %theme% # default theme from parameters.yml wallabag_core.form.type.config: class: Wallabag\CoreBundle\Form\Type\ConfigType -- cgit v1.2.3