title: Api-Platform "No operations defined in spec!" in Symfony 5.1 dev system
body: <p>I am using Symfony 5.1.8 in an existing project and installed Api Platform, version 2.5.7:</p>
  <pre><code>composer req api
  </code></pre>
  <p>I added an @ApiResource() Annotation to one of my entity classes.</p>
  <p>When calling the /api/ route there is always just a message saying &quot;No operations defined in spec!&quot;. <strong>The problem does only occur on my dev system (php 4.7.11, macOS Catalina 10.15.6, xdebug... ).</strong> So I do not think it's a configuration problem...</p>
  <p>When I deploy this to my testsystem (debian with docker containers) everything works as expected - there are shown 6 resources I can interact with.</p>
  <p>I tried to update my composer dependencies, clear the cache several times, clear the cache folder... nothing of this helped.</p>
  <p>When calling</p>
  <pre><code>bin/console debug:router
  </code></pre>
  <p>on my test system, I get all 6 resources. In my dev system there are no routes shown.</p>
  <p>Do you have any ideas where to start debugging to better understand the problem?</p>
  <p>What are further interesting details?</p>
  <p>Edit:
  It works in the dev system when changing the environment to &quot;test&quot;. But I do still not have a clue, why...</p>
  <p>regards</p>
  <p>Stephan</p>