From 409b320632f57bc0be3f5489dc3a1e9432e6d6f0 Mon Sep 17 00:00:00 2001 From: jay Date: Fri, 6 Nov 2020 10:55:18 +0800 Subject: [PATCH 1/8] phpzlc add --- .../document-bundle/1.0/Document/Config.php | 37 +++++++++++++++++++ .../1.0/Document/DomeDocument.php | 24 ++++++++++++ phpzlc/document-bundle/1.0/manifest.json | 17 +++++++++ phpzlc/phpzlc/1.0/Business/.gitignore | 0 phpzlc/phpzlc/1.0/manifest.json | 16 ++++++++ 5 files changed, 94 insertions(+) create mode 100644 phpzlc/document-bundle/1.0/Document/Config.php create mode 100644 phpzlc/document-bundle/1.0/Document/DomeDocument.php create mode 100644 phpzlc/document-bundle/1.0/manifest.json create mode 100644 phpzlc/phpzlc/1.0/Business/.gitignore create mode 100644 phpzlc/phpzlc/1.0/manifest.json diff --git a/phpzlc/document-bundle/1.0/Document/Config.php b/phpzlc/document-bundle/1.0/Document/Config.php new file mode 100644 index 00000000..f339580f --- /dev/null +++ b/phpzlc/document-bundle/1.0/Document/Config.php @@ -0,0 +1,37 @@ +add() + ->setTitle('演示接口') + ->setUrl('/dome') + ->setReturnType('html') + ->setReturn('演示接口') + ->generate(); + } +} \ No newline at end of file diff --git a/phpzlc/document-bundle/1.0/manifest.json b/phpzlc/document-bundle/1.0/manifest.json new file mode 100644 index 00000000..79ae89a8 --- /dev/null +++ b/phpzlc/document-bundle/1.0/manifest.json @@ -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/" + ] +} diff --git a/phpzlc/phpzlc/1.0/Business/.gitignore b/phpzlc/phpzlc/1.0/Business/.gitignore new file mode 100644 index 00000000..e69de29b diff --git a/phpzlc/phpzlc/1.0/manifest.json b/phpzlc/phpzlc/1.0/manifest.json new file mode 100644 index 00000000..55655c5b --- /dev/null +++ b/phpzlc/phpzlc/1.0/manifest.json @@ -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/" + } +} From 77ba5093a0ff0afb2121bbb74ac55b96434d8c81 Mon Sep 17 00:00:00 2001 From: jay Date: Wed, 16 Dec 2020 15:25:25 +0800 Subject: [PATCH 2/8] fix phpzlc/document-bundle php code format --- phpzlc/document-bundle/1.0/Document/Config.php | 6 ------ phpzlc/document-bundle/1.0/Document/DomeDocument.php | 6 ------ 2 files changed, 12 deletions(-) diff --git a/phpzlc/document-bundle/1.0/Document/Config.php b/phpzlc/document-bundle/1.0/Document/Config.php index f339580f..7e0875fc 100644 --- a/phpzlc/document-bundle/1.0/Document/Config.php +++ b/phpzlc/document-bundle/1.0/Document/Config.php @@ -1,13 +1,7 @@ Date: Mon, 22 Feb 2021 12:15:33 +0800 Subject: [PATCH 3/8] fixed:document-bundle new link --- phpzlc/document-bundle/1.0/Document/Config.php | 2 +- phpzlc/document-bundle/1.0/Document/DomeDocument.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/phpzlc/document-bundle/1.0/Document/Config.php b/phpzlc/document-bundle/1.0/Document/Config.php index 7e0875fc..22df49f3 100644 --- a/phpzlc/document-bundle/1.0/Document/Config.php +++ b/phpzlc/document-bundle/1.0/Document/Config.php @@ -28,4 +28,4 @@ class Config * @var string 附录 */ public static $appendix; -} \ No newline at end of file +} diff --git a/phpzlc/document-bundle/1.0/Document/DomeDocument.php b/phpzlc/document-bundle/1.0/Document/DomeDocument.php index 24d82a22..906ff8b8 100644 --- a/phpzlc/document-bundle/1.0/Document/DomeDocument.php +++ b/phpzlc/document-bundle/1.0/Document/DomeDocument.php @@ -15,4 +15,4 @@ class DomeDocument extends Document ->setReturn('演示接口') ->generate(); } -} \ No newline at end of file +} From a5346ed4e6b3075585512b94c62f0fb794a415f4 Mon Sep 17 00:00:00 2001 From: jay Date: Mon, 22 Feb 2021 16:36:14 +0800 Subject: [PATCH 4/8] fix(Doc Config update): --- .../document-bundle/1.0/Document/Config.php | 31 --------- .../document-bundle/1.1/Document/Config.php | 66 +++++++++++++++++++ .../{1.0 => 1.1}/Document/DomeDocument.php | 0 .../{1.0 => 1.1}/manifest.json | 0 4 files changed, 66 insertions(+), 31 deletions(-) delete mode 100644 phpzlc/document-bundle/1.0/Document/Config.php create mode 100644 phpzlc/document-bundle/1.1/Document/Config.php rename phpzlc/document-bundle/{1.0 => 1.1}/Document/DomeDocument.php (100%) rename phpzlc/document-bundle/{1.0 => 1.1}/manifest.json (100%) diff --git a/phpzlc/document-bundle/1.0/Document/Config.php b/phpzlc/document-bundle/1.0/Document/Config.php deleted file mode 100644 index 22df49f3..00000000 --- a/phpzlc/document-bundle/1.0/Document/Config.php +++ /dev/null @@ -1,31 +0,0 @@ - Date: Mon, 22 Feb 2021 16:49:26 +0800 Subject: [PATCH 5/8] edit doc config.php --- .idea/misc.xml | 6 ++ .idea/modules.xml | 8 +++ .idea/recipes-contrib.iml | 8 +++ .idea/vcs.xml | 6 ++ .idea/workspace.xml | 65 +++++++++++++++++++ .../document-bundle/1.1/Document/Config.php | 1 + 6 files changed, 94 insertions(+) create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/recipes-contrib.iml create mode 100644 .idea/vcs.xml create mode 100644 .idea/workspace.xml diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 00000000..28a804d8 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 00000000..3174879f --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/recipes-contrib.iml b/.idea/recipes-contrib.iml new file mode 100644 index 00000000..c956989b --- /dev/null +++ b/.idea/recipes-contrib.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 00000000..94a25f7f --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 00000000..4092abba --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1596094457937 + + + + + + + + + + + + \ No newline at end of file diff --git a/phpzlc/document-bundle/1.1/Document/Config.php b/phpzlc/document-bundle/1.1/Document/Config.php index 07ec10de..df546bf2 100644 --- a/phpzlc/document-bundle/1.1/Document/Config.php +++ b/phpzlc/document-bundle/1.1/Document/Config.php @@ -55,6 +55,7 @@ class Config } /** + * * 主机 * * @return mixed From 03d46aae55784e4613f5a1d1cc4097c735205e46 Mon Sep 17 00:00:00 2001 From: jay Date: Mon, 22 Feb 2021 16:50:14 +0800 Subject: [PATCH 6/8] edit doc config.php --- .idea/misc.xml | 6 -- .idea/modules.xml | 8 --- .idea/recipes-contrib.iml | 8 --- .idea/vcs.xml | 6 -- .idea/workspace.xml | 65 ------------------- .../document-bundle/1.1/Document/Config.php | 1 - 6 files changed, 94 deletions(-) delete mode 100644 .idea/misc.xml delete mode 100644 .idea/modules.xml delete mode 100644 .idea/recipes-contrib.iml delete mode 100644 .idea/vcs.xml delete mode 100644 .idea/workspace.xml diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index 28a804d8..00000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index 3174879f..00000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/recipes-contrib.iml b/.idea/recipes-contrib.iml deleted file mode 100644 index c956989b..00000000 --- a/.idea/recipes-contrib.iml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 94a25f7f..00000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml deleted file mode 100644 index 4092abba..00000000 --- a/.idea/workspace.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1596094457937 - - - - - - - - - - - - \ No newline at end of file diff --git a/phpzlc/document-bundle/1.1/Document/Config.php b/phpzlc/document-bundle/1.1/Document/Config.php index df546bf2..07ec10de 100644 --- a/phpzlc/document-bundle/1.1/Document/Config.php +++ b/phpzlc/document-bundle/1.1/Document/Config.php @@ -55,7 +55,6 @@ class Config } /** - * * 主机 * * @return mixed From d7b9a73ae630a77526d4bc892ec5be6fc5d7ef33 Mon Sep 17 00:00:00 2001 From: jay Date: Thu, 22 Apr 2021 16:08:24 +0800 Subject: [PATCH 7/8] edit phpzlc config error --- phpzlc/phpzlc/1.0/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpzlc/phpzlc/1.0/manifest.json b/phpzlc/phpzlc/1.0/manifest.json index 55655c5b..6063d6a2 100644 --- a/phpzlc/phpzlc/1.0/manifest.json +++ b/phpzlc/phpzlc/1.0/manifest.json @@ -7,7 +7,7 @@ "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", + "Bundle/phpzlc.yaml": "config/packages/phpzlc.yaml", "PROJECT_README.md":"README.md" }, "copy-from-recipe": { From 4b5bd5c44a7a380068bcf961c6420fc85ee6f1d8 Mon Sep 17 00:00:00 2001 From: jay Date: Tue, 27 Apr 2021 22:23:37 +0800 Subject: [PATCH 8/8] edit phpzlc document error --- .../1.1/Document/{DomeDocument.php => DemoDocument.php} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename phpzlc/document-bundle/1.1/Document/{DomeDocument.php => DemoDocument.php} (70%) diff --git a/phpzlc/document-bundle/1.1/Document/DomeDocument.php b/phpzlc/document-bundle/1.1/Document/DemoDocument.php similarity index 70% rename from phpzlc/document-bundle/1.1/Document/DomeDocument.php rename to phpzlc/document-bundle/1.1/Document/DemoDocument.php index 906ff8b8..68e1ddd9 100644 --- a/phpzlc/document-bundle/1.1/Document/DomeDocument.php +++ b/phpzlc/document-bundle/1.1/Document/DemoDocument.php @@ -4,13 +4,13 @@ namespace App\Document; use PHPZlc\Document\Document; -class DomeDocument extends Document +class DemoDocument extends Document { - public function domeAction() + public function demoAction() { $this->add() ->setTitle('演示接口') - ->setUrl('/dome') + ->setUrl('/demo') ->setReturnType('html') ->setReturn('演示接口') ->generate();