title: Cannot inject Templating on Symfony 4 Service
body: <p>I have the following class:</p>
  
  <p><strong>EmailNotification</strong></p>
  
  <pre><code>namespace App\Component\Notification\RealTimeNotification;
  
  use Symfony\Bridge\Twig\TwigEngine;
  use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface;
  
  use App\Component\Notification\NotificationInterface;
  
  class EmailNotification implements NotificationInterface
  {   
      private $logNotification;
  
      public function __construct(LogNotification $logNotification, \Swift_Mailer $mailer,  EngineInterface $twigEngine)
      {
          $this-&gt;logNotification = $logNotification;
      }
  
      public function send(array $options): void
      {
          $this-&gt;logNotification-&gt;send($options);
  
          dump('Sent to email');
      }
  }
  </code></pre>
  
  <p>I have the following service definition on my yml:</p>
  
  <pre><code>app.email_notification:
      class: App\Component\Notification\RealTimeNotification\EmailNotification
      decorates: app.log_notification
      decoration_inner_name: app.log_notification.inner
      arguments: ['@app.log_notification.inner', '@mailer', '@templating']
  </code></pre>
  
  <p>However, when i tried to run my app it throws an Exception saying:</p>
  
  <blockquote>
    <p>Cannot autowire service
    "App\Component\Notification\RealTimeNotification\EmailNotification":
    argument "$twigEngine" of method "__construct()" has type
    "Symfony\Bundle\FrameworkBundle\Templating\EngineInterface" but this
    class was not found.</p>
  </blockquote>
  
  <p>Why is that so?</p>
  
  <p>Thanks!</p>