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
@trigger_error(sprintf('Autowiring services based on the types they implement is deprecated since Symfony 3.3 and won\'t be supported in version 4.0. You should %s the "%s" service to "%s" instead.', isset($this->types[$this->types[$type]]) ? 'alias' : 'rename (or alias)', $this->types[$type], $type), E_USER_DEPRECATED);
333
327
@@ -370,12 +364,6 @@ private function populateAvailableType($id, Definition $definition)
@trigger_error('Autowiring-types are deprecated since Symfony 3.3 and will be removed in 4.0. Use aliases instead.', E_USER_DEPRECATED);
807
-
}
808
-
809
-
returnarray_keys($this->autowiringTypes);
810
-
}
811
-
812
-
/**
813
-
* Adds a type that will default to this definition.
814
-
*
815
-
* @param string $type
816
-
*
817
-
* @return $this
818
-
*
819
-
* @deprecated since version 3.3, to be removed in 4.0.
820
-
*/
821
-
publicfunctionaddAutowiringType($type)
822
-
{
823
-
@trigger_error(sprintf('Autowiring-types are deprecated since Symfony 3.3 and will be removed in 4.0. Use aliases instead for "%s".', $type), E_USER_DEPRECATED);
824
-
825
-
$this->autowiringTypes[$type] = true;
826
-
827
-
return$this;
828
-
}
829
-
830
-
/**
831
-
* Removes a type.
832
-
*
833
-
* @param string $type
834
-
*
835
-
* @return $this
836
-
*
837
-
* @deprecated since version 3.3, to be removed in 4.0.
838
-
*/
839
-
publicfunctionremoveAutowiringType($type)
840
-
{
841
-
@trigger_error(sprintf('Autowiring-types are deprecated since Symfony 3.3 and will be removed in 4.0. Use aliases instead for "%s".', $type), E_USER_DEPRECATED);
842
-
843
-
unset($this->autowiringTypes[$type]);
844
-
845
-
return$this;
846
-
}
847
-
848
-
/**
849
-
* Will this definition default for the given type?
850
-
*
851
-
* @param string $type
852
-
*
853
-
* @return bool
854
-
*
855
-
* @deprecated since version 3.3, to be removed in 4.0.
856
-
*/
857
-
publicfunctionhasAutowiringType($type)
858
-
{
859
-
@trigger_error(sprintf('Autowiring-types are deprecated since Symfony 3.3 and will be removed in 4.0. Use aliases instead for "%s".', $type), E_USER_DEPRECATED);
thrownewInvalidArgumentException(sprintf('Parameter "autowiring_types" must be a string or an array for service "%s" in %s. Check your YAML syntax.', $id, $file));
thrownewInvalidArgumentException(sprintf('A "autowiring_types" attribute must be of type string for service "%s" in %s. Check your YAML syntax.', $id, $file));
0 commit comments