Skip to content

Commit

Permalink
Rename 'staticRoutes' to 'static_routes'
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandoorn committed Aug 4, 2017
1 parent 052f193 commit a18b5b4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ sitemap:
exclude_taxon_root: true
absolute_url: true
hreflang: true
staticRoutes:
static_routes:
- { route: sylius_shop_homepage, parameters: [], locales: [] }
- { route: sylius_shop_contact_request, parameters: [], locales: [] }
```
Expand Down
2 changes: 1 addition & 1 deletion src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ private function addSitemapSection(ArrayNodeDefinition $node)
->info('Whether to generate alternative URL versions for each locale. Defaults to true. Background: https://support.google.com/webmasters/answer/189077?hl=en.')
->defaultTrue()
->end()
->arrayNode('staticRoutes')
->arrayNode('static_routes')
->beforeNormalization()->castToArray()->end()
->info('In case you want to add static routes to your sitemap (e.g. homepage), configure them here. Defaults to homepage & contact page.')
->prototype('array')
Expand Down
2 changes: 1 addition & 1 deletion src/DependencyInjection/SitemapExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ public function load(array $config, ContainerBuilder $container)
$container->setParameter('sylius.sitemap_exclude_taxon_root', $config['exclude_taxon_root']);
$container->setParameter('sylius.sitemap_absolute_url', $config['absolute_url']);
$container->setParameter('sylius.sitemap_hreflang', $config['hreflang']);
$container->setParameter('sylius.sitemap_static', $config['staticRoutes']);
$container->setParameter('sylius.sitemap_static', $config['static_routes']);
}
}

0 comments on commit a18b5b4

Please sign in to comment.