{ "manifests": { "jane-php/json-schema": { "manifest": { "copy-from-recipe": { "bin/": "%BIN_DIR%/", "config/": "%CONFIG_DIR%/" }, "conflict": { "symfony/symfony": "<5.0" }, "post-install-output": [ " * Finish package configuration:", " 1. Place your JSON Schema at config/jane/json-schema.json, or update json-schema-file in config/jane/json_schema.php", " 2. Replace MyApp\\Library\\Generated with your own namespace in config/jane/json_schema.php and in config/packages/jane.yaml", " 3. Add generated/ directory to your composer autoload definition (eg. \"MyApp\\\\Library\\\\Generated\\\\\": \"generated/\")", " 4. Run bin/jane-json-schema-generate", " 5. Once generation succeeded, uncomment the service in config/packages/jane.yaml to enable autowiring of the generated normalizer", "", "Documentation: https://jane.jolicode.com/latest/" ] }, "files": { "bin/jane-json-schema-generate": { "contents": [ "#!/usr/bin/env php", " __DIR__ . '/../config/jane/json_schema.php'], $command->getDefinition());", "$output = new ConsoleOutput();", "", "try {", " exit($command->execute($inputArray, $output));", "} catch (\\Throwable $throwable) {", " (new Application())->renderThrowable($throwable, $output->getErrorOutput());", "", " exit(1);", "}", "" ], "executable": true }, "config/jane/json_schema.php": { "contents": [ " __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", "", " # Uncomment the line below once you have generated your code to autowire", " # the generated normalizers (and the models using them). The namespace", " # must match the \"namespace\" key of your config/jane/*.php config file.", "# MyApp\\Library\\Generated\\Normalizer\\JaneObjectNormalizer: null", "" ], "executable": false } }, "ref": "85b0dd061a04ca9032720b82d281a2ba88456b9d" } } }