[DI] deprecate the strict attribute

This commit is contained in:
Christian Flothmann 2016-12-27 11:26:21 +01:00
parent 10c9d19f6d
commit 49cb4dbd8c

View File

@ -474,6 +474,10 @@ class XmlFileLoader extends FileLoader
switch ($arg->getAttribute('type')) {
case 'service':
if ($arg->hasAttribute('strict')) {
@trigger_error(sprintf('The "strict" attribute used when referencing the "%s" service is deprecated since version 3.3 and will be removed in 4.0.', $arg->getAttribute('id')), E_USER_DEPRECATED);
}
$arguments[$key] = new Reference($arg->getAttribute('id'), $invalidBehavior);
break;
case 'expression':