From 23ff8d36199c0cddb5bae4a5010cb71f861eeef8 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Tue, 29 Dec 2015 09:59:46 +0100 Subject: Add custom email for 2FA Related #1490 --- .../DependencyInjection/Configuration.php | 17 +++++++++++++++ .../DependencyInjection/WallabagUserExtension.php | 25 ++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 src/Wallabag/UserBundle/DependencyInjection/Configuration.php create mode 100644 src/Wallabag/UserBundle/DependencyInjection/WallabagUserExtension.php (limited to 'src/Wallabag/UserBundle/DependencyInjection') diff --git a/src/Wallabag/UserBundle/DependencyInjection/Configuration.php b/src/Wallabag/UserBundle/DependencyInjection/Configuration.php new file mode 100644 index 00000000..4223f8db --- /dev/null +++ b/src/Wallabag/UserBundle/DependencyInjection/Configuration.php @@ -0,0 +1,17 @@ +root('wallabag_user'); + + return $treeBuilder; + } +} diff --git a/src/Wallabag/UserBundle/DependencyInjection/WallabagUserExtension.php b/src/Wallabag/UserBundle/DependencyInjection/WallabagUserExtension.php new file mode 100644 index 00000000..c12a8937 --- /dev/null +++ b/src/Wallabag/UserBundle/DependencyInjection/WallabagUserExtension.php @@ -0,0 +1,25 @@ +processConfiguration($configuration, $configs); + + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); + $loader->load('services.yml'); + } + + public function getAlias() + { + return 'wallabag_user'; + } +} -- cgit v1.2.3