FriendsOfSymfony/FOSRestBundle — Issue #189: Using Controller subdirectory for Routing Resource
Author: leek
Created: 2012-02-22 17:27:07+00:00
State: open

I am attempting to load all controllers under a subdirectory as `type: rest` in my Route configuration similar to how it is done in the `SensioFrameworkExtraBundle` [here](http://symfony.com/doc/2.0/bundles/SensioFrameworkExtraBundle/annotations/routing.html#activation).

```
# routing.yml

foobar_api:
resource: "@PWFoobarBundle/Controller/Api/"
type: rest
```

Is anything like this possible? Is there another way of setting up routes from within a subdirectory of `Controller/`? I've tried any syntax I could think of, even down to specifying individual controller classes within the subdirectory and none seem to work.