diff --git a/src/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php index 0f6fc8231..65cb693b6 100644 --- a/src/DependencyInjection/Configuration.php +++ b/src/DependencyInjection/Configuration.php @@ -19,6 +19,7 @@ use Symfony\Component\Config\Definition\Builder\ScalarNodeDefinition; use Symfony\Component\Config\Definition\Builder\TreeBuilder; use Symfony\Component\Config\Definition\ConfigurationInterface; +use Symfony\Component\HttpKernel\Kernel; use function array_keys; use function is_array; use function is_int; @@ -207,6 +208,16 @@ private function definitionsSchemaSection(): ArrayNodeDefinition /** @var ArrayNodeDefinition $node */ $node = $builder->getRootNode(); + if (Kernel::VERSION_ID >= 50100) { + $deprecatedArgs = [ + 'overblog/graphql-bundle', + '1.0', + 'The "%path%.%node%" configuration is deprecated and will be removed in 1.0. Add the "overblog_graphql.resolver_map" tag to the services instead.', + ]; + } else { + $deprecatedArgs = ['The "%path%.%node%" configuration is deprecated since version 0.13 and will be removed in 1.0. Add the "overblog_graphql.resolver_map" tag to the services instead.']; + } + // @phpstan-ignore-next-line $node ->beforeNormalization() @@ -223,7 +234,7 @@ private function definitionsSchemaSection(): ArrayNodeDefinition ->arrayNode('resolver_maps') ->defaultValue([]) ->prototype('scalar')->end() - ->setDeprecated('The "%path%.%node%" configuration is deprecated since version 0.13 and will be removed in 1.0. Add the "overblog_graphql.resolver_map" tag to the services instead.') + ->setDeprecated(...$deprecatedArgs) ->end() ->arrayNode('types') ->defaultValue([]) diff --git a/tests/Functional/App/config/config.yml b/tests/Functional/App/config/config.yml index efbf00fa8..77b943a91 100644 --- a/tests/Functional/App/config/config.yml +++ b/tests/Functional/App/config/config.yml @@ -3,6 +3,7 @@ framework: secret: test router: resource: "%kernel.project_dir%/config/routing.yml" + utf8: true profiler: enabled: false