title: Why my Symfony route is overridden by other routes?
body: <p>I use annotations to define routes in my project. I have a controller method that has such a route:</p>
  <pre><code>/**
  * @Route(&quot;/{slug}&quot;, name=&quot;showcompany&quot;)
  */
  public function show(Company $company): Response
  {
  ...
  }
  </code></pre>
  <p>This is done to catch requests like <code>website.com/company1</code>, <code>website.com/company2</code>, etc...</p>
  <p>I get this error:</p>
  <blockquote>
  <p>&quot;App\Entity\Company object not found by the @ParamConverter
  annotation.&quot;</p>
  </blockquote>
  <p>Since obviously all other routes such as website.com/signup are considered as <code>slugs</code> of the Company entity.</p>
  <p>The question is how to avoid this behavior without moving all routes to <code>routes.yaml</code> and ordering them manually? I want all routes to be prioritized over this <code>/{slug}</code> route.</p>