| @@ 33-52 (lines=20) @@ | ||
| 30 | /** |
|
| 31 | * {@inheritdoc} |
|
| 32 | */ |
|
| 33 | protected function execute(InputInterface $input, OutputInterface $output) |
|
| 34 | { |
|
| 35 | $this->io = new StratumStyle($input, $output); |
|
| 36 | ||
| 37 | $this->configFileName = $input->getArgument('config file'); |
|
| 38 | $this->readConfigFile(); |
|
| 39 | ||
| 40 | // Create database connection with params from config file |
|
| 41 | $this->connect($this->config); |
|
| 42 | ||
| 43 | $audit = new Audit($this->config, $this->io); |
|
| 44 | $status = $audit->main(); |
|
| 45 | ||
| 46 | // Drop database connection |
|
| 47 | AuditDataLayer::disconnect(); |
|
| 48 | ||
| 49 | $this->rewriteConfig(); |
|
| 50 | ||
| 51 | return $status; |
|
| 52 | } |
|
| 53 | ||
| 54 | //-------------------------------------------------------------------------------------------------------------------- |
|
| 55 | } |
|
| @@ 42-53 (lines=12) @@ | ||
| 39 | /** |
|
| 40 | * {@inheritdoc} |
|
| 41 | */ |
|
| 42 | protected function execute(InputInterface $input, OutputInterface $output) |
|
| 43 | { |
|
| 44 | $this->io = new StratumStyle($input, $output); |
|
| 45 | ||
| 46 | $this->configFileName = $input->getArgument('config file'); |
|
| 47 | $this->readConfigFile(); |
|
| 48 | ||
| 49 | $this->connect($this->config); |
|
| 50 | ||
| 51 | $diff = new AuditDiff($this->config, $this->io, $input, $output); |
|
| 52 | $diff->main(); |
|
| 53 | } |
|
| 54 | ||
| 55 | //-------------------------------------------------------------------------------------------------------------------- |
|
| 56 | } |
|