| @@ 24-31 (lines=8) @@ | ||
| 21 | * |
|
| 22 | * @throws Exception |
|
| 23 | */ |
|
| 24 | public function init($options) |
|
| 25 | { |
|
| 26 | if (!is_dir($this->builder->getConfig()->getContentPath())) { |
|
| 27 | throw new Exception(sprintf('%s not found!', $this->builder->getConfig()->getContentPath())); |
|
| 28 | } |
|
| 29 | ||
| 30 | $this->process = true; |
|
| 31 | } |
|
| 32 | ||
| 33 | /** |
|
| 34 | * {@inheritdoc} |
|
| @@ 22-28 (lines=7) @@ | ||
| 19 | /** |
|
| 20 | * {@inheritdoc} |
|
| 21 | */ |
|
| 22 | public function init($options) |
|
| 23 | { |
|
| 24 | if (!is_dir($this->builder->getConfig()->get('process.images.dir')) |
|
| 25 | && false === $this->builder->getConfig()->get('process.images.enabled')) { |
|
| 26 | $this->process = false; |
|
| 27 | } |
|
| 28 | } |
|
| 29 | ||
| 30 | /** |
|
| 31 | * {@inheritdoc} |
|