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
Suppress deprecations on deprecating legacy services (#445)
* Suppress deprecations on deprecating legacy services
* Apply PHP CS Fixer recommendations
* Fix the Kernel version ID number
* Simplify code: Remove unnecessary var
* Rename the method to registerDeprecatedServices()
// Declare legacy services to remove in next major release
45
+
$service = $servicesConfigurator->set($id)
46
+
->parent($parent);
47
+
48
+
if (Kernel::VERSION_ID < 50100) {
49
+
$service->deprecate('Since php-translation/symfony-bundle 0.10.0: The "%service_id%" service is deprecated. You should stop using it, as it will soon be removed.');
50
+
} else {
51
+
$service->deprecate('php-translation/symfony-bundle', '0.10.0', 'The "%service_id%" service is deprecated. You should stop using it, as it will soon be removed.');
0 commit comments