Completed
Push — master ( 118f52...c5048d )
by Thomas
10:09
created

GenerateEmberCommand::interact()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 4
rs 10
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
namespace keeko\tools\command;
3
4
use keeko\tools\ui\EmberUI;
5
use Symfony\Component\Console\Input\InputInterface;
6
use Symfony\Component\Console\Output\OutputInterface;
7
8
class GenerateEmberCommand extends AbstractEmberCommand {
9
10
	protected function configure() {
11
		$this
12
			->setName('generate:ember')
13
			->setDescription('Run all ember generators');
14
15
		parent::configure();
16
	}
17
18
	protected function interact(InputInterface $input, OutputInterface $output) {
19
		$ui = new EmberUI($this);
20
		$ui->show();
21
	}
22
23
	protected function execute(InputInterface $input, OutputInterface $output) {
24
		$args = [
25
			'--package' => $input->getOption('package')
26
		];
27
28
		$this->runCommand('generate:ember:model', $args);
29
		$this->runCommand('generate:ember:abilities', $args);
30
		$this->runCommand('generate:ember:serializer', $args);
31
	}
32
33
}