Skip to content

Commit 8809aca

Browse files
committed
fix: update view config for bareui
1 parent a6a12aa commit 8809aca

File tree

4 files changed

+5
-10
lines changed

4 files changed

+5
-10
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ phpunit.xml
44
.phpunit.result.cache
55
.idea
66
test
7+
.DS_Store

src/themes/bareui/config/view.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?php
22

3-
use Leaf\View;
4-
53
return [
64
/*
75
|--------------------------------------------------------------------------
@@ -22,9 +20,7 @@
2220
| Configuration for your templating engine.
2321
|
2422
*/
25-
'config' => function ($config) {
26-
View::bareui()->config($config['views']);
27-
},
23+
'config' => null,
2824

2925
/*
3026
|--------------------------------------------------------------------------
@@ -35,7 +31,5 @@
3531
| in your app if you're using a custom view engine.
3632
|
3733
*/
38-
'render' => function ($view, $data = []) {
39-
return View::bareui()->render($view, $data);
40-
},
34+
'render' => null,
4135
];

src/themes/blade/config/view.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
|
2424
*/
2525
'config' => function ($config) {
26-
View::blade()->configure($config['views'], $config['cache']);
26+
\Leaf\Config::get('views.blade')->configure($config['views'], $config['cache']);
2727
},
2828

2929
/*

src/themes/leaf3/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"require": {
3-
"leafs/leaf": "^3.0"
3+
"leafs/leaf": "*"
44
}
55
}

0 commit comments

Comments
 (0)