@@ -47,7 +47,9 @@ public function sharpDashboard(string $entityClassNameOrKey): PendingDashboard
4747 }
4848
4949 /**
50- * @param (\Closure(BreadcrumbBuilder): BreadcrumbBuilder) $callback
50+ * @deprecated Chain $this->sharpList()->sharpShow()->sharpForm() instead
51+ *
52+ * @param (Closure(BreadcrumbBuilder): BreadcrumbBuilder) $callback
5153 * @return $this
5254 */
5355 public function withSharpBreadcrumb (Closure $ callback ): static
@@ -57,6 +59,9 @@ public function withSharpBreadcrumb(Closure $callback): static
5759 return $ this ;
5860 }
5961
62+ /**
63+ * @deprecated Use $this->sharpShow()->delete() instead
64+ */
6065 public function deleteFromSharpShow (string $ entityClassNameOrKey , mixed $ instanceId )
6166 {
6267 $ entityKey = $ this ->resolveEntityKey ($ entityClassNameOrKey );
@@ -75,6 +80,9 @@ public function deleteFromSharpShow(string $entityClassNameOrKey, mixed $instanc
7580 );
7681 }
7782
83+ /**
84+ * @deprecated Use $this->sharpList()->delete() instead
85+ */
7886 public function deleteFromSharpList (string $ entityClassNameOrKey , mixed $ instanceId )
7987 {
8088 $ entityKey = $ this ->resolveEntityKey ($ entityClassNameOrKey );
@@ -96,6 +104,9 @@ public function deleteFromSharpList(string $entityClassNameOrKey, mixed $instanc
96104 );
97105 }
98106
107+ /**
108+ * @deprecated Use $this->sharpForm()->get() instead
109+ */
99110 public function getSharpForm (string $ entityClassNameOrKey , mixed $ instanceId = null )
100111 {
101112 $ entityKey = $ this ->resolveEntityKey ($ entityClassNameOrKey );
@@ -123,6 +134,9 @@ public function getSharpForm(string $entityClassNameOrKey, mixed $instanceId = n
123134 );
124135 }
125136
137+ /**
138+ * @deprecated Use $this->sharpForm()->get() instead
139+ */
126140 public function getSharpSingleForm (string $ entityClassNameOrKey )
127141 {
128142 $ entityKey = $ this ->resolveEntityKey ($ entityClassNameOrKey );
@@ -141,6 +155,9 @@ public function getSharpSingleForm(string $entityClassNameOrKey)
141155 );
142156 }
143157
158+ /**
159+ * @deprecated Use $this->sharpForm()->update() instead
160+ */
144161 public function updateSharpForm (string $ entityClassNameOrKey , $ instanceId , array $ data )
145162 {
146163 $ entityKey = $ this ->resolveEntityKey ($ entityClassNameOrKey );
@@ -160,6 +177,9 @@ public function updateSharpForm(string $entityClassNameOrKey, $instanceId, array
160177 );
161178 }
162179
180+ /**
181+ * @deprecated Use $this->sharpForm()->update() instead
182+ */
163183 public function updateSharpSingleForm (string $ entityClassNameOrKey , array $ data )
164184 {
165185 $ entityKey = $ this ->resolveEntityKey ($ entityClassNameOrKey );
@@ -178,6 +198,9 @@ public function updateSharpSingleForm(string $entityClassNameOrKey, array $data)
178198 );
179199 }
180200
201+ /**
202+ * @deprecated Use $this->sharpShow()->get() instead
203+ */
181204 public function getSharpShow (string $ entityClassNameOrKey , $ instanceId )
182205 {
183206 $ entityKey = $ this ->resolveEntityKey ($ entityClassNameOrKey );
@@ -197,6 +220,9 @@ public function getSharpShow(string $entityClassNameOrKey, $instanceId)
197220 );
198221 }
199222
223+ /**
224+ * @deprecated Use $this->sharpForm()->store() instead
225+ */
200226 public function storeSharpForm (string $ entityClassNameOrKey , array $ data )
201227 {
202228 $ entityKey = $ this ->resolveEntityKey ($ entityClassNameOrKey );
@@ -216,6 +242,9 @@ public function storeSharpForm(string $entityClassNameOrKey, array $data)
216242 );
217243 }
218244
245+ /**
246+ * @deprecated Use $this->sharpList()->instanceCommand()->post()
247+ */
219248 public function callSharpInstanceCommandFromList (
220249 string $ entityClassNameOrKey ,
221250 $ instanceId ,
@@ -247,6 +276,9 @@ public function callSharpInstanceCommandFromList(
247276 );
248277 }
249278
279+ /**
280+ * @deprecated Use $this->sharpShow()->instanceCommand()->post()
281+ */
250282 public function callSharpInstanceCommandFromShow (
251283 string $ entityClassNameOrKey ,
252284 $ instanceId ,
@@ -278,6 +310,9 @@ public function callSharpInstanceCommandFromShow(
278310 );
279311 }
280312
313+ /**
314+ * @deprecated Use $this->sharpList()->entityCommand()->post()
315+ */
281316 public function callSharpEntityCommandFromList (
282317 string $ entityClassNameOrKey ,
283318 string $ commandKeyOrClassName ,
0 commit comments