Creates a collections of HTTP-verb based routes for a controller.

Possible Options:
'controller'    - Customize the name of the controller used in the 'to' route
'placeholder'   - The regex used by the Router. Defaults to '(:any)'

Example:
$route->resource('photos');

// Generates the following routes:
HTTP Verb | Path        | Action        | Used for...
----------+-------------+---------------+-----------------
GET         /photos             index           display a list of photos
GET         /photos/new         new             new a specific photo
GET         /photos/{id}/edit   edit            edit a specific photo
GET         /photos/{id}        show            display a specific photo
POST        /photos             create          create a new photo
PUT/PATCH   /photos/{id}        update          update an existing photo
DELETE      /photos/{id}        delete          delete an existing photo

If 'websafe' option is present, the following paths are also available:

POST        /photos/{id}        update
DELETE      /photos/{id}/delete delete

@param string $name    The name of the controller to route to.
@param array  $options An list of possible ways to customize the routing.

@return RouteCollectionInterface