Skip to content

Commit ee2c203

Browse files
committed
Merge pull request #11 from me2bits/master
Bug fix: name of config file was wrong
2 parents ab9f287 + b65b17b commit ee2c203

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/Flynsarmy/DbBladeCompiler/DbBladeCompiler.php

+6-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ class DbBladeCompiler extends BladeCompiler implements CompilerInterface
1212
public function __construct($filesystem, $cache_path, $config)
1313
{
1414
parent::__construct($filesystem, $cache_path);
15-
$this->config = $config;
15+
$this->rawTags = Blade::getRawTags();
16+
$this->contentTags = Blade::getContentTags();
17+
$this->escapedTags = Blade::getEscapedContentTags();
18+
$this->extensions = Blade::getExtensions();
19+
$this->config = $config;
1620
}
1721

1822
/**
@@ -75,7 +79,7 @@ public function getCompiledPath($model)
7579
*/
7680
public function isExpired($path)
7781
{
78-
if(!$this->config->get('cache'))
82+
if(!$this->config->get('db-blade-compiler.cache'))
7983
{
8084
return true;
8185
}

src/Flynsarmy/DbBladeCompiler/DbBladeCompilerServiceProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function boot()
3434
public function register()
3535
{
3636
$config_path = __DIR__ . '/../../../config/db-blade-compiler.php';
37-
$this->mergeConfigFrom($config_path, 'db-blade-compile');
37+
$this->mergeConfigFrom($config_path, 'db-blade-compiler');
3838

3939
$this->app['dbview'] = $this->app->share(function($app)
4040
{

0 commit comments

Comments
 (0)