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
+4-14Lines changed: 4 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -58,13 +58,9 @@ public function getConfigTreeBuilder()
58
58
->defaultValue('0.0.0')
59
59
->end()
60
60
->scalarNode('default_operation_path_resolver')
61
-
->beforeNormalization()->always(function ($v) {
62
-
@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);
->info('[Deprecated] Specify the default operation path resolver to use for generating resources operations path.')
62
+
->setDeprecated('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.')
63
+
->info('Specify the default operation path resolver to use for generating resources operations path.')
68
64
->end()
69
65
->scalarNode('name_converter')->defaultNull()->info('Specify a name converter to use.')->end()
70
66
->scalarNode('path_segment_name_generator')->defaultValue('api_platform.path_segment_name_generator.underscore')->info('Specify a path name generator to use.')->end()
@@ -87,15 +83,9 @@ public function getConfigTreeBuilder()
87
83
->end()
88
84
->booleanNode('enable_fos_user')->defaultValue(class_exists(FOSUserBundle::class))->info('Enable the FOSUserBundle integration.')->end()
89
85
->booleanNode('enable_nelmio_api_doc')
90
-
->beforeNormalization()->always(function ($v) {
91
-
if ($v) {
92
-
@trigger_error('Enabling the NelmioApiDocBundle integration has been deprecated in 2.2 and will be removed in 3.0. NelmioApiDocBundle 3 has native support for API Platform.', E_USER_DEPRECATED);
93
-
}
94
-
95
-
return$v;
96
-
})->end()
97
86
->defaultValue(false)
98
-
->info('[Deprecated] Enable the NelmioApiDocBundle integration.')
87
+
->setDeprecated('Enabling the NelmioApiDocBundle integration has been deprecated in 2.2 and will be removed in 3.0. NelmioApiDocBundle 3 has native support for API Platform.')
88
+
->info('Enable the NelmioApiDocBundle integration.')
99
89
->end()
100
90
->booleanNode('enable_swagger')->defaultValue(true)->info('Enable the Swagger documentation and export.')->end()
0 commit comments