aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Resources
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-02-09 22:54:29 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-02-09 22:54:29 +0100
commit7ffb1e80bff2c54fe3fe4343484d377eda660c3f (patch)
tree87e62dd7ef22a419235a2980e5a64f1c862d66e8 /src/Wallabag/CoreBundle/Resources
parent5078e8360a69faef6a8a5fa1646cb3a15f0e78b0 (diff)
downloadwallabag-7ffb1e80bff2c54fe3fe4343484d377eda660c3f.tar.gz
wallabag-7ffb1e80bff2c54fe3fe4343484d377eda660c3f.tar.zst
wallabag-7ffb1e80bff2c54fe3fe4343484d377eda660c3f.zip
replace services.xml into services.yml
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources')
-rw-r--r--src/Wallabag/CoreBundle/Resources/config/services.xml29
-rw-r--r--src/Wallabag/CoreBundle/Resources/config/services.yml15
2 files changed, 15 insertions, 29 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/config/services.xml b/src/Wallabag/CoreBundle/Resources/config/services.xml
deleted file mode 100644
index ca2ba383..00000000
--- a/src/Wallabag/CoreBundle/Resources/config/services.xml
+++ /dev/null
@@ -1,29 +0,0 @@
1<?xml version="1.0" ?>
2
3<container xmlns="http://symfony.com/schema/dic/services"
4 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5 xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
6
7 <services>
8 <!-- Twig -->
9 <service id="wallabag_core.twig.wallabag" class="Wallabag\CoreBundle\Twig\Extension\WallabagExtension">
10 <tag name="twig.extension" />
11 </service>
12
13 <!-- Security -->
14 <service id="wsse.security.authentication.provider"
15 class="Wallabag\CoreBundle\Security\Authentication\Provider\WsseProvider" public="false">
16 <argument /> <!-- User Provider -->
17 <argument>%kernel.cache_dir%/security/nonces</argument>
18 </service>
19
20 <service id="wsse.security.authentication.listener"
21 class="Wallabag\CoreBundle\Security\Firewall\WsseListener" public="false">
22 <argument type="service" id="security.context"/>
23 <argument type="service" id="security.authentication.manager" />
24 <argument type="service" id="logger" />
25 <tag name="monolog.logger" channel="wsse" />
26 </service>
27 </services>
28
29</container>
diff --git a/src/Wallabag/CoreBundle/Resources/config/services.yml b/src/Wallabag/CoreBundle/Resources/config/services.yml
new file mode 100644
index 00000000..b066c1a3
--- /dev/null
+++ b/src/Wallabag/CoreBundle/Resources/config/services.yml
@@ -0,0 +1,15 @@
1services:
2 wallabag_core.twig.wallabag:
3 class: Wallabag\CoreBundle\Twig\Extension\WallabagExtension
4 tags:
5 - { name: twig.extension }
6 wsse.security.authentication.provider:
7 class: Wallabag\CoreBundle\Security\Authentication\Provider\WsseProvider
8 public: false
9 arguments: ['', '%kernel.cache_dir%/security/nonces']
10 wsse.security.authentication.listener:
11 class: Wallabag\CoreBundle\Security\Firewall\WsseListener
12 public: false
13 tags:
14 - { name: monolog.logger, channel: wsse }
15 arguments: ['@security.context', '@security.authentication.manager', '@logger']