public function toFullPath($theme, $file = '') { if ($theme instanceof Theme) { return $this->themesFolder . $theme->getPath() . $file; } return $this->themesFolder . $theme . $file; }