protected function getSharedDir()
{
if (empty($this->settings['sourceDir'])) {
return false;
}
$shared = $this->settings['sourceDir'] . '/' . $this->config->get('local.shared_dir');
if (!empty($this->settings['multiApp'])) {
$shared .= '/' . preg_replace('/[^a-z0-9\\-_]+/i', '-', $this->app->getName());
}
$this->fsHelper->mkdir($shared);
return $shared;
}