title: "There are no registered paths for namespace "App"." FosRestBundle, Symfony, POST/DELETE
body: <p>I receive such a message "There are no registered paths for namespace "App"" while doing post or delete requests to my API. GET works. I use FosUserBundle.</p>
  
  <p><em>config.yml</em></p>
  
  <pre><code>...
  fos_rest:
      body_converter:
        enabled: true
        validate: true
        validation_errors_argument: validationErrors
      exception:
        enabled: true
        exception_controller: 'AppBundle\Controller\ExceptionController::showAction'
      param_fetcher_listener: true
      routing_loader:
            default_format: json
            include_format: false
      serializer:
          serialize_null: true
      view:
          view_response_listener: force
  ...
  </code></pre>
  
  <p><em>PersonRestController.php</em></p>
  
  <pre><code>...
  class PersonRestController extends AbstractController {
  
      use ControllerTrait;
  
      /**
       * @Rest\View()
       */
      public function getPersonsAction() {
          $data = $this-&gt;getDoctrine()
              -&gt;getRepository(Person::class)
              -&gt;findAll();
          return $data;
      }
  
      /**
       * @Rest\View(statusCode=201)
       * @ParamConverter("person", converter="fos_rest.request_body")
       * @Rest\NoRoute()
       */
      public function postPersonsAction(Person $person, ConstraintViolationListInterface $validationErrors) {
          if (count($validationErrors) &gt; 0) {
              throw new ValidationException($validationErrors);
          }
  
          $em = $this-&gt;getDoctrine()-&gt;getManager();
          $em-&gt;persist($person);
          $em-&gt;flush();
  
          return $person;
      }
  
      /**
      * @Rest\View()
      */
      public function deletePersonsAction(?Person $person) {
  
          if($person === null) {
              return $this-&gt;view(null, 404);
          }
  
          $em = $this-&gt;getDoctrine()-&gt;getManager();
          $em-&gt;remove($person);
          $em-&gt;flush();
  
          return null;
      }
  
      /**
       * @Rest\View()
       */
      public function getPersonAction(?Person $person) {
          if($person === null) {
              return $this-&gt;view(null, 404);
          }
  
          return $person;
      }
  }
  ...
  </code></pre>
  
  <p>Error:</p>
  
  <p><a href="https://i.stack.imgur.com/dl9Vo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dl9Vo.png" alt="error"></a></p>
  
  <p>I've checked my config.yml. It shows no duplicate.
  The POST method still works despite the error, DELETE doesn't however.</p>