phpzlc add

This commit is contained in:
jay
2020-11-06 10:55:18 +08:00
parent 9cfe4f852a
commit 409b320632
5 changed files with 94 additions and 0 deletions
@@ -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();
}
}
+17
View File
@@ -0,0 +1,17 @@
{
"bundles": {
"PHPZlc\\Document\\DocumentBundle\\DocumentBundle": ["all"]
},
"copy-from-package": {
"src/DocumentBundle/phpzlc-document.yaml": "config/packages/phpzlc-document.yaml"
},
"copy-from-recipe": {
"Document/":"src/Document/"
},
"env": {
"DOC_HOST": "http://dome-api.com"
},
"gitignore": [
"public/apidoc/"
]
}
+16
View File
@@ -0,0 +1,16 @@
{
"bundles": {
"PHPZlc\\PHPZlc\\Bundle\\PHPZlcBundle": ["all"]
},
"copy-from-package": {
"Doctrine/ORM/Rewrite/Templates/Repository.tpl.php": "vendor/symfony/maker-bundle/src/Resources/skeleton/doctrine/Repository.tpl.php",
"Doctrine/ORM/Rewrite/Hydration/ObjectHydrator.php": "vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php",
"Doctrine/ORM/Rewrite/MakeEntityRegenerate/ClassSourceManipulator.php": "vendor/symfony/maker-bundle/src/Util/ClassSourceManipulator.php",
"Doctrine/ORM/Rewrite/MakeEntityRegenerate/EntityRegenerator.php": "vendor/symfony/maker-bundle/src/Doctrine/EntityRegenerator.php",
"Bundle/phpzlc.yaml": "config/packages/phpzlc.yml",
"PROJECT_README.md":"README.md"
},
"copy-from-recipe": {
"Business/":"src/Business/"
}
}