weierophinney/PhlyRestfully — pull request #54 by macnibblet (2013-04-23 18:48:47+00:00)
Title: Feature abstract resource controller factory!

So the general concept is that you add an abstract factory that checks the config ```phlyrestfully.resources``` for a controller configuration and if it exists creates it.

Available options at the moment
```php
array(
// name of the service locator key of the resource
'listener' => 'api.resource-listener.company.subscription',

// if a custom identifier_name is used (OPTIONAL)
'identifier_name' => 'user_id',

// Self explanatory
'route_name' => 'api/company/subscriptions',
'resource_http_options' => array('get', 'post', 'delete'),
'collection_http_options' => array('get')
)
```

I said earlier i would implement a options class but that just seams completely overkill.