@@ 29-32 (lines=4) @@ | ||
26 | $this->resetConfig(); |
|
27 | ||
28 | $hasError = false; |
|
29 | if($this->getService('composer')->validateConfig($this->getService('project')->getDirectoryPath())) { |
|
30 | $output->writeln('<error>Error: Composer config is not valid</error>'); |
|
31 | $hasError = true; |
|
32 | } |
|
33 | if($this->getService('composer')->dumpAutoload($this->getService('project')->getDirectoryPath())) { |
|
34 | $output->writeln('<error>Error: autoload is not up-to-date. Process to "composer dump-autoload".</error>'); |
|
35 | $hasError = true; |
|
@@ 33-36 (lines=4) @@ | ||
30 | $output->writeln('<error>Error: Composer config is not valid</error>'); |
|
31 | $hasError = true; |
|
32 | } |
|
33 | if($this->getService('composer')->dumpAutoload($this->getService('project')->getDirectoryPath())) { |
|
34 | $output->writeln('<error>Error: autoload is not up-to-date. Process to "composer dump-autoload".</error>'); |
|
35 | $hasError = true; |
|
36 | } |
|
37 | ||
38 | return $hasError ? ITask::NO_ERROR_CODE : ITask::NON_BLOCKING_ERROR_CODE; |
|
39 | } |