From 4c1ad700cba18c3dd804b67f5c091c25bcc7814a Mon Sep 17 00:00:00 2001 From: Kamil Kokot Date: Wed, 4 Jul 2018 20:26:10 +0200 Subject: [PATCH] Use ...Prototype() instead of prototype('...') in Symfony configuration --- DependencyInjection/Configuration.php | 4 ++-- Routing/Configuration.php | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 1bbd0f1af..a93df55ac 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -111,7 +111,7 @@ private function addSettingsSection(ArrayNodeDefinition $node): void ->variableNode('paginate')->defaultNull()->end() ->variableNode('limit')->defaultNull()->end() ->arrayNode('allowed_paginate') - ->prototype('integer')->end() + ->integerPrototype()->end() ->defaultValue([10, 20, 30]) ->end() ->integerNode('default_page_size')->defaultValue(10)->end() @@ -150,7 +150,7 @@ private function addDriversSection(ArrayNodeDefinition $node): void ->children() ->arrayNode('drivers') ->defaultValue([SyliusResourceBundle::DRIVER_DOCTRINE_ORM]) - ->prototype('enum')->values(SyliusResourceBundle::getAvailableDrivers())->end() + ->enumPrototype()->values(SyliusResourceBundle::getAvailableDrivers())->end() ->end() ->end() ; diff --git a/Routing/Configuration.php b/Routing/Configuration.php index 5370c3347..bda1b3d8f 100644 --- a/Routing/Configuration.php +++ b/Routing/Configuration.php @@ -36,7 +36,7 @@ public function getConfigTreeBuilder(): TreeBuilder ->scalarNode('identifier')->defaultValue('id')->end() ->arrayNode('criteria') ->useAttributeAsKey('identifier') - ->prototype('scalar') + ->scalarPrototype() ->end() ->end() ->booleanNode('filterable')->end() @@ -48,10 +48,10 @@ public function getConfigTreeBuilder(): TreeBuilder ->scalarNode('grid')->cannotBeEmpty()->end() ->booleanNode('permission')->defaultValue(false)->end() ->arrayNode('except') - ->prototype('scalar')->end() + ->scalarPrototype()->end() ->end() ->arrayNode('only') - ->prototype('scalar')->end() + ->scalarPrototype()->end() ->end() ->variableNode('vars')->cannotBeEmpty()->end() ->end()