diff --git a/src/Flynsarmy/DbBladeCompiler/DbBladeCompiler.php b/src/Flynsarmy/DbBladeCompiler/DbBladeCompiler.php index 55b1f8e..1698fda 100755 --- a/src/Flynsarmy/DbBladeCompiler/DbBladeCompiler.php +++ b/src/Flynsarmy/DbBladeCompiler/DbBladeCompiler.php @@ -12,11 +12,7 @@ class DbBladeCompiler extends BladeCompiler implements CompilerInterface public function __construct($filesystem, $cache_path, $config) { parent::__construct($filesystem, $cache_path); - $this->rawTags = Blade::getRawTags(); - $this->contentTags = Blade::getContentTags(); - $this->escapedTags = Blade::getEscapedContentTags(); - $this->extensions = Blade::getExtensions(); - $this->config = $config; + $this->config = $config; } /** @@ -79,7 +75,7 @@ public function getCompiledPath($model) */ public function isExpired($path) { - if(!$this->config->get('db-blade-compiler.cache')) + if(!$this->config->get('cache')) { return true; } diff --git a/src/Flynsarmy/DbBladeCompiler/DbBladeCompilerServiceProvider.php b/src/Flynsarmy/DbBladeCompiler/DbBladeCompilerServiceProvider.php index 2282168..8bda597 100755 --- a/src/Flynsarmy/DbBladeCompiler/DbBladeCompilerServiceProvider.php +++ b/src/Flynsarmy/DbBladeCompiler/DbBladeCompilerServiceProvider.php @@ -34,7 +34,7 @@ public function boot() public function register() { $config_path = __DIR__ . '/../../../config/db-blade-compiler.php'; - $this->mergeConfigFrom($config_path, 'db-blade-compiler'); + $this->mergeConfigFrom($config_path, 'db-blade-compile'); $this->app['dbview'] = $this->app->share(function($app) {