You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Bridge/Symfony/Bundle/DependencyInjection/Configuration.php
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -43,8 +43,15 @@ public function getConfigTreeBuilder()
43
43
->scalarNode('title')->defaultValue('')->info('The title of the API.')->end()
44
44
->scalarNode('description')->defaultValue('')->info('The description of the API.')->end()
45
45
->scalarNode('version')->defaultValue('0.0.0')->info('The version of the API.')->end()
46
-
->scalarNode('default_operation_path_resolver')->defaultValue('api_platform.operation_path_resolver.underscore')->info('Specify the default operation path resolver to use for generating resources operations path.')->end()
46
+
->scalarNode('default_operation_path_resolver')
47
+
->beforeNormalization()->always(function ($v) {
48
+
if (isset($v['default_operation_path_resolver'])) {
49
+
@trigger_error('The use of the `default_operation_path_resolver` has been deprecated in 2.1 and will be removed in 3.0. Use `path_segment_name_generator` instead.', E_USER_DEPRECATED);
50
+
}
51
+
})->end()
52
+
->defaultValue('api_platform.operation_path_resolver.underscore')->info('Specify the default operation path resolver to use for generating resources operations path.')->end()
47
53
->scalarNode('name_converter')->defaultNull()->info('Specify a name converter to use.')->end()
54
+
->scalarNode('path_segment_name_generator')->defaultValue('api_platform.path_segment_name_generator.underscore')->info('Specify a path name generator to use.')->end()
48
55
->scalarNode('api_resources_directory')->defaultValue('Entity')->info('The name of the directory within the bundles that contains the api resources.')->end()
<deprecated>The "%service_id%" service is deprecated since ApiPlatform 2.1 and will be removed in 3.0. Use PathSegmentNameGenerator instead.</deprecated>
<deprecated>The "%service_id%" service is deprecated since ApiPlatform 2.1 and will be removed in 3.0. Use PathSegmentNameGenerator instead.</deprecated>
0 commit comments