Skip to content

Commit

Permalink
~ add cannotBeEmpty again
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanmac committed Jul 4, 2023
1 parent 1df8771 commit f8e723a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ private function addResettingSection(ArrayNodeDefinition $node): void
->addDefaultsIfNotSet()
->children()
->scalarNode('template')->cannotBeEmpty()->defaultValue('@SonataUser/Admin/Security/Resetting/email.html.twig')->end()
->scalarNode('address')->end()
->scalarNode('sender_name')->end()
->scalarNode('address')->cannotBeEmpty()->end()
->scalarNode('sender_name')->cannotBeEmpty()->end()
->end()
->end()
->end()
Expand Down
4 changes: 1 addition & 3 deletions src/DependencyInjection/SonataUserExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@ public function load(array $configs, ContainerBuilder $container): void
->replaceArgument(8, $resetting);
}

if ($this->isConfigEnabled($container, $config['impersonating'])) {
$this->configureImpersonation($config['impersonating'], $container);
}
$this->configureImpersonation($config['impersonating'], $container);
}

/**
Expand Down
3 changes: 1 addition & 2 deletions src/Resources/config/actions_resetting.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,5 @@
service('sonata.user.manager.user'),
service('translator'),
abstract_arg('token ttl'),
])
;
]);
};

0 comments on commit f8e723a

Please sign in to comment.