From d6012bad74513a43a373a135e5b01acdaee23a01 Mon Sep 17 00:00:00 2001 From: tsantos Date: Mon, 23 Jul 2018 14:18:58 -0300 Subject: [PATCH 1/4] Add tsantos serializer recipe --- .../1.0/config/packages/prod/tsantos_serializer.yaml | 2 ++ .../1.0/config/packages/test/tsantos_serializer.yaml | 2 ++ .../1.0/config/packages/tsantos_serializer.yaml | 6 ++++++ tsantos/serializer-bundle/1.0/manifest.json | 8 ++++++++ 4 files changed, 18 insertions(+) create mode 100644 tsantos/serializer-bundle/1.0/config/packages/prod/tsantos_serializer.yaml create mode 100644 tsantos/serializer-bundle/1.0/config/packages/test/tsantos_serializer.yaml create mode 100644 tsantos/serializer-bundle/1.0/config/packages/tsantos_serializer.yaml create mode 100644 tsantos/serializer-bundle/1.0/manifest.json diff --git a/tsantos/serializer-bundle/1.0/config/packages/prod/tsantos_serializer.yaml b/tsantos/serializer-bundle/1.0/config/packages/prod/tsantos_serializer.yaml new file mode 100644 index 00000000..717a0800 --- /dev/null +++ b/tsantos/serializer-bundle/1.0/config/packages/prod/tsantos_serializer.yaml @@ -0,0 +1,2 @@ +tsantos_serializer: + generation_strategy: never diff --git a/tsantos/serializer-bundle/1.0/config/packages/test/tsantos_serializer.yaml b/tsantos/serializer-bundle/1.0/config/packages/test/tsantos_serializer.yaml new file mode 100644 index 00000000..af2cc032 --- /dev/null +++ b/tsantos/serializer-bundle/1.0/config/packages/test/tsantos_serializer.yaml @@ -0,0 +1,2 @@ +tsantos_serializer: + generation_strategy: always diff --git a/tsantos/serializer-bundle/1.0/config/packages/tsantos_serializer.yaml b/tsantos/serializer-bundle/1.0/config/packages/tsantos_serializer.yaml new file mode 100644 index 00000000..53a5fa84 --- /dev/null +++ b/tsantos/serializer-bundle/1.0/config/packages/tsantos_serializer.yaml @@ -0,0 +1,6 @@ +tsantos_serializer: + generation_strategy: file_not_exists +# mapping: +# paths: +# - { namespace: "App\\Entity", path: "%kernel.project_dir%/src/Entity" } +# - { namespace: "App\\Document", path: "%kernel.project_dir%/config/serializer" } diff --git a/tsantos/serializer-bundle/1.0/manifest.json b/tsantos/serializer-bundle/1.0/manifest.json new file mode 100644 index 00000000..e95fdc7c --- /dev/null +++ b/tsantos/serializer-bundle/1.0/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "TSantos\\SerializerBundle\\TSantosSerializerBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +} From 4ef0961070eac14764602f341c6f8a476da73149 Mon Sep 17 00:00:00 2001 From: tsantos Date: Mon, 23 Jul 2018 15:21:18 -0300 Subject: [PATCH 2/4] Add twig bundle as dependency --- tsantos/serializer-bundle/1.0/manifest.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tsantos/serializer-bundle/1.0/manifest.json b/tsantos/serializer-bundle/1.0/manifest.json index e95fdc7c..6d9b52af 100644 --- a/tsantos/serializer-bundle/1.0/manifest.json +++ b/tsantos/serializer-bundle/1.0/manifest.json @@ -1,6 +1,7 @@ { "bundles": { - "TSantos\\SerializerBundle\\TSantosSerializerBundle": ["all"] + "TSantos\\SerializerBundle\\TSantosSerializerBundle": ["all"], + "Symfony\\Bundle\\TwigBundle\\TwigBundle": ["dev", "test"] }, "copy-from-recipe": { "config/": "%CONFIG_DIR%/" From 4803e8ac052722cc92fe260db22aa0f7f725c5de Mon Sep 17 00:00:00 2001 From: tsantos Date: Mon, 23 Jul 2018 16:12:42 -0300 Subject: [PATCH 3/4] Remove configuration for twig bundle --- tsantos/serializer-bundle/1.0/manifest.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tsantos/serializer-bundle/1.0/manifest.json b/tsantos/serializer-bundle/1.0/manifest.json index 6d9b52af..e95fdc7c 100644 --- a/tsantos/serializer-bundle/1.0/manifest.json +++ b/tsantos/serializer-bundle/1.0/manifest.json @@ -1,7 +1,6 @@ { "bundles": { - "TSantos\\SerializerBundle\\TSantosSerializerBundle": ["all"], - "Symfony\\Bundle\\TwigBundle\\TwigBundle": ["dev", "test"] + "TSantos\\SerializerBundle\\TSantosSerializerBundle": ["all"] }, "copy-from-recipe": { "config/": "%CONFIG_DIR%/" From 0449b7e1bbb101e6ccc8286c4da7e86a9fe462a3 Mon Sep 17 00:00:00 2001 From: tsantos Date: Thu, 2 Aug 2018 23:41:16 -0300 Subject: [PATCH 4/4] Remove templates in favor of bundle's doc page --- .../1.0/config/packages/tsantos_serializer.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tsantos/serializer-bundle/1.0/config/packages/tsantos_serializer.yaml b/tsantos/serializer-bundle/1.0/config/packages/tsantos_serializer.yaml index 53a5fa84..d3ab1594 100644 --- a/tsantos/serializer-bundle/1.0/config/packages/tsantos_serializer.yaml +++ b/tsantos/serializer-bundle/1.0/config/packages/tsantos_serializer.yaml @@ -1,6 +1,4 @@ +# Read the official documentation page of this bundle for further information about all possible configurations. +# http://tsantos-serializer-bundle.readthedocs.io/ tsantos_serializer: generation_strategy: file_not_exists -# mapping: -# paths: -# - { namespace: "App\\Entity", path: "%kernel.project_dir%/src/Entity" } -# - { namespace: "App\\Document", path: "%kernel.project_dir%/config/serializer" }