| @@ 105-109 (lines=5) @@ | ||
| 102 | protected function queue($app) |
|
| 103 | { |
|
| 104 | $this->getApp()->appendCommand('order:queue', 'Mostra os pedidos novos e que ainda aguardam processamento') |
|
| 105 | ->setCode(function (InputInterface $input, OutputInterface $output) use ($app) { |
|
| 106 | $list = $app->processInputParameters([], $input, $output); |
|
| 107 | $collection = $app->factorySdk($list)->factoryManager('order')->fetchQueue(); |
|
| 108 | $app->displayOrderList($collection, $output); |
|
| 109 | }); |
|
| 110 | } |
|
| 111 | ||
| 112 | public function translateTo($app) |
|
| @@ 35-39 (lines=5) @@ | ||
| 32 | 'sizes', |
|
| 33 | ] as $templateKey) { |
|
| 34 | $this->getApp()->appendCommand('templates:'.$templateKey, 'List of '.$templateKey) |
|
| 35 | ->setCode(function (InputInterface $input, OutputInterface $output) use ($app, $templateKey) { |
|
| 36 | $list = $app->processInputParameters([], $input, $output); |
|
| 37 | $responseList = $app->factorySdk($list)->factoryManager('templates')->fetchByRoute($templateKey); |
|
| 38 | $app->displayTableResults($output, $responseList); |
|
| 39 | }); |
|
| 40 | } |
|
| 41 | ||
| 42 | $this->getApp()->appendCommand('templates:departments', 'List of departments') |
|