mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-11 15:16:55 +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();
|
||||
}
|
||||
}
|
||||
@@ -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/"
|
||||
]
|
||||
}
|
||||
@@ -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/"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user