Skip to content

Commit c23beea

Browse files
committed
chore: hide old Hyperf's gen:resource command and adjust resource stubs
1 parent 6ecc805 commit c23beea

3 files changed

Lines changed: 1 addition & 5 deletions

File tree

src/console/src/CommandReplacer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class CommandReplacer
3434
'gen:observer' => null,
3535
'gen:process' => 'make:process',
3636
'gen:request' => null,
37-
'gen:resource' => 'make:resource',
37+
'gen:resource' => null,
3838
'gen:swagger' => 'make:swagger',
3939
'gen:migration-from-database' => 'make:migration-from-database',
4040
'gen:view-engine-cache' => 'view:cache',

src/devtool/src/Generator/stubs/resource-collection.stub

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ class %CLASS% extends ResourceCollection
1010
{
1111
/**
1212
* Transform the resource collection into an array.
13-
*
14-
* @return array
1513
*/
1614
public function toArray(): array
1715
{

src/devtool/src/Generator/stubs/resource.stub

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ class %CLASS% extends JsonResource
1010
{
1111
/**
1212
* Transform the resource into an array.
13-
*
14-
* @return array
1513
*/
1614
public function toArray(): array
1715
{

0 commit comments

Comments
 (0)