protected function getSkinFile(PluginEntity $plugin, $path, $skinClass) { $path = $path . "/{$skinClass}.php"; if (file_exists($plugin->getPath($path))) { throw new \Exception("file[{$path}] already exists."); } return $path; }