@stof Interesting, it would seem this is also an issue with the `Symfony\Component\Routing\Loader\AnnotationDirectoryLoader` for standard routes. It looks like the workaround for this is to reference the directory paths themselves as separate resources, rather than using the `@AcmeDemoBundle/Controller/Api` syntax.

An alternative approach would be to call `$this->locator->locate($path, null, false)` instead, then loop on each directory returned. But it would also be necessary to  detect if an array was actually returned by the `locate` method, because if a full directory path is used then it seems it will simply return the path again. Considering how the method is documented, this would almost seem to be a bug in `Symfony\Component\Config\FileLocator`. https://github.com/symfony/Config/blob/master/FileLocator.php#L51 But I guess that's debatable. Anyway, should I implement something like this?