diff --git a/src/Template/Template.php b/src/Template/Template.php index a0145f9..8d066b8 100644 --- a/src/Template/Template.php +++ b/src/Template/Template.php @@ -251,9 +251,10 @@ public function layoutPath() * @return string * @access private */ - private function collect($path) + protected function collect($path) { ob_start(); + /** @noinspection PhpIncludeInspection */ require $path; $this->last_buffer = $this->buffer; $this->buffer = trim(ob_get_clean()); @@ -266,7 +267,7 @@ private function collect($path) * @param array $only * @return array */ - private function buildContext(array $data = [], array $only = null) + protected function buildContext(array $data = [], array $only = null) { $now = is_null($only) ? $this->data()