| @@ 141-154 (lines=14) @@ | ||
| 138 | * |
|
| 139 | * @return string The target directory for the artefact export |
|
| 140 | */ |
|
| 141 | public function getTargetDir() |
|
| 142 | { |
|
| 143 | ||
| 144 | // load the status from the registry processor |
|
| 145 | $status = $this->getRegistryProcessor()->getAttribute(RegistryKeys::STATUS); |
|
| 146 | ||
| 147 | // query whether or not a target directory (mandatory) has been configured |
|
| 148 | if (isset($status[RegistryKeys::TARGET_DIRECTORY])) { |
|
| 149 | return $status[RegistryKeys::TARGET_DIRECTORY]; |
|
| 150 | } |
|
| 151 | ||
| 152 | // throw an exception if the root category is NOT available |
|
| 153 | throw new \Exception(sprintf('Can\'t find a target directory in status data for import %s', $this->getSerial())); |
|
| 154 | } |
|
| 155 | ||
| 156 | /** |
|
| 157 | * Return's the application instance. |
|
| @@ 604-617 (lines=14) @@ | ||
| 601 | * |
|
| 602 | * @return string The target directory for the artefact export |
|
| 603 | */ |
|
| 604 | public function getTargetDir() |
|
| 605 | { |
|
| 606 | ||
| 607 | // load the status from the registry processor |
|
| 608 | $status = $this->getRegistryProcessor()->getAttribute(RegistryKeys::STATUS); |
|
| 609 | ||
| 610 | // query whether or not a target directory (mandatory) has been configured |
|
| 611 | if (isset($status[RegistryKeys::TARGET_DIRECTORY])) { |
|
| 612 | return $status[RegistryKeys::TARGET_DIRECTORY]; |
|
| 613 | } |
|
| 614 | ||
| 615 | // throw an exception if the root category is NOT available |
|
| 616 | throw new \Exception(sprintf('Can\'t find a target directory in status data for import %s', $this->getSerial())); |
|
| 617 | } |
|
| 618 | ||
| 619 | /** |
|
| 620 | * Register the passed observer with the specific type. |
|