Skip to content

Commit f26d726

Browse files
committed
revert removal id parameter in ResourcePresenter
1 parent 7becb2b commit f26d726

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

system/RESTful/ResourcePresenter.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,10 @@ public function index()
8888
/**
8989
* Present a view to present a specific resource object
9090
*
91+
* @param type $id
9192
* @return string
9293
*/
93-
public function show()
94+
public function show($id = null)
9495
{
9596
return lang('RESTful.notImplemented', ['show']);
9697
}
@@ -119,29 +120,32 @@ public function create()
119120
/**
120121
* Present a view to confirm the deletion of a specific resource object
121122
*
123+
* @param type $id
122124
* @return string
123125
*/
124-
public function remove()
126+
public function remove($id = null)
125127
{
126128
return lang('RESTful.notImplemented', ['remove']);
127129
}
128130

129131
/**
130132
* Process the deletion of a specific resource object
131133
*
134+
* @param type $id
132135
* @return string
133136
*/
134-
public function delete()
137+
public function delete($id = null)
135138
{
136139
return lang('RESTful.notImplemented', ['delete']);
137140
}
138141

139142
/**
140143
* Present a view to edit the properties of a specific resource object
141144
*
145+
* @param type $id
142146
* @return string
143147
*/
144-
public function edit()
148+
public function edit($id = null)
145149
{
146150
return lang('RESTful.notImplemented', ['edit']);
147151
}
@@ -150,9 +154,10 @@ public function edit()
150154
* Process the updating, full or partial, of a specific resource object.
151155
* This should be a POST.
152156
*
157+
* @param type $id
153158
* @return string
154159
*/
155-
public function update()
160+
public function update($id = null)
156161
{
157162
return lang('RESTful.notImplemented', ['update']);
158163
}

0 commit comments

Comments
 (0)