Skip to content

Commit a12de03

Browse files
committed
fix gen controller error
1 parent a2ef101 commit a12de03

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php declare(strict_types=1);
2+
/**
3+
* This file is part of Swoft.
4+
*
5+
* @link https://swoft.org
6+
* @document https://swoft.org/docs
7+
* @contact group@swoft.org
8+
* @license https://github.com/swoft-cloud/swoft/blob/master/LICENSE
9+
*/
10+
11+
namespace App\Http\Controller;
12+
13+
use Swoft\Http\Server\Annotation\Mapping\Controller;
14+
use Swoft\Http\Server\Annotation\Mapping\RequestMapping;
15+
use Swoft\Http\Server\Annotation\Mapping\RequestMethod;
16+
17+
/**
18+
* Class DfdfController
19+
* @Controller(prefix="string")
20+
* @package App\Http\Controller
21+
*/
22+
class DfdfController{
23+
/**
24+
* this is a example action. access uri path: string
25+
* @RequestMapping(route="string", method=RequestMethod::GET)
26+
* @return array
27+
*/
28+
public function index(): array
29+
{
30+
return ['item0', 'item1'];
31+
}
32+
}

0 commit comments

Comments
 (0)