|
@@ 44-51 (lines=8) @@
|
| 41 |
|
|
| 42 |
|
$this->getApp()->appendCommand('templates:departments', 'List of departments') |
| 43 |
|
->addArgument('buId', InputArgument::REQUIRED, 'Business unit id - NS = Netshoes e ZT = Zattini') |
| 44 |
|
->setCode(function (InputInterface $input, OutputInterface $output) use ($app) { |
| 45 |
|
$list = $app->processInputParameters([], $input, $output); |
| 46 |
|
$responseList = $app->factorySdk($list)->factoryManager('templates') |
| 47 |
|
->fetchByRoute('departments', 0, 50, [ |
| 48 |
|
'buId' => $input->getArgument('buId'), |
| 49 |
|
]); |
| 50 |
|
$app->displayTableResults($output, $responseList); |
| 51 |
|
}); |
| 52 |
|
|
| 53 |
|
$this->getApp()->appendCommand('templates:productTypes', 'List of productTypes') |
| 54 |
|
->addArgument('departmentCode', InputArgument::REQUIRED, 'Id do departamento') |
|
@@ 55-62 (lines=8) @@
|
| 52 |
|
|
| 53 |
|
$this->getApp()->appendCommand('templates:productTypes', 'List of productTypes') |
| 54 |
|
->addArgument('departmentCode', InputArgument::REQUIRED, 'Id do departamento') |
| 55 |
|
->setCode(function (InputInterface $input, OutputInterface $output) use ($app) { |
| 56 |
|
$list = $app->processInputParameters([], $input, $output); |
| 57 |
|
$responseList = $app->factorySdk($list)->factoryManager('templates') |
| 58 |
|
->fetchByRoute('productTypes', 0, 50, [ |
| 59 |
|
'departmentCode' => $input->getArgument('departmentCode'), |
| 60 |
|
]); |
| 61 |
|
$app->displayTableResults($output, $responseList); |
| 62 |
|
}); |
| 63 |
|
|
| 64 |
|
$this->getApp()->appendCommand('templates:attributes', 'List of attributes') |
| 65 |
|
->addArgument('departmentCode', InputArgument::REQUIRED, 'Id do departamento') |
|
@@ 67-75 (lines=9) @@
|
| 64 |
|
$this->getApp()->appendCommand('templates:attributes', 'List of attributes') |
| 65 |
|
->addArgument('departmentCode', InputArgument::REQUIRED, 'Id do departamento') |
| 66 |
|
->addArgument('productTypeCode', InputArgument::REQUIRED, 'Id do Product Type') |
| 67 |
|
->setCode(function (InputInterface $input, OutputInterface $output) use ($app) { |
| 68 |
|
$list = $app->processInputParameters([], $input, $output); |
| 69 |
|
$responseList = $app->factorySdk($list)->factoryManager('templates') |
| 70 |
|
->fetchByRoute('attributes', 0, 50, [ |
| 71 |
|
'departmentCode' => $input->getArgument('departmentCode'), |
| 72 |
|
'productTypeCode' => $input->getArgument('productTypeCode'), |
| 73 |
|
]); |
| 74 |
|
$app->displayTableResults($output, $responseList); |
| 75 |
|
}); |
| 76 |
|
|
| 77 |
|
$this->getApp()->appendCommand('templates:tree', 'Tree of templates') |
| 78 |
|
->addArgument('buId', InputArgument::REQUIRED, 'Business unit id - NS = Netshoes e ZT = Zattini') |