From 46718ab1a0cb7878556d18db4dffa306e95110cd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Wed, 11 Aug 2021 20:43:33 +0200 Subject: [PATCH] Use RapsysUserBundle::getAlias to retrieve alias --- DependencyInjection/Configuration.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 4d2d3bf..01d6ee5 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -14,10 +14,12 @@ namespace Rapsys\UserBundle\DependencyInjection; use Symfony\Component\Config\Definition\Builder\TreeBuilder; use Symfony\Component\Config\Definition\ConfigurationInterface; +use Rapsys\UserBundle\RapsysUserBundle; + /** * This is the class that validates and merges configuration from your app/config files. * - * @link http://symfony.com/doc/current/cookbook/bundles/configuration.html} + * @link http://symfony.com/doc/current/cookbook/bundles/configuration.html * * {@inheritdoc} */ @@ -27,7 +29,7 @@ class Configuration implements ConfigurationInterface { */ public function getConfigTreeBuilder(): TreeBuilder { //Set tree builder - $treeBuilder = new TreeBuilder('rapsys_user'); + $treeBuilder = new TreeBuilder(RapsysUserBundle::getAlias()); //The bundle default values $defaults = [ @@ -96,7 +98,7 @@ class Configuration implements ConfigurationInterface { 'route' => ['index' => 'index_url', 'recover' => 'recover_url'], 'view' => [ 'name' => '@RapsysUser/form/recover.html.twig', - 'form' => 'Rapsys\UserBundle\Form\RecoverType', + 'form' => 'Rapsys\UserBundle\Form\LoginType', 'context' => [] ], 'mail' => [ -- 2.41.1