From 7ffb1e80bff2c54fe3fe4343484d377eda660c3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Mon, 9 Feb 2015 22:54:29 +0100 Subject: replace services.xml into services.yml --- .../DependencyInjection/WallabagCoreExtension.php | 6 ++--- .../CoreBundle/Resources/config/services.xml | 29 ---------------------- .../CoreBundle/Resources/config/services.yml | 15 +++++++++++ 3 files changed, 18 insertions(+), 32 deletions(-) delete mode 100644 src/Wallabag/CoreBundle/Resources/config/services.xml create mode 100644 src/Wallabag/CoreBundle/Resources/config/services.yml (limited to 'src/Wallabag/CoreBundle') diff --git a/src/Wallabag/CoreBundle/DependencyInjection/WallabagCoreExtension.php b/src/Wallabag/CoreBundle/DependencyInjection/WallabagCoreExtension.php index 7cc4165e..c6ecc99e 100644 --- a/src/Wallabag/CoreBundle/DependencyInjection/WallabagCoreExtension.php +++ b/src/Wallabag/CoreBundle/DependencyInjection/WallabagCoreExtension.php @@ -3,7 +3,7 @@ namespace Wallabag\CoreBundle\DependencyInjection; use Symfony\Component\DependencyInjection\ContainerBuilder; -use Symfony\Component\DependencyInjection\Loader\XmlFileLoader; +use Symfony\Component\DependencyInjection\Loader\YamlFileLoader; use Symfony\Component\HttpKernel\DependencyInjection\Extension; use Symfony\Component\Config\FileLocator; @@ -11,8 +11,8 @@ class WallabagCoreExtension extends Extension { public function load(array $configs, ContainerBuilder $container) { - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); - $loader->load('services.xml'); + $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); + $loader->load('services.yml'); } public function getAlias() 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 @@ - - - - - - - - - - - - - - %kernel.cache_dir%/security/nonces - - - - - - - - - - - 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 @@ +services: + wallabag_core.twig.wallabag: + 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'] -- cgit v1.2.3