From 0806f0293157bd193004087d18fc5d8f4c3581e6 Mon Sep 17 00:00:00 2001 From: Gustavo Rafael Date: Tue, 18 Nov 2014 23:24:39 -0200 Subject: [PATCH] Update Blade.php Uses inherited property "templatesDirectory" --- src/Blade.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Blade.php b/src/Blade.php index 0608a67..b273ddb 100644 --- a/src/Blade.php +++ b/src/Blade.php @@ -54,13 +54,12 @@ public function render($template, $data = null) public function getInstance() { if (!$this->parserInstance) { - $views = $this->getTemplatesDirectory().'/'; if(isset($this->parserOptions['cache'])) { $cache = $this->parserOptions['cache']; } else { throw new \RuntimeException('Cannot set the Blade cache directory'); } - $this->parserInstance = new \Philo\Blade\Blade($views, $cache); + $this->parserInstance = new \Philo\Blade\Blade($this->templatesDirectory, $cache); } return $this->parserInstance;