protected function findTemplate($templatePath) { foreach ($this->bundles as $bundleName) { $templateName = "{$bundleName}:{$templatePath}"; if ($this->engine->exists($templateName)) { return $templateName; } } return false; }