$file, 'path' => $templatePath ]; } } return $results; } /** * getting templates * */ public function find() { $results = array_merge( $this->getTemplates(self::TEMPLATES_DIR), $this->getTemplates(self::TEMPLATES_CUSTOM_DIR) ); return $results; } }