@@ -12,6 +12,7 @@ use Symfony\Component\DependencyInjection\Exception\AutowiringFailedException;
* Extension of \Drupal\Core\DependencyInjection\AutowireTrait.
* - Add caching to reduce performance issues.
* - Allow passing extra arguments for the constructor.
* - Allow optional dependencies.
*/
traitAutowireTrait{
@@ -43,15 +44,19 @@ trait AutowireTrait {
}
if(!$container->has($service)){
if(!$parameter->allowsNull()){
thrownewAutowiringFailedException($service,sprintf('Cannot autowire service "%s": argument "$%s" of method "%s::_construct()", you should configure its value explicitly.',$service,$parameter->getName(),static::class));
@trigger_error('\Drupal\symfony_mailer\Email::attachNoPath() is deprecated in symfony_mailer:1.6.0 and is removed from symfony_mailer:2.0.0. Use ::attach() instead. See https://www.drupal.org/node/3476132',E_USER_DEPRECATED);