52 $this->_successWriter = $successWriter;
53 $this->_errorWriter = $errorWriter;
55 $this->_errorEntries = [
56 self::CONFIGURATION_ERROR => [],
57 self::GENERATION_ERROR => [],
58 self::COMPILATION_ERROR => [],
72 if (array_key_exists(
$type, $this->_successEntries)) {
87 $this->_successWriter->write($this->_successEntries);
88 $this->_errorWriter->write($this->_errorEntries);
90 $errors = array_filter($this->_errorEntries);
92 throw new \Magento\Framework\Validator\Exception(
__(
'Error during compilation'));
103 foreach ($this->_errorEntries as
$data) {
const CONFIGURATION_ERROR
add($type, $key, $message='')
__construct(Writer\Console $successWriter, Writer\Console $errorWriter)