| @@ 142-155 (lines=14) @@ | ||
| 139 | * |
|
| 140 | * @return string The target directory for the artefact export |
|
| 141 | */ |
|
| 142 | public function getTargetDir() |
|
| 143 | { |
|
| 144 | ||
| 145 | // load the status from the registry processor |
|
| 146 | $status = $this->getRegistryProcessor()->getAttribute(RegistryKeys::STATUS); |
|
| 147 | ||
| 148 | // query whether or not a target directory (mandatory) has been configured |
|
| 149 | if (isset($status[RegistryKeys::TARGET_DIRECTORY])) { |
|
| 150 | return $status[RegistryKeys::TARGET_DIRECTORY]; |
|
| 151 | } |
|
| 152 | ||
| 153 | // throw an exception if the root category is NOT available |
|
| 154 | throw new \Exception(sprintf('Can\'t find a target directory in status data for import %s', $this->getSerial())); |
|
| 155 | } |
|
| 156 | ||
| 157 | /** |
|
| 158 | * Return's the application instance. |
|
| @@ 729-742 (lines=14) @@ | ||
| 726 | * |
|
| 727 | * @return string The target directory for the artefact export |
|
| 728 | */ |
|
| 729 | public function getTargetDir() |
|
| 730 | { |
|
| 731 | ||
| 732 | // load the status from the registry processor |
|
| 733 | $status = $this->getRegistryProcessor()->getAttribute(RegistryKeys::STATUS); |
|
| 734 | ||
| 735 | // query whether or not a target directory (mandatory) has been configured |
|
| 736 | if (isset($status[RegistryKeys::TARGET_DIRECTORY])) { |
|
| 737 | return $status[RegistryKeys::TARGET_DIRECTORY]; |
|
| 738 | } |
|
| 739 | ||
| 740 | // throw an exception if the root category is NOT available |
|
| 741 | throw new \Exception(sprintf('Can\'t find a target directory in status data for import %s', $this->getSerial())); |
|
| 742 | } |
|
| 743 | ||
| 744 | /** |
|
| 745 | * Register the passed observer with the specific type. |
|