for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SilverStripe\RestfulServer;
/**
* Restful server handler for a SS_List
*/
class RestfulServerList
{
private static $url_handlers = array(
$url_handlers
'#ID' => 'handleItem',
);
public function __construct($list)
$this->list = $list;
list
}
public function handleItem($request)
return new RestfulServerItem($this->list->getById($request->param('ID')));