Update recipes for Jane v6.0

This commit is contained in:
Baptiste Leduc
2020-05-31 20:58:55 +02:00
parent acdcb190d6
commit b6b8ba2b13
10 changed files with 100 additions and 0 deletions
@@ -0,0 +1,16 @@
#!/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());