private function getBaseDir($type, $name) { $paths = array(sprintf('%s/%s/plugins/RedKiteCms/%s/%s', $this->rootDir, $this->frameworkAbsoluteDir, $type, $name), sprintf('%s/vendor/redkite-labs/redkitecms-plugins/RedKiteCms/%s/%s', $this->rootDir, $type, $name), sprintf('%s/app/plugins/RedKiteCms/%s/%s', $this->rootDir, $type, $name)); return FilesystemTools::cascade($paths); }