Skip to content

Commit

Permalink
fix configuration for page update notifier
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDev committed Apr 8, 2021
1 parent dedcb87 commit 7799bff
Showing 1 changed file with 6 additions and 6 deletions.
Expand Up @@ -8,19 +8,19 @@
class Configuration implements ConfigurationInterface
{
const DEFAULT_APP_FALLBACK = [
'notifier_email',
'page_update_notification_mail',
'interval',
'page_update_notification_from',
'page_update_notification_to',
'page_update_notification_interval',
];

public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder('pushword_page_update_notifier');
$treeBuilder->getRootNode()->children()
->variableNode('app_fallback_properties')->defaultValue(self::DEFAULT_APP_FALLBACK)->cannotBeEmpty()->end()
->scalarNode('notifier_email')->defaultValue(null)->end()
->scalarNode('page_update_notification_mail')->defaultValue(null)->end()
->scalarNode('interval')->defaultValue('P1D')->end()
->scalarNode('page_update_notification_from')->defaultValue(null)->end()
->scalarNode('page_update_notification_to')->defaultValue(null)->end()
->scalarNode('page_update_notification_interval')->defaultValue('P1D')->end()
->end();

return $treeBuilder;
Expand Down

0 comments on commit 7799bff

Please sign in to comment.