title: Token storage contains no authentication token and denyAccessUnlessGranted()
body: <p>I'm having an error: </p>
  
  <blockquote>
    <p>"The token storage contains no authentication token. One possible reason may be that there is no firewall configured for this URL.</p>
  </blockquote>
  
  <p>Which is caused by <code>denyAccessUnlessGranted()</code> added to a controller. It happens on test environment as there is <code>security: false</code>. Is there a mechanism to handle an environment in such a case or what should I do with it?</p>
  
  <p>Trace:</p>
  
  <pre><code>0 /backend/vendor/symfony/framework-bundle/Controller/ControllerTrait.php(179): Symfony\Component\Security\Core\Authorization\AuthorizationChecker-&gt;isGranted('read', Object(App\Entity\Company))
  1 /backend/vendor/symfony/framework-bundle/Controller/ControllerTrait.php(192): Symfony\Bundle\FrameworkBundle\Controller\AbstractController-&gt;isGranted('read', Object(App\Entity\Company))
  2 /backend/src/Controller/CompanyController.php(125): Symfony\Bundle\FrameworkBundle\Controller\AbstractController-&gt;denyAccessUnlessGranted('read', Object(App\Entity\Company))
  3 /backend/vendor/symfony/http-kernel/HttpKernel.php(150): App\Controller\CompanyController-&gt;cget(Object(Symfony\Component\HttpFoundation\Request), Object(App\Service\CompanyService))
  4 /backend/vendor/symfony/http-kernel/HttpKernel.php(67): Symfony\Component\HttpKernel\HttpKernel-&gt;handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
  5 /backend/vendor/symfony/http-kernel/Kernel.php(198): Symfony\Component\HttpKernel\HttpKernel-&gt;handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
  6 /backend/public/index.php(37): Symfony\Component\HttpKernel\Kernel-&gt;handle(Object(Symfony\Component\HttpFoundation\Request))
  7 {main}"
  </code></pre>