title: Forward Requests to another Controller does not work - symfony4
body: <p>I've the problem, that forward Requests to another Controller does not work. </p>
  
  <p>I've tried the solution/example from the symfony documentation (<a href="https://symfony.com/doc/current/controller/forwarding.html" rel="nofollow noreferrer">https://symfony.com/doc/current/controller/forwarding.html</a>).</p>
  
  <p>IndexController.php</p>
  
  <pre class="lang-php prettyprint-override"><code>
  &lt;?php
  
  namespace App\Controller;
  use App\Controller\OeffnungController;
  use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  use Symfony\Component\Routing\Annotation\Route;
  
  class IndexController extends AbstractController
  {
      /**
       * @Route("/")
       */
      public function index($thisname)
      {
          $thisname = "TEST";
          return $this-&gt;render('index/index.html.twig', [
              'controller_name' =&gt; 'IndexController',
              'pagetype' =&gt; 'index',
              'pageurl' =&gt; "https://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]",
          ]);
      }
  }
  
  ?&gt;
  </code></pre>
  
  <p>OeffnungController.php</p>
  
  <pre class="lang-php prettyprint-override"><code>&lt;?php
  
  namespace App\Controller;
  use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  use Symfony\Component\Routing\Annotation\Route;
  use App\Entity\Offnungszeiten;
  use App\Controller\IndexController;
  
  class OeffnungController extends AbstractController
  {
      public function show($thisname)
      {
          $product = $this-&gt;getDoctrine()
              -&gt;getRepository(Offnungszeiten::class)
              -&gt;findOneBy(['name' =&gt; 'TESTPRODUCT']);
  
          if (!$product) {
              throw $this-&gt;createNotFoundException(
                  'No product found for id '
              );
          }
  
          $response = $this-&gt;forward('App\Controller\IndexController::index', [
              'thisname' =&gt; $product-&gt;getName(),
          ]);
          return $response;
  
      }
  }
  ?&gt;
  </code></pre>
  
  <p>I got the following error </p>
  
  <pre><code>Could not resolve argument $thisname of "App\Controller\IndexController::index()", maybe you forgot to register the controller as a service or missed tagging it with the "controller.service_arguments"?
  </code></pre>