Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
_generateMetadataFile.php
Go to the documentation of this file.
1 <?php
7 require_once '../../../../../../vendor/autoload.php';
8 
9 const INPUT_TXT_FILE = 'input.yml';
10 
11 // parse the input.yml file for context
12 $inputCfg = \Symfony\Component\Yaml\Yaml::parse(file_get_contents(INPUT_TXT_FILE));
13 
14 // create new MetadataGenUtil Object
16  $inputCfg['operationName'],
17  $inputCfg['operationDataType'],
18  $inputCfg['operationUrl'],
19  $inputCfg['inputString']
20 );
21 
22 //generate the metadata file in the _output dir
23 $metadataGenUtil->generateMetadataFile();
const INPUT_TXT_FILE