@@ -44,7 +44,7 @@ public function getConfigTreeBuilder() : TreeBuilder
44
44
$ rootNode
45
45
->children ()
46
46
->scalarNode ('name ' )
47
- ->setDeprecated (...$ this ->getParamDeprecationMsg ('The "%node%" option is deprecated. ' ))
47
+ ->setDeprecated (...$ this ->getDeprecationParams ('The "%node%" option is deprecated. ' ))
48
48
->defaultValue ('Application Migrations ' )
49
49
->end ()
50
50
@@ -92,27 +92,27 @@ public function getConfigTreeBuilder() : TreeBuilder
92
92
93
93
->scalarNode ('dir_name ' )
94
94
->defaultValue ('%kernel.root_dir%/DoctrineMigrations ' )->cannotBeEmpty ()
95
- ->setDeprecated (...$ this ->getParamDeprecationMsg ('The "%node%" option is deprecated. Use "migrations_paths" instead. ' ))
95
+ ->setDeprecated (...$ this ->getDeprecationParams ('The "%node%" option is deprecated. Use "migrations_paths" instead. ' ))
96
96
->end ()
97
97
->scalarNode ('namespace ' )
98
98
->defaultValue ('Application\Migrations ' )->cannotBeEmpty ()
99
- ->setDeprecated (...$ this ->getParamDeprecationMsg ('The "%node%" option is deprecated. Use "migrations_paths" instead. ' ))
99
+ ->setDeprecated (...$ this ->getDeprecationParams ('The "%node%" option is deprecated. Use "migrations_paths" instead. ' ))
100
100
->end ()
101
101
->scalarNode ('table_name ' )
102
102
->defaultValue ('migration_versions ' )->cannotBeEmpty ()
103
- ->setDeprecated (...$ this ->getParamDeprecationMsg ('The "%node%" option is deprecated. Use "storage.table_storage.table_name" instead. ' ))
103
+ ->setDeprecated (...$ this ->getDeprecationParams ('The "%node%" option is deprecated. Use "storage.table_storage.table_name" instead. ' ))
104
104
->end ()
105
105
->scalarNode ('column_name ' )
106
106
->defaultValue ('version ' )
107
- ->setDeprecated (...$ this ->getParamDeprecationMsg ('The "%node%" option is deprecated. Use "storage.table_storage.version_column_name" instead. ' ))
107
+ ->setDeprecated (...$ this ->getDeprecationParams ('The "%node%" option is deprecated. Use "storage.table_storage.version_column_name" instead. ' ))
108
108
->end ()
109
109
->scalarNode ('column_length ' )
110
110
->defaultValue (14 )
111
- ->setDeprecated (...$ this ->getParamDeprecationMsg ('The "%node%" option is deprecated. Use "storage.table_storage.version_column_length" instead. ' ))
111
+ ->setDeprecated (...$ this ->getDeprecationParams ('The "%node%" option is deprecated. Use "storage.table_storage.version_column_length" instead. ' ))
112
112
->end ()
113
113
->scalarNode ('executed_at_column_name ' )
114
114
->defaultValue ('executed_at ' )
115
- ->setDeprecated (...$ this ->getParamDeprecationMsg ('The "%node%" option is deprecated. Use "storage.table_storage.executed_at_column_name" instead. ' ))
115
+ ->setDeprecated (...$ this ->getDeprecationParams ('The "%node%" option is deprecated. Use "storage.table_storage.executed_at_column_name" instead. ' ))
116
116
->end ()
117
117
->scalarNode ('all_or_nothing ' )->defaultValue (false )->end ()
118
118
->scalarNode ('custom_template ' )->defaultValue (null )->end ()
@@ -179,7 +179,7 @@ private function getOrganizeMigrationsModes() : array
179
179
*
180
180
* @return string[]
181
181
*/
182
- private function getParamDeprecationMsg (string $ message ) : array
182
+ private function getDeprecationParams (string $ message ) : array
183
183
{
184
184
if (method_exists (BaseNode::class, 'getDeprecation ' )) {
185
185
return [
0 commit comments