mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-12 07:36:34 +03:00
Update Flex endpoint
This commit is contained in:
@@ -1,20 +1,6 @@
|
||||
{
|
||||
"locks": {
|
||||
"jane-php/open-api-common": {
|
||||
"version": "6.0",
|
||||
"recipe": {
|
||||
"repo": "6.0",
|
||||
"branch": "master",
|
||||
"version": "6.0",
|
||||
"ref": "1628ebe907a0d28e3caa22199c6e711d14c8e680"
|
||||
}
|
||||
}
|
||||
},
|
||||
"manifests": {
|
||||
"jane-php/open-api-common": {
|
||||
"repository": "github.com/symfony/recipes-contrib",
|
||||
"package": "jane-php/open-api-common",
|
||||
"version": "6.0",
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"bin/": "%BIN_DIR%/",
|
||||
@@ -36,23 +22,54 @@
|
||||
},
|
||||
"files": {
|
||||
"config/jane/open_api.php": {
|
||||
"contents": "<?php\n\nreturn [\n 'openapi-file' => __DIR__ . '/open-api.yaml',\n 'namespace' => 'MyApp\\Library\\Generated',\n 'directory' => __DIR__ . '/../../generated',\n];\n",
|
||||
"executable": false,
|
||||
"encoding": ""
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"return [",
|
||||
" 'openapi-file' => __DIR__ . '/open-api.yaml',",
|
||||
" 'namespace' => 'MyApp\\Library\\Generated',",
|
||||
" 'directory' => __DIR__ . '/../../generated',",
|
||||
"];",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/jane.yaml": {
|
||||
"contents": "services:\n _defaults:\n autowire: true\n autoconfigure: true\n\n# MyApp\\Library\\Generated\\Normalizer\\JaneObjectNormalizer: null\n",
|
||||
"executable": false,
|
||||
"encoding": ""
|
||||
"contents": [
|
||||
"services:",
|
||||
" _defaults:",
|
||||
" autowire: true",
|
||||
" autoconfigure: true",
|
||||
"",
|
||||
"# MyApp\\Library\\Generated\\Normalizer\\JaneObjectNormalizer: null",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"bin/jane-open-api-generate": {
|
||||
"contents": "#!/usr/bin/env php\n<?php\n\nrequire __DIR__ . '/../vendor/autoload.php';\n\nuse Jane\\OpenApiCommon\\Console\\Command\\GenerateCommand;\nuse Symfony\\Component\\Console\\Input\\ArrayInput;\nuse Symfony\\Component\\Console\\Output\\NullOutput;\nuse Jane\\OpenApiCommon\\Console\\Loader\\ConfigLoader;\nuse Jane\\OpenApiCommon\\Console\\Loader\\OpenApiMatcher;\nuse Jane\\OpenApiCommon\\Console\\Loader\\SchemaLoader;\n\n$command = new GenerateCommand(new ConfigLoader(), new SchemaLoader(), new OpenApiMatcher());\n$inputArray = new ArrayInput(['--config-file' => __DIR__ . '/../config/jane/open_api.php'], $command->getDefinition());\n\n$command->execute($inputArray, new NullOutput());\n",
|
||||
"executable": true,
|
||||
"encoding": ""
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"require __DIR__ . '/../vendor/autoload.php';",
|
||||
"",
|
||||
"use Jane\\OpenApiCommon\\Console\\Command\\GenerateCommand;",
|
||||
"use Symfony\\Component\\Console\\Input\\ArrayInput;",
|
||||
"use Symfony\\Component\\Console\\Output\\NullOutput;",
|
||||
"use Jane\\OpenApiCommon\\Console\\Loader\\ConfigLoader;",
|
||||
"use Jane\\OpenApiCommon\\Console\\Loader\\OpenApiMatcher;",
|
||||
"use Jane\\OpenApiCommon\\Console\\Loader\\SchemaLoader;",
|
||||
"",
|
||||
"$command = new GenerateCommand(new ConfigLoader(), new SchemaLoader(), new OpenApiMatcher());",
|
||||
"$inputArray = new ArrayInput(['--config-file' => __DIR__ . '/../config/jane/open_api.php'], $command->getDefinition());",
|
||||
"",
|
||||
"$command->execute($inputArray, new NullOutput());",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
}
|
||||
},
|
||||
"origin": "jane-php/open-api-common:6.0@github.com/symfony/recipes-contrib:master",
|
||||
"is_contrib": true
|
||||
"ref": "1628ebe907a0d28e3caa22199c6e711d14c8e680"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user