mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-20 20:06:30 +03:00
phpzlc add
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
/**
|
||||
* PhpStorm.
|
||||
* User: Jay
|
||||
* Date: 2020/10/20
|
||||
*/
|
||||
|
||||
namespace App\Document;
|
||||
|
||||
|
||||
class Config
|
||||
{
|
||||
/**
|
||||
* @var string 标题
|
||||
*/
|
||||
public static $title = '演示';
|
||||
|
||||
/**
|
||||
* @var string 出版商
|
||||
*/
|
||||
public static $publishing;
|
||||
|
||||
/**
|
||||
* @var string 说明
|
||||
*/
|
||||
public static $explain;
|
||||
|
||||
/**
|
||||
* @var string 注意
|
||||
*/
|
||||
public static $note;
|
||||
|
||||
/**
|
||||
* @var string 附录
|
||||
*/
|
||||
public static $appendix;
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
/**
|
||||
* PhpStorm.
|
||||
* User: Jay
|
||||
* Date: 2020/10/20
|
||||
*/
|
||||
|
||||
namespace App\Document;
|
||||
|
||||
|
||||
use PHPZlc\Document\Document;
|
||||
|
||||
class DomeDocument extends Document
|
||||
{
|
||||
public function domeAction()
|
||||
{
|
||||
$this->add()
|
||||
->setTitle('演示接口')
|
||||
->setUrl('/dome')
|
||||
->setReturnType('html')
|
||||
->setReturn('演示接口')
|
||||
->generate();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user