title: Cannot autowire argument $request
body: <p>My controller looks like:</p>
  <pre><code>use Psr\Http\Message\ServerRequestInterface;
  
  class HelloController extends AbstractController
  {
      public function __invoke(ServerRequestInterface $request): Response
      {
          dd($request)
          return $this-&gt;json([]);
      }
  </code></pre>
  <p>After going to URL of this controller I get the following error:</p>
  <pre><code>Cannot autowire argument $request of &quot;HelloController()&quot;: it references interface &quot;Psr\Http\Message\ServerRequestInterface&quot; but no such service exists. Did you create a class that implements this interface?
  </code></pre>
  <p>My composer.json looks like:</p>
  <pre class="lang-json prettyprint-override"><code>{
      &quot;type&quot;: &quot;project&quot;,
      &quot;license&quot;: &quot;proprietary&quot;,
      &quot;require&quot;: {
          &quot;php&quot;: &quot;^7.4&quot;,
          &quot;nyholm/psr7&quot;: &quot;^1.1&quot;,
          &quot;psr/http-client&quot;: &quot;^1.0&quot;,
          &quot;sensio/framework-extra-bundle&quot;: &quot;^6.1&quot;,
          &quot;symfony/asset&quot;: &quot;^4.1&quot;,
          &quot;symfony/flex&quot;: &quot;^1.0&quot;,
          &quot;symfony/framework-bundle&quot;: &quot;^4.1&quot;,
          &quot;symfony/messenger&quot;: &quot;^4.1&quot;,
          &quot;symfony/psr-http-message-bridge&quot;: &quot;^1.0&quot;,
          &quot;symfony/security-bundle&quot;: &quot;^4.1&quot;,
          &quot;symfony/yaml&quot;: &quot;^4.1&quot;,
          &quot;php-http/httplug&quot;: &quot;^2.0&quot;,
          &quot;php-http/guzzle6-adapter&quot;: &quot;^2.0&quot;,
          &quot;guzzlehttp/psr7&quot;: &quot;^1.5&quot;
      },
  </code></pre>
  <p>I have not set anything in <code>services.yaml</code> file.</p>