public function initializeObject()
{
foreach ($this->options as $key => $value) {
$isOptionSet = $this->setOption($key, $value);
if (!$isOptionSet) {
throw new TargetException(sprintf('An unknown option "%s" was specified in the configuration of a resource FileSystemTarget. Please check your settings.', $key), 1361525952);
}
}
if (!is_writable($this->path)) {
@Files::createDirectoryRecursively($this->path);
}
if (!is_dir($this->path) && !is_link($this->path)) {
throw new TargetException('The directory "' . $this->path . '" which was configured as a publishing target does not exist and could not be created.', 1207124538);
}
if (!is_writable($this->path)) {
throw new TargetException('The directory "' . $this->path . '" which was configured as a publishing target is not writable.', 1207124546);
}
}