From a18b5b49b6b0b4c6ac38f7eb700695f504f592c8 Mon Sep 17 00:00:00 2001 From: Stefan Doorn Date: Fri, 4 Aug 2017 16:14:11 +0200 Subject: [PATCH] Rename 'staticRoutes' to 'static_routes' --- README.md | 2 +- src/DependencyInjection/Configuration.php | 2 +- src/DependencyInjection/SitemapExtension.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a7a68c41..ea244aa5 100644 --- a/README.md +++ b/README.md @@ -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: [] } ``` diff --git a/src/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php index 840e0f19..8ccbb3d0 100644 --- a/src/DependencyInjection/Configuration.php +++ b/src/DependencyInjection/Configuration.php @@ -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') diff --git a/src/DependencyInjection/SitemapExtension.php b/src/DependencyInjection/SitemapExtension.php index 0aaed1a5..5b302939 100644 --- a/src/DependencyInjection/SitemapExtension.php +++ b/src/DependencyInjection/SitemapExtension.php @@ -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']); } }