Skip to content

Commit

Permalink
Improve form deprecation notices to mention the affected service ids
Browse files Browse the repository at this point in the history
  • Loading branch information
Jannik Zschiesche committed Dec 12, 2015
1 parent 8bd62a5 commit 0b9ea95
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -64,10 +64,10 @@ public function process(ContainerBuilder $container)
if (isset($tag[0]['extended_type'])) {
$extendedType = $tag[0]['extended_type'];
} elseif (isset($tag[0]['alias'])) {
@trigger_error('The alias option of the form.type_extension tag is deprecated since version 2.8 and will be removed in 3.0. Use the extended_type option instead.', E_USER_DEPRECATED);
@trigger_error(sprintf('The alias option of the form.type_extension tag of service "%s" is deprecated since version 2.8 and will be removed in 3.0. Use the extended_type option instead.', $serviceId), E_USER_DEPRECATED);
$extendedType = $tag[0]['alias'];
} else {
@trigger_error('The extended_type option of the form.type_extension tag is required since version 2.8.', E_USER_DEPRECATED);
@trigger_error(sprintf('The extended_type option of the form.type_extension tag of service "%s" is required since version 2.8.', $serviceId), E_USER_DEPRECATED);
$extendedType = $serviceId;
}

Expand Down

0 comments on commit 0b9ea95

Please sign in to comment.