| @@ 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. |
|
| @@ 676-689 (lines=14) @@ | ||
| 673 | * |
|
| 674 | * @return string The target directory for the artefact export |
|
| 675 | */ |
|
| 676 | public function getTargetDir() |
|
| 677 | { |
|
| 678 | ||
| 679 | // load the status from the registry processor |
|
| 680 | $status = $this->getRegistryProcessor()->getAttribute(RegistryKeys::STATUS); |
|
| 681 | ||
| 682 | // query whether or not a target directory (mandatory) has been configured |
|
| 683 | if (isset($status[RegistryKeys::TARGET_DIRECTORY])) { |
|
| 684 | return $status[RegistryKeys::TARGET_DIRECTORY]; |
|
| 685 | } |
|
| 686 | ||
| 687 | // throw an exception if the root category is NOT available |
|
| 688 | throw new \Exception(sprintf('Can\'t find a target directory in status data for import %s', $this->getSerial())); |
|
| 689 | } |
|
| 690 | ||
| 691 | /** |
|
| 692 | * Register the passed observer with the specific type. |
|