mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-19 02:56:26 +03:00
Update Flex archives
This commit is contained in:
@@ -0,0 +1,89 @@
|
||||
{
|
||||
"manifests": {
|
||||
"jane-php/json-schema": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
},
|
||||
"post-install-output": [
|
||||
" * <fg=blue>Finish</> package configuration:",
|
||||
" 1. Configure <comment>config/jane/config.php</> with your specification details",
|
||||
" 2. Run <comment>bin/jane-generate</>",
|
||||
" 3. Add <comment>generated/</> directory to your composer autoload definition (eg. <comment>\"MyApp\\\\Library\\\\Generated\\\\\": \"generated/\"</>)",
|
||||
" 4. Open <comment>config/packages/jane.yaml</> and replace <comment>MyApp\\Library\\Generated\\Normalizer\\JaneObjectNormalizer</> class with your generated normalizer.",
|
||||
" 5. Then remove line comments",
|
||||
"",
|
||||
"Documentation: https://jane.readthedocs.io/en/latest/"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"bin/jane-generate": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"require __DIR__ . '/../vendor/autoload.php';",
|
||||
"",
|
||||
"use Jane\\JsonSchema\\Command\\GenerateCommand;",
|
||||
"use Symfony\\Component\\Console\\Input\\ArrayInput;",
|
||||
"use Symfony\\Component\\Console\\Output\\NullOutput;",
|
||||
"",
|
||||
"$command = new GenerateCommand();",
|
||||
"$inputArray = new ArrayInput(['--config-file' => __DIR__ . '/../config/jane/config.php'], $command->getDefinition());",
|
||||
"",
|
||||
"$command->execute($inputArray, new NullOutput());",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"config/jane/config.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"return [",
|
||||
" 'json-schema-file' => __DIR__ . '/json-schema.json',",
|
||||
" 'root-class' => 'MyModel',",
|
||||
" 'namespace' => 'MyApp\\Library\\Generated',",
|
||||
" 'directory' => __DIR__ . '/../../generated',",
|
||||
"];",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/jane.yaml": {
|
||||
"contents": [
|
||||
"services:",
|
||||
" jane.serializer.json_encode:",
|
||||
" class: Symfony\\Component\\Serializer\\Encoder\\JsonEncode",
|
||||
" arguments:",
|
||||
" - { json_encode_options: 64 } # \\JSON_UNESCAPED_SLASHES",
|
||||
"",
|
||||
" jane.serializer.json_decode:",
|
||||
" class: Symfony\\Component\\Serializer\\Encoder\\JsonDecode",
|
||||
" arguments:",
|
||||
" - { json_decode_associative: false }",
|
||||
"",
|
||||
" jane.serializer.json_encoder:",
|
||||
" class: Symfony\\Component\\Serializer\\Encoder\\JsonEncoder",
|
||||
" arguments:",
|
||||
" - '@jane.serializer.json_encode'",
|
||||
" - '@jane.serializer.json_decode'",
|
||||
"",
|
||||
"# jane.serializer.object:",
|
||||
"# class: MyApp\\Library\\Generated\\Normalizer\\JaneObjectNormalizer",
|
||||
"#",
|
||||
"# jane.serializer:",
|
||||
"# class: Symfony\\Component\\Serializer\\Serializer",
|
||||
"# arguments:",
|
||||
"# - ['@serializer.denormalizer.array', '@jane.serializer.object']",
|
||||
"# - ['@jane.serializer.json_encoder']",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "3767579880e8b47f87deb6256339291e25a90378"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
{
|
||||
"manifests": {
|
||||
"jane-php/json-schema": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
},
|
||||
"conflict": {
|
||||
"symfony/symfony": "<5.0"
|
||||
},
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> JanePHP - JSON Schema </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Finish</> package configuration:",
|
||||
" 1. Configure <comment>config/jane/json_schema.php</> with your specification details",
|
||||
" 2. Run <comment>bin/jane-json-schema-generate</>",
|
||||
" 3. Add <comment>generated/</> directory to your composer autoload definition (eg. <comment>\"MyApp\\\\Library\\\\Generated\\\\\": \"generated/\"</>)",
|
||||
" 4. Open <comment>config/packages/jane.yaml</> and replace <comment>MyApp\\Library\\Generated\\</> namespace with your generated namespace.",
|
||||
" 5. Then remove line comments",
|
||||
"",
|
||||
"Documentation: https://jane.readthedocs.io/en/latest/"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"bin/jane-json-schema-generate": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"require __DIR__ . '/../vendor/autoload.php';",
|
||||
"",
|
||||
"use Jane\\JsonSchema\\Console\\Command\\GenerateCommand;",
|
||||
"use Symfony\\Component\\Console\\Input\\ArrayInput;",
|
||||
"use Symfony\\Component\\Console\\Output\\NullOutput;",
|
||||
"use Jane\\JsonSchema\\Console\\Loader\\ConfigLoader;",
|
||||
"use Jane\\JsonSchema\\Console\\Loader\\SchemaLoader;",
|
||||
"",
|
||||
"$command = new GenerateCommand(new ConfigLoader(), new SchemaLoader());",
|
||||
"$inputArray = new ArrayInput(['--config-file' => __DIR__ . '/../config/jane/json_schema.php'], $command->getDefinition());",
|
||||
"",
|
||||
"$command->execute($inputArray, new NullOutput());",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"config/jane/json_schema.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"return [",
|
||||
" 'json-schema-file' => __DIR__ . '/json-schema.json',",
|
||||
" 'root-class' => 'MyModel',",
|
||||
" 'namespace' => 'MyApp\\Library\\Generated',",
|
||||
" 'directory' => __DIR__ . '/../../generated',",
|
||||
"];",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/jane.yaml": {
|
||||
"contents": [
|
||||
"services:",
|
||||
" _defaults:",
|
||||
" autowire: true",
|
||||
" autoconfigure: true",
|
||||
"",
|
||||
"# MyApp\\Library\\Generated\\Normalizer\\JaneObjectNormalizer: null",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "381aaf1c280776daf10c40bcb68d20804ff1354b"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
{
|
||||
"manifests": {
|
||||
"jane-php/json-schema": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
},
|
||||
"conflict": {
|
||||
"symfony/symfony": "<5.0"
|
||||
},
|
||||
"post-install-output": [
|
||||
" * <fg=blue>Finish</> package configuration:",
|
||||
" 1. Configure <comment>config/jane/json_schema.php</> with your specification details",
|
||||
" 2. Run <comment>bin/jane-json-schema-generate</>",
|
||||
" 3. Add <comment>generated/</> directory to your composer autoload definition (eg. <comment>\"MyApp\\\\Library\\\\Generated\\\\\": \"generated/\"</>)",
|
||||
" 4. Open <comment>config/packages/jane.yaml</> and replace <comment>MyApp\\Library\\Generated\\</> namespace with your generated namespace.",
|
||||
" 5. Then remove line comments",
|
||||
"",
|
||||
"Documentation: https://jane.readthedocs.io/en/latest/"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"bin/jane-json-schema-generate": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"require __DIR__ . '/../vendor/autoload.php';",
|
||||
"",
|
||||
"use Jane\\JsonSchema\\Console\\Command\\GenerateCommand;",
|
||||
"use Symfony\\Component\\Console\\Input\\ArrayInput;",
|
||||
"use Symfony\\Component\\Console\\Output\\NullOutput;",
|
||||
"use Jane\\JsonSchema\\Console\\Loader\\ConfigLoader;",
|
||||
"use Jane\\JsonSchema\\Console\\Loader\\SchemaLoader;",
|
||||
"",
|
||||
"$command = new GenerateCommand(new ConfigLoader(), new SchemaLoader());",
|
||||
"$inputArray = new ArrayInput(['--config-file' => __DIR__ . '/../config/jane/json_schema.php'], $command->getDefinition());",
|
||||
"",
|
||||
"$command->execute($inputArray, new NullOutput());",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"config/jane/json_schema.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"return [",
|
||||
" 'json-schema-file' => __DIR__ . '/json-schema.json',",
|
||||
" 'root-class' => 'MyModel',",
|
||||
" 'namespace' => 'MyApp\\Library\\Generated',",
|
||||
" 'directory' => __DIR__ . '/../../generated',",
|
||||
"];",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/jane.yaml": {
|
||||
"contents": [
|
||||
"services:",
|
||||
" _defaults:",
|
||||
" autowire: true",
|
||||
" autoconfigure: true",
|
||||
"",
|
||||
"# MyApp\\Library\\Generated\\Normalizer\\JaneObjectNormalizer: null",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "5383305f5cc44c1f8f8d11ceeb157b761e437b4c"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
{
|
||||
"manifests": {
|
||||
"jane-php/json-schema": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
},
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> JanePHP - JSON Schema </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Finish</> package configuration:",
|
||||
" 1. Configure <comment>config/jane/config.php</> with your specification details",
|
||||
" 2. Run <comment>bin/jane-generate</>",
|
||||
" 3. Add <comment>generated/</> directory to your composer autoload definition (eg. <comment>\"MyApp\\\\Library\\\\Generated\\\\\": \"generated/\"</>)",
|
||||
" 4. Open <comment>config/packages/jane.yaml</> and replace <comment>MyApp\\Library\\Generated\\Normalizer\\JaneObjectNormalizer</> class with your generated normalizer.",
|
||||
" 5. Then remove line comments",
|
||||
"",
|
||||
"Documentation: https://jane.readthedocs.io/en/latest/"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"bin/jane-generate": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"require __DIR__ . '/../vendor/autoload.php';",
|
||||
"",
|
||||
"use Jane\\JsonSchema\\Command\\GenerateCommand;",
|
||||
"use Symfony\\Component\\Console\\Input\\ArrayInput;",
|
||||
"use Symfony\\Component\\Console\\Output\\NullOutput;",
|
||||
"",
|
||||
"$command = new GenerateCommand();",
|
||||
"$inputArray = new ArrayInput(['--config-file' => __DIR__ . '/../config/jane/config.php'], $command->getDefinition());",
|
||||
"",
|
||||
"$command->execute($inputArray, new NullOutput());",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"config/jane/config.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"return [",
|
||||
" 'json-schema-file' => __DIR__ . '/json-schema.json',",
|
||||
" 'root-class' => 'MyModel',",
|
||||
" 'namespace' => 'MyApp\\Library\\Generated',",
|
||||
" 'directory' => __DIR__ . '/../../generated',",
|
||||
"];",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/jane.yaml": {
|
||||
"contents": [
|
||||
"services:",
|
||||
" jane.serializer.json_encode:",
|
||||
" class: Symfony\\Component\\Serializer\\Encoder\\JsonEncode",
|
||||
" arguments:",
|
||||
" - { json_encode_options: 64 } # \\JSON_UNESCAPED_SLASHES",
|
||||
"",
|
||||
" jane.serializer.json_decode:",
|
||||
" class: Symfony\\Component\\Serializer\\Encoder\\JsonDecode",
|
||||
" arguments:",
|
||||
" - { json_decode_associative: false }",
|
||||
"",
|
||||
" jane.serializer.json_encoder:",
|
||||
" class: Symfony\\Component\\Serializer\\Encoder\\JsonEncoder",
|
||||
" arguments:",
|
||||
" - '@jane.serializer.json_encode'",
|
||||
" - '@jane.serializer.json_decode'",
|
||||
"",
|
||||
"# jane.serializer.object:",
|
||||
"# class: MyApp\\Library\\Generated\\Normalizer\\JaneObjectNormalizer",
|
||||
"#",
|
||||
"# jane.serializer:",
|
||||
"# class: Symfony\\Component\\Serializer\\Serializer",
|
||||
"# arguments:",
|
||||
"# - ['@serializer.denormalizer.array', '@jane.serializer.object']",
|
||||
"# - ['@jane.serializer.json_encoder']",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "b3170e100a4eb30b4114ff3d926fad06cf923d7e"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user