/** * Activates the view finder paths for a theme and its parents. * * @param Theme $theme */ protected function activateFinderPaths(Theme $theme) { $this->view->addLocation($theme->getPath() . '/views/'); if ($theme->hasParent()) { $this->activateFinderPaths($this->get($theme->getParent())); } }